power_play/src/ui/ui_common.h
2025-11-09 01:44:19 -06:00

22 lines
699 B
C

////////////////////////////////////////////////////////////
//~ Label helpers
UI_Key UI_BuildLabel(String text);
#define UI_BuildLabelF(fmt_cstr, ...) UI_BuildLabelF_(fmt_cstr, __VA_ARGS__, FmtEnd)
UI_Key UI_BuildLabelF_(char *fmt_cstr, ...);
////////////////////////////////////////////////////////////
//~ Spacing helpers
UI_Key UI_BuildSpacer(UI_Size size, Axis axis);
UI_Key UI_BuildDivider(UI_Size size, Vec4 color, Axis axis);
////////////////////////////////////////////////////////////
//~ Layout helpers
UI_Key UI_BuildRowEx(UI_Key key);
UI_Key UI_BuildColumnEx(UI_Key key);
#define UI_BuildRow() UI_BuildRowEx(UI_TransKey())
#define UI_BuildColumn() UI_BuildColumnEx(UI_TransKey())