Public Member Functions | |
cWidgetComboBox (cGuiSet *apSet, cGuiSkin *apSkin) | |
void | SetSelectedItem (int alX, bool abMoveList=false) |
int | GetSelectedItem () |
void | SetCanEdit (bool abX) |
bool | GetCanEdit () |
void | SetMaxShownItems (int alX) |
int | GetMaxShownItems () |
![]() | |
iWidget (eWidgetType aType, cGuiSet *apSet, cGuiSkin *apSkin) | |
void | Update (float afTimeStep) |
void | Draw (float afTimeStep, cGuiClipRegion *apClipRegion) |
bool | ProcessMessage (eGuiMessage aMessage, cGuiMessageData &aData) |
void | AddCallback (eGuiMessage aMessage, void *apObject, tGuiCallbackFunc apFunc) |
eWidgetType | GetType () |
void | Init () |
bool | PointIsInside (const cVector2f &avPoint, bool abOnlyClipped) |
void | AttachChild (iWidget *apChild) |
void | RemoveChild (iWidget *apChild) |
cGuiSet * | GetSet () |
iWidget * | GetParent () |
void | SetEnabled (bool abX) |
bool | IsEnabled () |
void | SetVisible (bool abX) |
bool | IsVisible () |
bool | HasFocus () |
void | SetName (const tString &asName) |
const tString & | GetName () |
void | SetText (const tWString &asText) |
const tWString & | GetText () |
FontData * | GetDefaultFontType () |
void | SetDefaultFontType (FontData *apFont) |
const cColor & | GetDefaultFontColor () |
void | SetDefaultFontColor (const cColor &aColor) |
const cVector2f & | GetDefaultFontSize () |
void | SetDefaultFontSize (const cVector2f &avSize) |
void | SetClipActive (bool abX) |
bool | GetClipActive () |
void | SetPosition (const cVector3f &avPos) |
void | SetGlobalPosition (const cVector3f &avPos) |
const cVector3f & | GetLocalPosition () |
const cVector3f & | GetGlobalPosition () |
void | SetSize (const cVector2f &avSize) |
cVector2f | GetSize () |
bool | ClipsGraphics () |
bool | GetMouseIsOver () |
bool | IsConnectedTo (iWidget *apWidget, bool abIsStartWidget=true) |
bool | IsConnectedToChildren () |
void | SetConnectedToChildren (bool abX) |
cGuiGfxElement * | GetPointerGfx () |
![]() | |
void | AddItem (const tWString &asItem) |
void | RemoveItem (int alX) |
void | RemoveItem (const tWString &asItem) |
const tWString & | GetItem (int alX) const |
void | SetItem (int alX, const tWString &asText) |
int | GetItemNum () const |
bool | HasItem (const tWString &asItem) |
Protected Member Functions | |
void | UpdateProperties () |
void | OpenMenu () |
void | CloseMenu () |
bool | ButtonPress (iWidget *apWidget, cGuiMessageData &aData) |
kGuiCalllbackDeclarationEnd (ButtonPress) | |
bool | DrawText (iWidget *apWidget, cGuiMessageData &aData) |
kGuiCalllbackDeclarationEnd (DrawText) | |
bool | SliderMove (iWidget *apWidget, cGuiMessageData &aData) |
kGuiCalllbackDeclarationEnd (SliderMove) | |
bool | SliderLostFocus (iWidget *apWidget, cGuiMessageData &aData) |
kGuiCalllbackDeclarationEnd (SliderLostFocus) | |
void | OnLoadGraphics () |
void | OnChangeSize () |
void | OnChangeText () |
void | OnInit () |
void | OnDraw (float afTimeStep, cGuiClipRegion *apClipRegion) |
bool | OnMouseMove (cGuiMessageData &aData) |
bool | OnMouseDown (cGuiMessageData &aData) |
bool | OnMouseUp (cGuiMessageData &aData) |
bool | OnMouseEnter (cGuiMessageData &aData) |
bool | OnMouseLeave (cGuiMessageData &aData) |
bool | OnLostFocus (cGuiMessageData &aData) |
![]() | |
virtual void | OnChangePosition () |
virtual void | OnDrawAfterClip (float afTimeStep, cGuiClipRegion *apClipRegion) |
virtual void | OnUpdate (float afTimeStep) |
virtual bool | OnMessage (eGuiMessage aMessage, cGuiMessageData &aData) |
virtual bool | OnMouseDoubleClick (cGuiMessageData &aData) |
virtual bool | OnGotFocus (cGuiMessageData &aData) |
virtual bool | OnKeyPress (cGuiMessageData &aData) |
cVector3f | WorldToLocalPosition (const cVector3f &avPos) |
cVector2f | GetPosRelativeToMouse (cGuiMessageData &aData) |
void | DrawBordersAndCorners (cGuiGfxElement *apBackground, cGuiGfxElement **apBorderVec, cGuiGfxElement **apCornerVec, const cVector3f &avPosition, const cVector2f &avSize) |
void | DrawSkinText (const tWString &asText, eGuiSkinFont aFont, const cVector3f &avPosition, eFontAlign aAlign=eFontAlign_Left) |
void | DrawDefaultText (const tWString &asText, const cVector3f &avPosition, eFontAlign aAlign) |
void | SetPositionUpdated () |
void | LoadGraphics () |
Protected Attributes | |
cWidgetTextBox * | mpText |
cWidgetButton * | mpButton |
cWidgetSlider * | mpSlider |
bool | mbMenuOpen |
float | mfMenuHeight |
float | mfButtonWidth |
float | mfSliderWidth |
int | mlMouseOverSelection |
int | mlSelectedItem |
int | mlFirstItem |
int | mlMaxItems |
int | mlItemsShown |
cGuiGfxElement * | mpGfxBackground |
cGuiGfxElement * | mpGfxSelection |
cGuiGfxElement * | mvGfxBorders [4] |
cGuiGfxElement * | mvGfxCorners [4] |
![]() | |
cGuiSet * | mpSet |
cGuiSkin * | mpSkin |
cGui * | mpGui |
tWString | msText |
cVector3f | mvPosition |
cVector3f | mvGlobalPosition |
cVector2f | mvSize |
tString | msName |
eWidgetType | mType |
int | mlPositionCount |
cGuiSkinFont * | mpDefaultFont |
FontData * | mpDefaultFontType |
cColor | mDefaultFontColor |
cVector2f | mvDefaultFontSize |
iWidget * | mpParent |
tWidgetList | mlstChildren |
bool | mbEnabled |
bool | mbVisible |
bool | mbMouseIsOver |
bool | mbClipsGraphics |
cGuiGfxElement * | mpPointerGfx |
bool | mbConnectedToChildren |
![]() | |
tWStringVec | mvItems |