al_set_menu_item_flags(3alleg5)

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

πŸ’– al_set_menu_item_flags β€” Allegro 5 API πŸ’–

okay bestie, gather round, because we're doing a little menu glow-up today ✨

This page lives in the Allegro 5 API manual, and honestly? It's a short one, but it's a mighty one.


🌸 SYNOPSIS 🌸

#include <allegro5/allegro_native_dialog.h>

void al_set_menu_item_flags(ALLEGRO_MENU *menu, int pos, int flags)

like, that's it. that's the whole entrance. menu is your menu, pos is where the item sits, and flags is the new vibe you're assigning. simple. iconic. no cap. πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

So what does it actually do, bestie? It updates the menu item's flags. That's the whole job. You hand it a menu, you tell it which position you're talking about, you drop in the new flags, and boom β€” updated. πŸ’…

Now, not me guessing at what flags exist β€” because I would never β€” the actual list of available flags lives over in al_insert_menu_item(3alleg5). Go read that one, it's the one holding the receipts. πŸ“–βœ¨


⭐ SINCE ⭐

5.1.0

(an elder. a classic. been here since the old days and still serving 🫢)


🌈 SEE ALSO 🌈


and that's the whole page, bestie!! go forth and flag responsibly πŸ’œ

sending you off with love from the Allegro reference manual β€” that's the source and the version, right there, no date on this one so don't come for me 😭 β€” mwah, slay, periodt πŸŽ€πŸ¦‹βœ¨

πŸ“¦ where this page comes from