Changeset View
Changeset View
Standalone View
Standalone View
source/gui/CGUIText.h
Show First 20 Lines • Show All 161 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); | CGUIText(const CGUI& pGUI, const CGUIString& string, const CStrW& FontW, 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 53 Lines • ▼ Show 20 Lines | void ComputeLineSize( | ||||
const int temp_from, | const int temp_from, | ||||
float& x, | float& x, | ||||
CSize& line_size) const; | CSize& line_size) const; | ||||
bool AssembleCalls( | bool AssembleCalls( | ||||
const CGUI& pGUI, | const CGUI& pGUI, | ||||
const CGUIString& string, | const CGUIString& string, | ||||
const CStrIntern& Font, | const CStrIntern& Font, | ||||
const IGUIObject* pObject, | const IGUIObject* pObject, | ||||
vladislavbelov: Different order of `bool`s. | |||||
const bool FirstLine, | const bool FirstLine, | ||||
const float Width, | const float Width, | ||||
const float width_range_to, | const float width_range_to, | ||||
const float dx, | const float dx, | ||||
const float y, | const float y, | ||||
const int temp_from, | const int temp_from, | ||||
const int i, | const int i, | ||||
float& x, | float& x, | ||||
Show All 37 Lines |
Wildfire Games · Phabricator
Different order of bools.