AL_TOGGLE_MENU_ITEM_FLAGS(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

πŸ’– al_toggle_..._item_flags(3)

okay so this is the al_toggle_..._item_flags(3) page, straight outta the Library Functions Manual, and it’s all about the Allegro 5 API. Let’s get into it, bestie. πŸ’…


🌸 NAME

al_toggle_menu_item_flags β€” Allegro 5 API

✨ SYNOPSIS

#include <allegro5/allegro_native_dialog.h>

int al_toggle_menu_item_flags(ALLEGRO_MENU *menu, int pos, int flags)

πŸŽ€ DESCRIPTION

So this one toggles the flags on the menu item you point at. For the full rundown of which flags are available, go see al_insert_menu_item(3) β€” that’s where they’re described. πŸ‘€

It returns a bitfield containing only the specified flags that are set after the toggle. A flag that was not toggled will not be returned, even if it is set. And if the id is invalid? You get -1, no cap. 😭

⏳ SINCE

5.1.0

[Unstable API]: Redundant with al_get/set_menu_item_flags.

πŸ‘€ SEE ALSO


Bestie, that’s the whole page. Footer vibes: Allegro reference manual, page al_toggle_..._item_flags(3) β€” and there’s no date in the footer, so I’m not gonna manifest one. πŸ’–βœ¨

πŸ“¦ where this page comes from
  • arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms