d_icon_proc(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

πŸ’– 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 (default 2) 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 (default 2). Focus line with a lil indent, iconic.
  • dp β€” points to a bitmap for the icon, while dp2 and dp3 are the selected and disabled images respectively (optional, may be NULL). So dp is the main icon, dp2 is the selected one, dp3 is the disabled one, and yes they can be NULL.

πŸ¦‹ 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