al_set_display_icons(3alleg5)
π al_set_display_icons β Allegro 5 API π
okay bestie, so you're in the 3alleg5 manual, which is literally the Allegro reference manual, and today's main character is al_set_display_icons. it's giving "let me pick the lil pictures that show up for my window" energy. let's go π¦
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
void al_set_display_icons(ALLEGRO_DISPLAY *display,
int num_icons, ALLEGRO_BITMAP *icons[])
πΈ DESCRIPTION πΈ
so this one changes the icons that are associated with your display (aka your window). and not just one icon, bestie β you can hand it multiple icons and they get used in different contexts, like the window frame, the taskbar, the alt-tab popupβ¦ all the places your lil window face shows up. π
the number of icons must be at least one. no icons at all? not a vibe. that's a no. π
Note: if the underlying OS needs an icon of a size you did not provide, then one of your bitmaps gets scaled up or down to the required size. and which bitmap it picks? implementation dependent, babes. the OS chooses, not you. π
β SINCE β
5.0.9, 5.1.5
like, this has been around since 5.0.9 and 5.1.5. vintage but iconic. π
π«Ά SEE ALSO π«Ά
al_set_display_icon(3alleg5)β the singular version, one icon only, the lil siblingal_set_window_title(3alleg5)β for naming your window too, because branding is everything π
that's the whole page fr fr, no cap. this came to you from the Allegro reference manual, page al_set_display_icons(3alleg5) β go forth and give your window a face, 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