Button

button UI element

Members

Functions

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.
SetLabel
void SetLabel(string newLabel)

sets the button's label

Variables

fill
SDL_Color fill;

the background colour of the button

labelColour
SDL_Color labelColour;

the colour of the label text

onClick
ButtonOnClick onClick;

called when the button is clicked

outline
SDL_Color outline;

the colour of the button outline

rect
SDL_Rect rect;

the rectangle the button will be rendered in

Meta