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

_N_GUI_POPUP_ENTRY

one entry. More...

Public Attributes

Name
float y
float x
the level's position when last opened
int window
the level's window, or -1 until first opened
int widget
the level's custom widget
float w
the level's size when last laid out
char * tip
tooltip; owned, may be NULL
char * text
row text, or the heading for the root; owned, may be NULL
int tag
handed to on_pick
int shown
shown when non-zero
int * rows
entry ids of the rows as laid out at its last opening; owned
float * row_y
top of each row from the level's top; owned, nb_rows long
int parent
the level it is in; -1 for the root
int nb_rows
how many rows
int kind
POPUP_KIND*
int hover
the row under the pointer, an index into rows, or -1
_N_GUI_POPUP_LEVEL * hook
what the widget is handed; owned
float h
int enabled
enabled when non-zero
int child
the submenu open beside it, an entry id, or -1

Detailed Description

struct _N_GUI_POPUP_ENTRY;

one entry.

A root or a submenu is also a level and uses the fields after [enabled](Struct-_N_GUI_POPUP_ENTRY#user-content-variable-enabled).

Public Attributes Documentation

variable y

float y;

variable x

float x;

the level's position when last opened

variable window

int window;

the level's window, or -1 until first opened

variable widget

int widget;

the level's custom widget

variable w

float w;

the level's size when last laid out

variable tip

char * tip;

tooltip; owned, may be NULL

variable text

char * text;

row text, or the heading for the root; owned, may be NULL

variable tag

int tag;

handed to on_pick

variable shown

int shown;

shown when non-zero

variable rows

int * rows;

entry ids of the rows as laid out at its last opening; owned

variable row_y

float * row_y;

top of each row from the level's top; owned, nb_rows long

variable parent

int parent;

the level it is in; -1 for the root

variable nb_rows

int nb_rows;

how many rows

variable kind

int kind;

POPUP_KIND*

variable hover

int hover;

the row under the pointer, an index into rows, or -1

variable hook

_N_GUI_POPUP_LEVEL * hook;

what the widget is handed; owned

variable h

float h;

variable enabled

int enabled;

enabled when non-zero

variable child

int child;

the submenu open beside it, an entry id, or -1