al_get_menu_item_icon(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

πŸ’… 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 πŸ‘‘


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