Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/gui/CGUIText.h
Show First 20 Lines • Show All 158 Lines • ▼ Show 20 Lines | public: | ||||
* @param Text Text to generate CGUIText object from | * @param Text Text to generate CGUIText object from | ||||
* @param Font Default font, notice both Default color and default font | * @param Font Default font, notice both Default color and default font | ||||
* can be changed by tags. | * can be changed by tags. | ||||
* @param Width Width, 0 if no word-wrapping. | * @param Width Width, 0 if no word-wrapping. | ||||
* @param BufferZone space between text and edge, and space between text and images. | * @param BufferZone space between text and edge, and space between text and images. | ||||
* @param pObject Optional parameter for error output. Used *only* if error parsing fails, | * @param pObject Optional parameter for error output. Used *only* if error parsing fails, | ||||
* and we need to be able to output which object the error occurred in to aid the user. | * and we need to be able to output which object the error occurred in to aid the user. | ||||
*/ | */ | ||||
CGUIText(const CGUI& pGUI, const CGUIString& string, const CStrW& FontW, const float Width, const float BufferZone, const IGUIObject* pObject = nullptr); | CGUIText(const CGUI& pGUI, const CGUIString& string, const CStrW& FontW, const float Width, const float BufferZone, const IGUIObject* pObject); | ||||
/** | /** | ||||
* Draw this CGUIText object | * Draw this CGUIText object | ||||
*/ | */ | ||||
void Draw(CGUI& pGUI, const CGUIColor& DefaultColor, const CPos& pos, const float z, const CRect& clipping) const; | void Draw(CGUI& pGUI, const CGUIColor& DefaultColor, const CPos& pos, const float z, const CRect& clipping) const; | ||||
const CSize& GetSize() const { return m_Size; } | const CSize& GetSize() const { return m_Size; } | ||||
▲ Show 20 Lines • Show All 107 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator