5 Struct N_GUI_COLOR_PICKER
gullradriel edited this page 2026-10-09 00:55:18 +02:00

N_GUI_COLOR_PICKER

a colour picker: the ids of its widgets and the colour being edited More...

Public Attributes

Name
int window
the window
void * user_data
handed back to on_change
int syncing
non-zero while the sliders are set from code, so their callbacks are not taken for the user's
int swatch
the large swatch
int[4] sl
one slider per channel, 0 to 255
float[4] rgba
the colour being edited
N_GUI_COLOR_FN on_change
whom to tell
int lbl_what
what the colour is for
int[4] lbl
name and value over each slider
N_GUI_CTX * ctx
the context the widgets live in
int btn_close
the Close button

Detailed Description

struct N_GUI_COLOR_PICKER;

a colour picker: the ids of its widgets and the colour being edited

a colour picker dialog.

Opaque: make it with n_gui_color_picker_new(), release it with n_gui_color_picker_free().

Public Attributes Documentation

variable window

int window;

the window

variable user_data

void * user_data;

handed back to on_change

variable syncing

int syncing;

non-zero while the sliders are set from code, so their callbacks are not taken for the user's

variable swatch

int swatch;

the large swatch

variable sl

int[4] sl;

one slider per channel, 0 to 255

variable rgba

float[4] rgba;

the colour being edited

variable on_change

N_GUI_COLOR_FN on_change;

whom to tell

variable lbl_what

int lbl_what;

what the colour is for

variable lbl

int[4] lbl;

name and value over each slider

variable ctx

N_GUI_CTX * ctx;

the context the widgets live in

variable btn_close

int btn_close;

the Close button