goome docs

API: styles and custom widgets

Made from goome.h 0.5.2 by tools/apiref.py. Dont edit it by hand, fix the header in c-goome.

Guide: ui custom.

goome_ui_pos 0.3

void goome_ui_pos(goome_ui *u, double x, double y);

next widget goes at x,y from the content top left (scroll included), the flow doesnt move

goome_ui_size 0.3

void goome_ui_size(goome_ui *u, double w, double h);

next widget size, 0 = its own size for that side

goome_ui_push_color 0.3

void goome_ui_push_color(goome_ui *u, int what, uint32_t argb);

GOOME_S_ color fields

goome_ui_push_num 0.3

void goome_ui_push_num(goome_ui *u, int what, double v);

GOOME_S_RADIUS and the other numbers

goome_ui_push_radii 0.3

void goome_ui_push_radii(goome_ui *u, goome_radii r);

per corner, beats GOOME_S_RADIUS until popped

goome_ui_push_font 0.3

void goome_ui_push_font(goome_ui *u, goome_font *f);

NULL = built in

goome_ui_push_skin 0.3

void goome_ui_push_skin(goome_ui *u, int kind, const goome_skin *s);

GOOME_SKIN_*, NULL = no skin

goome_ui_push_theme 0.3

void goome_ui_push_theme(goome_ui *u, const goome_theme *t);

a whole theme, one push

goome_ui_pop 0.3

void goome_ui_pop(goome_ui *u, int n);

pops the last n pushes of any kind

goome_ui_custom 0.3

int goome_ui_custom(goome_ui *u, const char *id, double w, double h, int flags, goome_ui_item *it);

DRAG_X or DRAG_Y alone locks that axis, 1 = something happened

goome_ui_canvas 0.3

goome_canvas *goome_ui_canvas(goome_ui *u);

goome_draw_* on it lands in the ui right here, clipped like the widgets

goome_ui_store 0.3

double *goome_ui_store(goome_ui *u, const char *id, int n);

n doubles kept per id, zero the first time