#include <ScrollBar.h>
Inheritance diagram for OglGui::ScrollBar:
Public Types | |
enum | Comp { Incr, Thumb, Decr, All } |
Public Member Functions | |
ScrollBar (Window *parent, int w, int h, bool horizontal) | |
ScrollBar (Window *parent, int x, int y, int w, int h, bool horizontal) | |
virtual int | SetState (int nState) |
DirectionButton * | ButIncr () |
DirectionButton * | ButDecr () |
Button * | ButThumb () |
void | SetCompBorderType (Comp comp, int type) |
void | SetCompRoundness (Comp comp, float r0, float r1, float r2, float r3) |
void | SetScrollBarListener (ScrollBarListener *listener, void *data=0) |
void | SetScrollBarListener (ScrollBarListener *listener, int data) |
void | ScrollKeyHandling (bool mode) |
bool | ScrollKeyHandling () |
void | SetLineIncrement (int incr) |
void | LineIncrement (int incr) |
int | LineIncrement () |
void | SetRange (int totalRange, int pageSize) |
void | GetRange (int &totalRange, int &pageSize) |
void | ChangePos (int change) |
void | SetNewPos (int pos) |
void | MakeVisible (int pos) |
void | SetValue (int val) |
int | GetValue () |
void | SetPosition (int x, int y, int w, int h) |
void | RepositionViewports () |
virtual void | MouseFunc (INT msg, INT but, INT state, INT x, INT y) |
virtual void | InitDisplayFunc () |
virtual void | DisplayFunc () |
void | PropagateScrolling () |
void | ButtonSelectionEvent (Button *src, void *vdata) |
virtual void | KeyboardFunc (INT c, int state) |
void | ScrollKeys (INT c, int state) |
void | SetFixedWide (bool mode) |
bool | GetFixedWide () |
Protected Member Functions | |
void | OnScrollThumb (int pos) |
Protected Attributes | |
bool | mHorizontal |
bool | mFixedWide |
bool | mScrollKeyHandling |
ULONG | mOldBorderBg |
int | mWide |
ScrollBarListener * | mListener |
void * | mListenerData |
DirectionButton * | mButIncr |
DirectionButton * | mButDecr |
ScrollThumb * | mButThumb |
int | mMouseDownPos |
bool | mPagePressed |
int | mScrollRange |
int | mScrollPage |
int | mScrollPos |
int | mPixelRange |
int | mPixelPage |
int | mPixelPos |
int | mScrollLine |
Private Member Functions | |
void | Init (bool isHor, int wide) |
Static Private Attributes | |
static const int | cSbW = 16 |
Friends | |
class | ScrollThumb |
Classes | |
class | ScrollThumb |
Definition at line 23 of file ScrollBar.h.