al_get_menu_item_icon(3)
π al_get_menu_item_icon(3) π
okay bestie, welcome to the Library Functions Manual side of the group chat π this page is all about the Allegro 5 API and itβs lowkey a cute little getter.
πΈ NAME πΈ
al_get_menu_item_icon β Allegro 5 API
β¨ SYNOPSIS β¨
#include <allegro5/allegro_native_dialog.h>
ALLEGRO_BITMAP *al_get_menu_item_icon(ALLEGRO_MENU *menu, int pos)
π¦ DESCRIPTION π¦
okay so picture this: you call al_get_menu_item_icon and it returns the icon associated with the menu. Thatβs the vibe. It gives you back an ALLEGRO_BITMAP * icon situation.
ngl, it is safe to draw to the returned bitmap β go off, doodle on it, main character energy β but you must call al_set_menu_item_icon(3) in order for the changes to be applied. no cap, if you skip that step your changes are just sitting there unapplied. π
and if the item was not found, or if it has no icon? it returns NULL. thatβs the whole βnot found / no iconβ moment, periodt. π
β SINCE β
5.1.0 β this one has been serving since 5.1.0 β¨
π SEE ALSO π
al_set_menu_item_icon(3)β the setter bestie you need when you want your icon edits to actually apply π«Ά
mwah π sign-off time: source/version is the Allegro reference manual, and the footer date is not listed at all, so weβre just gonna have to live with that mystery. bye bestie, go get those icons. π
π¦ 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