Table of Contents
N_GUI_SECTIONLIST
Module: GUI: allegro5 widget system with pseudo-windows
a vertical accordion of foldable sections inside one window; folding hides a section's widgets and re-stacks the rest, leaving the window's N_GUI_WIN_AUTO_SCROLLBAR to absorb any overflow
#include "n_gui.h"
Public Attributes
| Name | |
|---|---|
| float | y0 content-local y of the first header |
| float | x content-local x of every header and the layout origin |
| int | window_id window holding the headers and members |
| float | width header width |
| void * | user_data user data for the callback |
| N_GUI_SECTION[16] | sections section storage |
| int[16] | section_hidden 1 = the whole section, header and members, is left out of the stack |
| int[16] | order display order: order[k] is the index of the section stacked k-th; indices themselves never change |
| void(*)(int, int, void *) | on_toggle callback(section_index, folded, user_data) on a header click (may be NULL) |
| int | nb_sections number of sections |
| float | header_h header button height |
| float | gap vertical gap between rows |
| float | first_inset content-local left inset applied to the FIRST header only, so a button can sit before it on the same row (0 = none) |
| N_GUI_CTX * | ctx GUI context. |
Public Attributes Documentation
variable y0
float y0;
content-local y of the first header
variable x
float x;
content-local x of every header and the layout origin
variable window_id
int window_id;
window holding the headers and members
variable width
float width;
header width
variable user_data
void * user_data;
user data for the callback
variable sections
N_GUI_SECTION[16] sections;
section storage
variable section_hidden
int[16] section_hidden;
1 = the whole section, header and members, is left out of the stack
variable order
int[16] order;
display order: order[k] is the index of the section stacked k-th; indices themselves never change
variable on_toggle
void(*)(int, int, void *) on_toggle;
callback(section_index, folded, user_data) on a header click (may be NULL)
variable nb_sections
int nb_sections;
number of sections
variable header_h
float header_h;
header button height
variable gap
float gap;
vertical gap between rows
variable first_inset
float first_inset;
content-local left inset applied to the FIRST header only, so a button can sit before it on the same row (0 = none)
variable ctx
N_GUI_CTX * ctx;
GUI context.
Modules
- AABB3D
- ACCEPT_POOL
- ALLEGRO4
- ALLEGRO5
- ANIM_LIB
- ASTAR
- ATLAS_LIB
- AVRO
- CLOCK_SYNC
- COMMONS
- CONFIGFILE
- CYPHER_BASE64
- CYPHER_VIGENERE
- DEAD_RECKONING
- ENUMS
- EXCEPTIONS
- GAME_ENV
- GIT
- GUI
- HASH_TABLE
- ISOMETRIC_ENGINE
- LIST
- LOG
- LOGNODUP
- LZ4
- NETWORKING
- NETWORK_MSG
- N_COOKIES
- N_DIFF
- N_DIGEST
- N_DISK_CACHE
- N_DNS
- N_ECC
- N_ENTROPY
- N_FILES
- N_FLUIDS
- N_GUI_COLOR
- N_GUI_COLORWHEEL
- N_GUI_CURVE
- N_GUI_GRID
- N_GUI_POPUP
- N_HEX
- N_HTTP3
- N_HTTP_COOKIE
- N_HTTP_FORM
- N_HTTP_MIME
- N_HTTP_REQ
- N_HTTP_RESP
- N_HTTP_ROUTER
- N_HTTP_SERVER
- N_ICC
- N_JSON
- N_KAFKA
- N_LINALG
- N_MODULE
- N_OPENSSL_COMPAT
- N_PRETTY
- N_PTH
- N_QUERY
- N_RANDOM
- N_SHA256
- N_STR
- N_TIFF
- N_TIME
- N_USER
- N_X509
- N_ZIP
- PARTICLES
- PCRE
- PHYSICS
- SIGNALS
- STACK
- THREADS
- TRAJECTORY
- TREE
- ZLIB