al_set_menu_item_icon(3alleg5)
β¨ NAME β¨
okay bestie, welcome to al_set_menu_item_icon(3alleg5) β the Allegro 5 API page for al_set_menu_item_icon. π
β¨ SYNOPSIS β¨
#include <allegro5/allegro_native_dialog.h>
void al_set_menu_item_icon(ALLEGRO_MENU *menu, int pos, ALLEGRO_BITMAP *icon)
β¨ DESCRIPTION β¨
So this one sets the icon for the specified menu item. The menu assumes ownership of the ALLEGRO_BITMAP and may invalidate the pointer, so you must clone it if you wish to continue using it. No cap, bestie β that pointer can ghost you. π
If a video bitmap is passed, it will automatically be converted to a memory bitmap, so it is preferable to pass a memory bitmap. π
β¨ SINCE β¨
5.1.0 β iconic since then, periodt. β
β¨ SEE ALSO β¨
Signing off from the Allegro reference manual, page al_set_menu_item_icon(3alleg5) π
β¨ The footer didn't list a date, so no date, bestie. π«Ά
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms