std1.0.0-beta-7 SafeC docs

std :: gui::gui_widget

Type alias std::WidgetLayoutFn

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

typedef fn void(&Widget, int, int, int, int) WidgetLayoutFn

Custom layout(widget, x, y, w, h) — called instead of the built-in layout for a WIDGET_CUSTOM node; must set widget->x/y/w/h (typically to the given box) and lay out+recurse into any children itself.