Table of Contents
ex_gui_detach.c
Interactive N_GUI native (detached) window demo. Three ordinary pop-up windows, each with a button that promotes it to a real OS window and back. One panel uses the window manager's chrome (the default), one keeps N_GUI's own chrome inside a frameless native window (N_GUI_DETACH_OWN_CHROME), and one scales its widgets as the native window is resized (N_GUI_DETACH_SCALE_CONTENT).
The point of the demo is that nothing about the widgets changes: the same buttons, slider, text area and list keep working, and the same widget ids keep addressing them, whether the panel is a pop-up or its own window.
Keys: ESC quits, F5 saves the layout, F9 loads it back.
Options: -a detaches every panel at startup, -q SECONDS quits on its own. Together they give the demo a smoke-test mode that exercises the detach, draw and teardown paths under a sanitizer without a user at the keyboard.
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