#include <StringSelector.h>
Inheritance diagram for OglGui::StringSelector:
Public Member Functions | |
StringSelector (Window *parent, int width, int height) | |
StringSelector (Window *parent, int x, int y, int width, int height) | |
void | SetStringListener (StringListener *listener, void *listenerData=0) |
void | SetStringListener (StringListener *listener, int listenerData) |
ScrollBar * | SBar () |
int | GetFirstVis () const |
void | SetFirstVis (int nr, bool signalScrollBar=false) |
void | MakeCurrentVisible () |
void | AddString (strconst str, bool intelliScroll=false) |
bool | Contains (strconst str) const |
std::string | GetString (int strInd) const |
void | SetCurrentString (int idx, bool makeVisible=false) |
std::string | GetCurrentString () const |
int | GetCurrentStringIdx () const |
void | CurrentStringUpDown (bool down, bool makeVisible=false) |
void | RemoveStrings () |
virtual void | DisplayFunc () |
virtual void | ReshapeFunc (INT w, INT h) |
virtual int | SetState (int nState) |
void | ActivateListener () |
virtual void | MouseFunc (int msg, int but, int state, int x, int y) |
This function is called by the event handling system everytime the user has moved or clicked the mouse. | |
virtual void | KeyboardFunc (int c, int state) |
void | OnScroll (ScrollBar *src, int position, void *data) |
Private Member Functions | |
void | Init (int nrVisible) |
Private Attributes | |
int | mCurrent |
int | mNrVisible |
int | mFirstVis |
bool | mDoTextShadow |
ULONG | mTextColor |
ULONG | mShadowColor |
ULONG | mHighLightColor |
int | mHighlightBorderType |
StringListener * | mStringListener |
void * | mStrListenerData |
std::vector< std::string > | mStrings |
WindowScrollBar * | mScrollBar |
Static Private Attributes | |
static const int | cLineHeight = 20 |
Definition at line 24 of file StringSelector.h.