Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/gui/ObjectBases/IGUITextOwner.h
Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | public: | ||||
virtual void UpdateCachedSize(); | virtual void UpdateCachedSize(); | ||||
/** | /** | ||||
* Draws the Text. | * Draws the Text. | ||||
* | * | ||||
* @param index Index value of text. Mostly this will be 0 | * @param index Index value of text. Mostly this will be 0 | ||||
* @param color | * @param color | ||||
* @param pos Position | * @param pos Position | ||||
* @param z Z value | |||||
* @param clipping Clipping rectangle, don't even add a parameter | * @param clipping Clipping rectangle, don't even add a parameter | ||||
* to get no clipping. | * to get no clipping. | ||||
*/ | */ | ||||
virtual void DrawText(size_t index, const CGUIColor& color, const CVector2D& pos, float z, const CRect& clipping = CRect()); | virtual void DrawText(size_t index, const CGUIColor& color, const CVector2D& pos, const CRect& clipping = CRect()); | ||||
protected: | protected: | ||||
/** | /** | ||||
* Setup texts. Functions that sets up all texts when changes have been made. | * Setup texts. Functions that sets up all texts when changes have been made. | ||||
*/ | */ | ||||
virtual void SetupText() = 0; | virtual void SetupText() = 0; | ||||
/** | /** | ||||
Show All 31 Lines |
Wildfire Games · Phabricator