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

N_GUI_CHECKBOX_DATA

Module: GUI: allegro5 widget system with pseudo-windows

checkbox specific data

#include "n_gui.h"

Public Attributes

Name
void * user_data
user data for callback
void(*)(int widget_id, int checked, void *user_data) on_toggle
callback on toggle
char[128] label
label displayed next to the checkbox
int checked
checked state
ALLEGRO_BITMAP * box_hover_bitmap
optional bitmap for the checkbox square on hover (NULL = fallback to box_bitmap/box_checked_bitmap)
ALLEGRO_BITMAP * box_checked_bitmap
optional bitmap for the checkbox square, checked state (NULL = color theme)
ALLEGRO_BITMAP * box_bitmap
optional bitmap for the checkbox square, unchecked state (NULL = color theme)

Public Attributes Documentation

variable user_data

void * user_data;

user data for callback

variable on_toggle

void(*)(int widget_id, int checked, void *user_data) on_toggle;

callback on toggle

variable label

char[128] label;

label displayed next to the checkbox

variable checked

int checked;

checked state

variable box_hover_bitmap

ALLEGRO_BITMAP * box_hover_bitmap;

optional bitmap for the checkbox square on hover (NULL = fallback to box_bitmap/box_checked_bitmap)

variable box_checked_bitmap

ALLEGRO_BITMAP * box_checked_bitmap;

optional bitmap for the checkbox square, checked state (NULL = color theme)

variable box_bitmap

ALLEGRO_BITMAP * box_bitmap;

optional bitmap for the checkbox square, unchecked state (NULL = color theme)