d_icon_proc(3)
π NAME π
okay so bestie, this is the d_icon_proc(3) page from the Allegro manual, and it's giving bitmap button main character energy. The function is a dialog procedure implementing a bitmap button, fr fr. Also: Allegro game programming library. That part is the library vibe, iykyk. π
β¨ SYNOPSIS β¨
#include <allegro.h>
int d_icon_proc(int msg, DIALOG *d, int c);
π DESCRIPTION π
A bitmap button. Not me being obsessed with how simple that sounds. The fg color is used for the dotted line showing focus, and the bg color is used for the shadow that fills in the top and left sides of the button when it's "pressed". Periodt.
d1β the "push depth", ie. the number of pixels the icon will be shifted to the right and down when selected (default2) if there is no "selected" image. So if you don't have a selected image, this is the little nudge, bestie.d2β the distance by which the dotted line showing focus is indented (default2). Focus line with a lil indent, iconic.dpβ points to a bitmap for the icon, whiledp2anddp3are the selected and disabled images respectively (optional, may beNULL). Sodpis the main icon,dp2is the selected one,dp3is the disabled one, and yes they can beNULL.
π¦ SEE ALSO π¦
mwah π okay that's the whole d_icon_proc tea from the Allegro manual, version 4.4.3. No date on the page, just pure icon-button energy β go slay, bestie. π«Άπ
π¦ where this page comes from
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms