Text

Undocumented in source.

Members

Functions

CreateCopy
Text CreateCopy()

copies this UI element to a new class instance

GetTextSize
Vec2!int GetTextSize(Project project)

returns the size in pixels of the text

HandleEvent
bool HandleEvent(Project project, SDL_Event e)
Undocumented in source. Be warned that the author may not have intended to support it.
Reload
void Reload(Project parent)

re-renders the text

Render
void Render(Project project)
Undocumented in source. Be warned that the author may not have intended to support it.
SetText
void SetText(string newText)

sets the text that is rendered

Variables

colour
SDL_Color colour;
Undocumented in source.
pos
Vec2!int pos;
Undocumented in source.
scale
float scale;
Undocumented in source.

Meta