std1.0.0-beta-7 SafeC docs

std :: gui::gui_widget

Type alias std::WidgetDrawFn

#include <std/gui/gui_widget.h> source

typedef fn void(&GuiWindow, &Widget) WidgetDrawFn

Custom draw(window, widget) — called instead of the built-in renderer for a WIDGET_CUSTOM node; must draw within [widget->x, widget->x+widget->w) x [widget->y, widget->y+widget->h) using GuiWindow's drawing methods (win.fill_rect(), win.draw_text(), ...).