ysge v1.1.0 (2023-05-25T17:36:40Z)
Dub
Repo
Text
ysge
ui
text
Undocumented in source.
class
Text : UIElement {
SDL_Color
colour
;
Vec2
!
int
pos
;
float
scale
;
void
SetText
(string newText);
Vec2
!
int
GetTextSize
(Project project);
bool
HandleEvent
(Project project, SDL_Event e);
void
Render
(Project project);
}
Members
Functions
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.
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
Source
See Implementation
ysge
ui
text
classes
Text