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

N_GUI_SPLITPANE_DATA

Module: GUI: allegro5 widget system with pseudo-windows

split pane specific data: a draggable divider between two regions

#include "n_gui.h"

Public Attributes

Name
void * user_data
user data for callback
float ratio
divider position as a fraction of the widget extent (0..1)
int orientation
N_GUI_SPLIT_VERTICAL or N_GUI_SPLIT_HORIZONTAL.
void(*)(int widget_id, float ratio, void *user_data) on_change
callback fired while the divider is dragged (widget_id, ratio, user_data)
float min_ratio
lower clamp applied to ratio
float max_ratio
upper clamp applied to ratio
float divider
divider thickness in pixels

Public Attributes Documentation

variable user_data

void * user_data;

user data for callback

variable ratio

float ratio;

divider position as a fraction of the widget extent (0..1)

variable orientation

int orientation;

N_GUI_SPLIT_VERTICAL or N_GUI_SPLIT_HORIZONTAL.

variable on_change

void(*)(int widget_id, float ratio, void *user_data) on_change;

callback fired while the divider is dragged (widget_id, ratio, user_data)

variable min_ratio

float min_ratio;

lower clamp applied to ratio

variable max_ratio

float max_ratio;

upper clamp applied to ratio

variable divider

float divider;

divider thickness in pixels