al_insert_menu_item(3alleg5) | al_insert_menu_item(3alleg5) |
al_insert_menu_item - Allegro 5 API
#include <allegro5/allegro_native_dialog.h> int al_insert_menu_item(ALLEGRO_MENU *parent, int pos, char const *title, uint16_t id, int flags, ALLEGRO_BITMAP *icon, ALLEGRO_MENU *submenu)
Inserts a menu item at the spot specified. See the introductory text for a detailed explanation of how the pos parameter is interpreted.
The parent menu can be a popup menu or a regular menu. To underline one character in the title, prefix it with an ampersand.
The flags can be any combination of:
The icon is not yet supported.
The submenu parameter indicates that this item contains a child menu. The child menu must have previously been created with al_create_menu, and not be associated with any other menu.
Returns true on success.
5.1.0
Allegro reference manual |