al_set_menu_item_icon(3alleg5)

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

✨ 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