Changeset View
Changeset View
Standalone View
Standalone View
source/gui/ObjectTypes/CButton.h
Show All 37 Lines | public: | ||||
virtual void ResetStates(); | virtual void ResetStates(); | ||||
/** | /** | ||||
* @see IGUIObject#UpdateCachedSize() | * @see IGUIObject#UpdateCachedSize() | ||||
*/ | */ | ||||
virtual void UpdateCachedSize(); | virtual void UpdateCachedSize(); | ||||
/** | /** | ||||
* @return the object text size. | |||||
*/ | |||||
CSize2D GetTextSize(); | |||||
/** | |||||
* @see IGUIObject#HandleMessage() | * @see IGUIObject#HandleMessage() | ||||
*/ | */ | ||||
virtual void HandleMessage(SGUIMessage& Message); | virtual void HandleMessage(SGUIMessage& Message); | ||||
/** | /** | ||||
* Draws the Button | * Draws the Button | ||||
*/ | */ | ||||
virtual void Draw(); | virtual void Draw(); | ||||
/** | |||||
* Populate @param ret with the object's text size. | |||||
*/ | |||||
void getTextSize(ScriptInterface& scriptInterface, JS::MutableHandleValue ret); | |||||
protected: | protected: | ||||
/** | /** | ||||
* Sets up text, should be called every time changes has been | * Sets up text, should be called every time changes has been | ||||
* made that can change the visual. | * made that can change the visual. | ||||
*/ | */ | ||||
void SetupText(); | void SetupText(); | ||||
/** | /** | ||||
Show All 28 Lines |
Wildfire Games · Phabricator