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

N_GUI_POPUP

the popup More...

Public Attributes

Name
void * user_data
handed to on_pick
float scale
interface scale
N_GUI_POPUP_FN on_pick
called on a pick
int nb_entries
how many
_N_GUI_POPUP_ENTRY * entries
the entries; 0 is the root.
N_GUI_CTX * ctx
the context
int capacity
allocated

Detailed Description

struct N_GUI_POPUP;

the popup

a popup menu.

Opaque: make it with n_gui_popup_new(), release it with n_gui_popup_free().

Public Attributes Documentation

variable user_data

void * user_data;

handed to on_pick

variable scale

float scale;

interface scale

variable on_pick

N_GUI_POPUP_FN on_pick;

called on a pick

variable nb_entries

int nb_entries;

how many

variable entries

_N_GUI_POPUP_ENTRY * entries;

the entries; 0 is the root.

Appended to only while the tree is built, so pointers into it hold while a level is open.

variable ctx

N_GUI_CTX * ctx;

the context

variable capacity

int capacity;

allocated