Text class reference
Widget that allows to display text on the screen.
Functions documentation
Default constructor.
Delegating constructor with theme application.
Copy constructor.
Default destructor.
Assignment operator.
Swap function.
Clones the object (usefull while making copy of object that is casted to its base).
Returns the used font size by the widget.
Sets new font size for the widget.
Returns text color data.
Sets text color.
Sets new font for the widget.
Returns pointer to the font used by widget.
Sets new text.
Returns the text displayed by the widget in the form of std::wstring.
Returns the text displayed by the widget in the form of std::wstring&. (Reference wersion.)
Sets text offset. Used mainly in SimpleInput widget.
Returns the text offset. Used mailny in SimpleInput widget.
Returns the width of the widget (the size of the longest line displayed).
Renders the widget.
Returns character identifier(position) and relative cursor position from the beggining in correlation to some specific point.
Returns the position of the promp at the place of the text character.
Returns the cursor position based on the previous position and size of the next character. (Specify the position of the next character.)
Returns the cursor position based on the previous position and size of the previous character. (Specify the position of the previous character.)
Based on the m_iFlags from m_Widget2DProps, and true widget dimensions calculates the widget's shift vector.
Returns the kerning value between two characters in the text.
Creates OpenGL VAO and VBO.
Fills-in m_Vertexs and m_Uvs arrays with appropriate data, then binds them to their VBO.
Deletes OpenGL VAO and VBO.
Variables documentation
Stores information about widget theme and used font.
Actual text displayed by the widget.
Represents the true dimension of the widget.
OpenGL Vertex Array id.
OpenGL Vertex Buffer id.
OpenGL UV Buffer id.
Stores all vertices representing the text.
Stores texture position for each vertex.
Reserved.