Function ui_tabs
#include <macawui.h>int ui_tabs(const char *id, const char **names, int n, int *current);
Shows a row of tabs. You draw the widgets for the tab that's showing after it.
Parameters
idconst char *- A name you choose, different for each set of tabs.
namesconst char **- An array of
nstrings, the tabs' names from the left. nint- How many tabs there are.
currentint *- The address of an
intof yours: the tab showing, counting from 0. A click changes it.
Returns int
1 in the frame another tab is clicked, 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_progress, ui_swatches, ui_image.