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 fg color is what draws the dotted line that shows focus. ✨
  • The bg color is for the shadow that fills in the top and left sides of the button when it's "pressed". πŸ’…
  • d1 is the "push depth" β€” i.e. the number of pixels the icon gets shifted to the right and down when selected (default 2) if there is no "selected" image. 🫢
  • d2 is the distance by which the dotted line showing focus is indented (default 2). 🌸
  • dp points to a bitmap for the icon. πŸ¦‹
  • dp2 and dp3 are the selected and disabled images respectively β€” optional, may be NULL. 😭

πŸ¦‹ SEE ALSO πŸ¦‹


This page is from Allegro version 4.4.3, mwah πŸ’‹. Stay iconic, periodt. πŸ‘‘