Cubios::Gfx::Text
Constructors
Text
Summary
Constructs an object for rendering of text
Arguments
- text - string of text to render
- t - Transform object that holds initial screen position, rotation and mirroring mode of the text object
- fontSize - size of font, in pixels
- color - text color
- al - text alighnemnt mode
Synopsis
Arguments
- text - string of text to render
- t - Transform object that holds initial screen position, rotation and mirroring mode of the text object
- fontSize - size of font, in pixels
- al - text alighnemnt mode
Synopsis
Arguments
- text - string of text to render
- x - x screen coordinate of initial postion of the text object
- y - y screen coordinate of initial postion of the text object
- fontSize - size of font, in pixels
Synopsis
Arguments
- text - string of text to render
- x - x screen coordinate of initial postion of the text object
- y - y screen coordinate of initial postion of the text object
- fontSize - size of font, in pixels
- color - text color
Synopsis
Public Methods
SetContent
Summary
Sets textual content to render
Arguments
- text - string of text to render
Output
Returns a pointer to the object to which the change was applied
Synopsis
FormatContent
Summary
Sets textual content to render via standard formatted string input
Arguments
- format - formatted string
Output
Returns a pointer to the object to which the change was applied
Synopsis
SetFontSize
Summary
Sets text font size
Arguments
- fontSize - font size, in pixels
Output
Returns a pointer to the object to which the change was applied
Synopsis
Public Members
Content
Summary
Current text content
Synopsis
Alignment
Summary
Current text alignment mode
Synopsis
FontSize
Summary
Current text font size
Synopsis