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

_N_GUI_CURVE

an editor's state, owned by its custom widget

Public Attributes

Name
float * ys
points' y
float * xs
points' x, ascending
void * user_data
handed back to on_change
float radius
drawn point radius, pixels
N_GUI_CURVE_CHANGE on_change
the caller's change callback
int max
room in xs and ys
int id
the widget
void * eval_user_data
handed back to eval
N_GUI_CURVE_EVAL eval
the caller's curve, or NULL for the built-in one
int dragging
the point being dragged, or -1
int count
how many points
void * background_user_data
handed back to background
N_GUI_CURVE_BACKGROUND background
drawn behind everything, or NULL

Public Attributes Documentation

variable ys

float * ys;

points' y

variable xs

float * xs;

points' x, ascending

variable user_data

void * user_data;

handed back to on_change

variable radius

float radius;

drawn point radius, pixels

variable on_change

N_GUI_CURVE_CHANGE on_change;

the caller's change callback

variable max

int max;

room in xs and ys

variable id

int id;

the widget

variable eval_user_data

void * eval_user_data;

handed back to eval

variable eval

N_GUI_CURVE_EVAL eval;

the caller's curve, or NULL for the built-in one

variable dragging

int dragging;

the point being dragged, or -1

variable count

int count;

how many points

variable background_user_data

void * background_user_data;

handed back to background

variable background

N_GUI_CURVE_BACKGROUND background;

drawn behind everything, or NULL