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

N_GUI_PENDING_WIDGET

Module: GUI: allegro5 widget system with pseudo-windows

Saved user-adjustable state for a keyed widget that did not exist when the layout was loaded (a lazily-created splitpane/datagrid). More...

#include "n_gui.h"

Public Attributes

Name
float[64] width
per-physical-column width
int[64] visible
per-physical-column visibility
char[128] title
owning window title to match on
float ratio
divider ratio (kind == SPLITPANE)
int[64] order
display position -> physical column
int ncols
column count (kind == DATAGRID)
int kind
N_GUI_TYPE_SPLITPANE or N_GUI_TYPE_DATAGRID.
char[128] key
widget persist key to match on
unsigned char consumed
1 once applied

Detailed Description

struct N_GUI_PENDING_WIDGET;

Saved user-adjustable state for a keyed widget that did not exist when the layout was loaded (a lazily-created splitpane/datagrid).

Applied on the first n_gui_widget_set_persist_key that matches the owning window title + key (consume-once), the widget-level analog of N_GUI_PENDING_GEOM.

Public Attributes Documentation

variable width

float[64] width;

per-physical-column width

variable visible

int[64] visible;

per-physical-column visibility

variable title

char[128] title;

owning window title to match on

variable ratio

float ratio;

divider ratio (kind == SPLITPANE)

variable order

int[64] order;

display position -> physical column

variable ncols

int ncols;

column count (kind == DATAGRID)

variable kind

int kind;

N_GUI_TYPE_SPLITPANE or N_GUI_TYPE_DATAGRID.

variable key

char[128] key;

widget persist key to match on

variable consumed

unsigned char consumed;

1 once applied