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

N_GUI_TREE_STATE

Module: GUI: allegro5 widget system with pseudo-windows

A tree's view state, captured by path so it survives a rebuild that replaces every node (a reloaded model has new pointers and new indices). More...

#include "n_gui.h"

Public Attributes

Name
char * selected
path of the selected node, or NULL
int scroll_offset
first visible row
int nb_expanded
number of paths stored
float h_scroll
horizontal scroll offset in pixels
char *[512] expanded
paths of the expanded nodes

Detailed Description

struct N_GUI_TREE_STATE;

A tree's view state, captured by path so it survives a rebuild that replaces every node (a reloaded model has new pointers and new indices).

Owns its strings: release with n_gui_tree_state_free.

Public Attributes Documentation

variable selected

char * selected;

path of the selected node, or NULL

variable scroll_offset

int scroll_offset;

first visible row

variable nb_expanded

int nb_expanded;

number of paths stored

variable h_scroll

float h_scroll;

horizontal scroll offset in pixels

variable expanded

char *[512] expanded;

paths of the expanded nodes