1al_toggle_menu_item_flags(3) al_toggle_menu_item_flags(3)
2
3
4
6 al_toggle_menu_item_flags - Allegro 5 API
7
9 #include <allegro5/allegro_native_dialog.h>
10
11 int al_toggle_menu_item_flags(ALLEGRO_MENU *menu, int pos, int flags)
12
14 Toggles the specified menu item’s flags. See al_insert_menu_item(3)
15 for a description of the available flags.
16
17 Returns a bitfield of only the specified flags that are set after the
18 toggle. A flag that was not toggled will not be returned, even if it
19 is set. Returns -1 if the id is invalid.
20
22 5.1.0
23
24 [Unstable API]: Redundant with al_get/set_menu_item_flags.
25
27 al_get_menu_item_flags(3), al_set_menu_item_flags(3)
28
29
30
31Allegro reference manual al_toggle_menu_item_flags(3)