FabGL
ESP32 Display Controller and Graphics Library

◆ uiButton()

uiButton ( uiWindow parent,
char const *  text,
const Point pos,
const Size size,
uiButtonKind  kind = uiButtonKind::Button,
bool  visible = true,
uint32_t  styleClassID = 0 
)

Creates an instance of the object.

Parameters
parentThe parent window. A button must always have a parent window
textThe text of the button
posTop-left coordinates of the button relative to the parent
sizeThe button size
kindThe button kind (button or switch)
visibleIf true the button is immediately visible
styleClassIDOptional style class identifier

Definition at line 2533 of file fabui.cpp.