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

N_GUI_TAB_PANEL

Module: GUI: allegro5 widget system with pseudo-windows

tab panel built from toggle buttons with content window management

#include "n_gui.h"

Public Attributes

Name
float y
y origin of tab button row
float x
x origin of first tab button
void * user_data
user data for callback
int parent_window_id
parent window for tab buttons
void(*)(int, void *) on_tab_change
callback on tab switch (may be NULL)
int nb_tabs
number of tabs
N_GUI_CTX * ctx
GUI context.
int[16] content_window_ids
content window IDs (-1 = none)
float button_w
width of each tab button
int[16] button_ids
toggle button widget IDs
float button_h
height of each tab button
int active_tab
currently active tab index

Public Attributes Documentation

variable y

float y;

y origin of tab button row

variable x

float x;

x origin of first tab button

variable user_data

void * user_data;

user data for callback

variable parent_window_id

int parent_window_id;

parent window for tab buttons

variable on_tab_change

void(*)(int, void *) on_tab_change;

callback on tab switch (may be NULL)

variable nb_tabs

int nb_tabs;

number of tabs

variable ctx

N_GUI_CTX * ctx;

GUI context.

variable content_window_ids

int[16] content_window_ids;

content window IDs (-1 = none)

variable button_w

float button_w;

width of each tab button

variable button_ids

int[16] button_ids;

toggle button widget IDs

variable button_h

float button_h;

height of each tab button

variable active_tab

int active_tab;

currently active tab index