al_enable_menu_event_source(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’… al_enable_menu_event_source

okay bestie, so this is from the Allegro 5 API β€” the <allegro5/allegro_native_dialog.h> era, the manual page is al_enable_menu_event_source(3alleg5), and honestly? it's giving "small function, big main character energy." ✨


🌸 SYNOPSIS 🌸

#include <allegro5/allegro_native_dialog.h>

ALLEGRO_EVENT_SOURCE *al_enable_menu_event_source(ALLEGRO_MENU *menu)

like yeah that's the whole signature. one ALLEGRO_MENU *menu in, one ALLEGRO_EVENT_SOURCE * out. no cap. πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

So what this does is it enables a unique event source for this menu. 🫢

And not just for the menu itself β€” it and all of its sub-menus will use this event source. the whole little menu family, sharing one source, together, as a treat. πŸ‘‘

Also, real talk: it is safe to call this multiple times on the same menu. so if you're the type to call it twice just to be sure (no judgement, we've all been there πŸ’€), you're fine.

Then it returns the event source. that's it, that's the vibe check. πŸ’–


⭐ SINCE ⭐

5.1.0 β€” yes she's been around. iconic behavior, honestly. 🌈


πŸ’œ SEE ALSO πŸ’œ


okay that's the whole page!! πŸŽ€ fr fr that's everything β€” nothing skipped, nothing hidden, every flag and fact present and accounted for. 🧚

later bestie, go make some menus pop off πŸ’…βœ¨

from the Allegro reference manual, page al_enable_menu_event_source(3alleg5) β€” mwah, bye! πŸ“πŸ’–
πŸ“¦ where this page comes from