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

N_GUI_SECTION

Module: GUI: allegro5 widget system with pseudo-windows

a single foldable section: a clickable header plus the member widgets it shows/hides

#include "n_gui.h"

Public Attributes

Name
int[96] widget_ids
member widget ids
int[96] widget_hidden
1 = the caller keeps this member hidden whatever the fold state, and it does not count towards natural_h
float[96] widget_dy
each member's y offset from the section content top, captured at add time and settable with n_gui_sectionlist_set_widget_offset()
char[64] title
section title (header label minus the fold glyph)
int nb_widgets
number of member widgets
float natural_h
stacked height of the members when expanded, recomputed by n_gui_sectionlist_relayout() from the live offsets and heights
int header_id
clickable header button widget id
int folded
1 = collapsed (members hidden), 0 = expanded

Public Attributes Documentation

variable widget_ids

int[96] widget_ids;

member widget ids

variable widget_hidden

int[96] widget_hidden;

1 = the caller keeps this member hidden whatever the fold state, and it does not count towards natural_h

variable widget_dy

float[96] widget_dy;

each member's y offset from the section content top, captured at add time and settable with n_gui_sectionlist_set_widget_offset()

variable title

char[64] title;

section title (header label minus the fold glyph)

variable nb_widgets

int nb_widgets;

number of member widgets

variable natural_h

float natural_h;

stacked height of the members when expanded, recomputed by n_gui_sectionlist_relayout() from the live offsets and heights

variable header_id

int header_id;

clickable header button widget id

variable folded

int folded;

1 = collapsed (members hidden), 0 = expanded