Macaw OS C reference

Function ui_swatches

#include <macawui.h>
int ui_swatches(int *colour, int all);

Shows squares of colour to pick one from.

Parameters

colourint *
The address of an int of yours: the picked colour number. A click changes it.
allint
0 for the 32 named colours, 1 for all 256.

Returns int

1 in the frame another colour is picked, 0 otherwise.

In Widgets, with ui_label, ui_heading, ui_separator, ui_button, ui_checkbox, ui_radio, ui_slider, ui_textbox, ui_textboxex, ui_listbox, ui_dropdown, ui_tabs, ui_progress, ui_image.