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

_N_GUI_COLORWHEEL

a wheel's state, owned by its custom widget

Public Attributes

Name
float v
the point, up
void * user_data
handed back to on_change
float u
the point, across
float press_y
where it was, in the widget
float press_x
where it was, in the widget
double press_time
time of the last left press, al_get_time(), for the double click
N_GUI_COLORWHEEL_CHANGE on_change
the caller's change callback
int dragging
non-zero while the button is held
void * colour_user_data
handed back to colour
N_GUI_COLORWHEEL_COLOUR colour
the disc's colour, the caller's or the default

Public Attributes Documentation

variable v

float v;

the point, up

variable user_data

void * user_data;

handed back to on_change

variable u

float u;

the point, across

variable press_y

float press_y;

where it was, in the widget

variable press_x

float press_x;

where it was, in the widget

variable press_time

double press_time;

time of the last left press, al_get_time(), for the double click

variable on_change

N_GUI_COLORWHEEL_CHANGE on_change;

the caller's change callback

variable dragging

int dragging;

non-zero while the button is held

variable colour_user_data

void * colour_user_data;

handed back to colour

variable colour

N_GUI_COLORWHEEL_COLOUR colour;

the disc's colour, the caller's or the default