gui_shadow_box_proc(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

πŸ’– gui_shadow_box_proc(3) πŸ’–

okay bestie so this is a page from the Allegro manual, and it's about six lil function-pointer hooks that let you glow-up how your Allegro dialogs look. it's giving "make it fashion" but for GUI widgets. πŸŽ€


✨ NAME ✨

gui_shadow_box_proc, gui_ctext_proc, gui_button_proc, gui_edit_proc, gui_list_proc, gui_text_list_proc β€” these are the hooks you use to customise the look and feel of Allegro dialogs. periodt. πŸ’…


✨ SYNOPSIS ✨

#include <allegro.h>

extern int (*gui_shadow_box_proc)(int msg, struct DIALOG *d, int c);

extern int (*gui_ctext_proc)(int msg, struct DIALOG *d, int c);

extern int (*gui_button_proc)(int msg, struct DIALOG *d, int c);

extern int (*gui_edit_proc)(int msg, struct DIALOG *d, int c);

extern int (*gui_list_proc)(int msg, struct DIALOG *d, int c);

extern int (*gui_text_list_proc)(int msg, struct DIALOG *d, int c);

✨ DESCRIPTION ✨

okay so here's the tea, bestie πŸ«– β€” if you set these functions, the standard Allegro dialogs will use them. that's it, that's the whole vibe.

it means you get to customise the look and feel, lowkey the same way gui_fg_color and gui_bg_color do... except much more flexibly. like, the difference between picking a new wallpaper vs. redecorating the entire room. main character energy fr fr. πŸ‘‘

no cap: it's a whole function pointer per widget type, so each one gets its own lil personality. slay. πŸ’…

✨ SEE ALSO ✨


and that's the whole page, gorgeous 🌸 this came from the Allegro manual, version 4.4.3, and the page itself is gui_shadow_box_proc(3). go customise something iconic, i'm obsessed. πŸ¦‹πŸ’œβœ¨

πŸ“¦ where this page comes from