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

N_GUI_TREE_NODE

Module: GUI: allegro5 widget system with pseudo-windows

a single node in the tree view

#include "n_gui.h"

Public Attributes

Name
void * user_data
user data for this node
int parent_index
parent node index, or -1 for root
char[128] label
display text
int has_children
1 if node has children
int filled
1 once the expand callback has run for this node
int expanded
1 if expanded
int expandable
1 if the node can be opened before it has children: its children are added by the expand callback
int depth
depth in tree (0 = root)

Public Attributes Documentation

variable user_data

void * user_data;

user data for this node

variable parent_index

int parent_index;

parent node index, or -1 for root

variable label

char[128] label;

display text

variable has_children

int has_children;

1 if node has children

variable filled

int filled;

1 once the expand callback has run for this node

variable expanded

int expanded;

1 if expanded

variable expandable

int expandable;

1 if the node can be opened before it has children: its children are added by the expand callback

variable depth

int depth;

depth in tree (0 = root)