Changeset View
Changeset View
Standalone View
Standalone View
source/gui/CGUIText.h
Show First 20 Lines • Show All 158 Lines • ▼ Show 20 Lines | public: | ||||
* will be sent to the Renderer. Also, horizontal alignment | * will be sent to the Renderer. Also, horizontal alignment | ||||
* is taken into acount in this method but NOT vertical alignment. | * is taken into acount in this method but NOT vertical alignment. | ||||
* | * | ||||
* @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 Align Horizontal alignment (left / center / right). | |||||
* @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); | CGUIText(const CGUI& pGUI, const CGUIString& string, const CStrW& FontW, const float Width, const float BufferZone, const EAlign align, const IGUIObject* pObject); | ||||
/** | /** | ||||
* Draw this CGUIText object | * Draw this CGUIText object | ||||
*/ | */ | ||||
void Draw(CGUI& pGUI, const CGUIColor& DefaultColor, const CVector2D& pos, const float z, const CRect& clipping) const; | void Draw(CGUI& pGUI, const CGUIColor& DefaultColor, const CVector2D& pos, const float z, const CRect& clipping) const; | ||||
const CSize2D& GetSize() const { return m_Size; } | const CSize2D& GetSize() const { return m_Size; } | ||||
▲ Show 20 Lines • Show All 107 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator