d_icon_proc(3alleg4)
πΈ NAME πΈ
okay so bestie, welcome to the d_icon_proc page from the Allegro manual π. This is d_icon_proc(3alleg4), and it's literally the dialog procedure that implements a bitmap button. Allegro game programming library, no cap. π
β¨ SYNOPSIS β¨
Like, here's the exact summoning incantation:
#include <allegro.h>
int d_icon_proc(int msg, DIALOG *d, int c);
π DESCRIPTION π
It's giving bitmap button energy π. So here's the tea:
- The
fgcolor is what draws the dotted line that shows focus. β¨ - The
bgcolor is for the shadow that fills in the top and left sides of the button when it's "pressed". π d1is the "push depth" β i.e. the number of pixels the icon gets shifted to the right and down when selected (default2) if there is no "selected" image. π«Άd2is the distance by which the dotted line showing focus is indented (default2). πΈdppoints to a bitmap for the icon. π¦dp2anddp3are the selected and disabled images respectively β optional, may beNULL. π
π¦ SEE ALSO π¦
exgui(3alleg4)β go check that one out too, bestie π
This page is from Allegro version 4.4.3, mwah π. Stay iconic, periodt. π
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms