Table of Contents
- N_GUI_TB_BUTTONS
- Public Attributes
- Public Attributes Documentation
- variable restore_y
- variable restore_x
- variable restore_w
- variable restore_h
- variable pressed
- variable on_minimize_user_data
- variable on_minimize
- variable on_maximize_user_data
- variable on_maximize
- variable on_close_user_data
- variable on_close
- variable minimize_hover_bitmap
- variable minimize_bitmap
- variable minimize_active_bitmap
- variable maximize_hover_bitmap
- variable maximize_bitmap
- variable maximize_active_bitmap
- variable hovered
- variable close_theme
- variable close_hover_bitmap
- variable close_bitmap
- variable close_active_bitmap
- variable btn_theme
N_GUI_TB_BUTTONS
Module: GUI: allegro5 widget system with pseudo-windows
Titlebar button state for a window (minimize, maximize, close).
#include "n_gui.h"
Public Attributes
| Name | |
|---|---|
| float | restore_y saved y position before maximise (for restore) |
| float | restore_x saved x position before maximise (for restore) |
| float | restore_w saved width before maximise (for restore) |
| float | restore_h saved height before maximise (for restore) |
| int | pressed which button is currently pressed (N_GUI_TB_BTN_*) |
| void * | on_minimize_user_data user data for on_minimize callback |
| void(*)(int window_id, void *user_data) | on_minimize callback on minimize button click (NULL = default: toggle N_GUI_WIN_MINIMISED) |
| void * | on_maximize_user_data user data for on_maximize callback |
| void(*)(int window_id, void *user_data) | on_maximize callback on maximize button click (NULL = default: toggle N_GUI_WIN_MAXIMISED) |
| void * | on_close_user_data user data for on_close callback |
| void(*)(int window_id, void *user_data) | on_close callback on close button click (NULL = default: clear N_GUI_WIN_OPEN) |
| ALLEGRO_BITMAP * | minimize_hover_bitmap optional bitmap for minimize button hover state |
| ALLEGRO_BITMAP * | minimize_bitmap optional bitmap for minimize button normal state (NULL = color theme) |
| ALLEGRO_BITMAP * | minimize_active_bitmap optional bitmap for minimize button active state |
| ALLEGRO_BITMAP * | maximize_hover_bitmap optional bitmap for maximize button hover state |
| ALLEGRO_BITMAP * | maximize_bitmap optional bitmap for maximize button normal state (NULL = color theme) |
| ALLEGRO_BITMAP * | maximize_active_bitmap optional bitmap for maximize button active state |
| int | hovered which button is currently hovered (N_GUI_TB_BTN_*) |
| N_GUI_THEME | close_theme theme for close button (defaults to red hover/active) |
| ALLEGRO_BITMAP * | close_hover_bitmap optional bitmap for close button hover state |
| ALLEGRO_BITMAP * | close_bitmap optional bitmap for close button normal state (NULL = color theme) |
| ALLEGRO_BITMAP * | close_active_bitmap optional bitmap for close button active state |
| N_GUI_THEME | btn_theme theme for minimize and maximize buttons |
Public Attributes Documentation
variable restore_y
float restore_y;
saved y position before maximise (for restore)
variable restore_x
float restore_x;
saved x position before maximise (for restore)
variable restore_w
float restore_w;
saved width before maximise (for restore)
variable restore_h
float restore_h;
saved height before maximise (for restore)
variable pressed
int pressed;
which button is currently pressed (N_GUI_TB_BTN_*)
variable on_minimize_user_data
void * on_minimize_user_data;
user data for on_minimize callback
variable on_minimize
void(*)(int window_id, void *user_data) on_minimize;
callback on minimize button click (NULL = default: toggle N_GUI_WIN_MINIMISED)
variable on_maximize_user_data
void * on_maximize_user_data;
user data for on_maximize callback
variable on_maximize
void(*)(int window_id, void *user_data) on_maximize;
callback on maximize button click (NULL = default: toggle N_GUI_WIN_MAXIMISED)
variable on_close_user_data
void * on_close_user_data;
user data for on_close callback
variable on_close
void(*)(int window_id, void *user_data) on_close;
callback on close button click (NULL = default: clear N_GUI_WIN_OPEN)
variable minimize_hover_bitmap
ALLEGRO_BITMAP * minimize_hover_bitmap;
optional bitmap for minimize button hover state
variable minimize_bitmap
ALLEGRO_BITMAP * minimize_bitmap;
optional bitmap for minimize button normal state (NULL = color theme)
variable minimize_active_bitmap
ALLEGRO_BITMAP * minimize_active_bitmap;
optional bitmap for minimize button active state
variable maximize_hover_bitmap
ALLEGRO_BITMAP * maximize_hover_bitmap;
optional bitmap for maximize button hover state
variable maximize_bitmap
ALLEGRO_BITMAP * maximize_bitmap;
optional bitmap for maximize button normal state (NULL = color theme)
variable maximize_active_bitmap
ALLEGRO_BITMAP * maximize_active_bitmap;
optional bitmap for maximize button active state
variable hovered
int hovered;
which button is currently hovered (N_GUI_TB_BTN_*)
variable close_theme
N_GUI_THEME close_theme;
theme for close button (defaults to red hover/active)
variable close_hover_bitmap
ALLEGRO_BITMAP * close_hover_bitmap;
optional bitmap for close button hover state
variable close_bitmap
ALLEGRO_BITMAP * close_bitmap;
optional bitmap for close button normal state (NULL = color theme)
variable close_active_bitmap
ALLEGRO_BITMAP * close_active_bitmap;
optional bitmap for close button active state
variable btn_theme
N_GUI_THEME btn_theme;
theme for minimize and maximize buttons
Modules
- AABB3D
- ACCEPT_POOL
- ALLEGRO4
- ALLEGRO5
- ANIM_LIB
- ASTAR
- ATLAS_LIB
- AVRO
- CLOCK_SYNC
- COMMONS
- CONFIGFILE
- CYPHER_BASE64
- CYPHER_VIGENERE
- DEAD_RECKONING
- ENUMS
- EXCEPTIONS
- GAME_ENV
- GIT
- GUI
- HASH_TABLE
- ISOMETRIC_ENGINE
- LIST
- LOG
- LOGNODUP
- LZ4
- NETWORKING
- NETWORK_MSG
- N_COOKIES
- N_DIFF
- N_DIGEST
- N_DISK_CACHE
- N_DNS
- N_ECC
- N_ENTROPY
- N_FILES
- N_FLUIDS
- N_GUI_COLOR
- N_GUI_COLORWHEEL
- N_GUI_CURVE
- N_GUI_GRID
- N_GUI_POPUP
- N_HEX
- N_HTTP3
- N_HTTP_COOKIE
- N_HTTP_FORM
- N_HTTP_MIME
- N_HTTP_REQ
- N_HTTP_RESP
- N_HTTP_ROUTER
- N_HTTP_SERVER
- N_ICC
- N_JSON
- N_KAFKA
- N_LINALG
- N_MODULE
- N_OPENSSL_COMPAT
- N_PRETTY
- N_PTH
- N_QUERY
- N_RANDOM
- N_SHA256
- N_STR
- N_TIFF
- N_TIME
- N_USER
- N_X509
- N_ZIP
- PARTICLES
- PCRE
- PHYSICS
- SIGNALS
- STACK
- THREADS
- TRAJECTORY
- TREE
- ZLIB