bloat-buster/bootstrap/std/ui_builder.c
David Gonzalez Martin a9e0c8bfcb Clumsy UI prototype
2024-12-10 18:13:01 -06:00

14 lines
309 B
C

#include <std/ui_builder.h>
UI_Signal ui_button(String string, UI_Rect rect)
{
auto* widget = ui_widget_make((UI_WidgetFlags) {
.draw_text = 1,
.draw_background = 1,
.clickable = 1,
}, string, rect);
UI_Signal signal = ui_signal_from_widget(widget);
return signal;
}