d_check_proc(3)

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

πŸ’– d_check_proc(3) πŸ’–

okay bestie, welcome to the Allegro manual ✨ this one lives in the Allegro game programming library and it's literally the blueprint for making a check box. no cap.


✨ NAME ✨

d_check_proc β€” a dialog procedure that implements a check box object. it's giving Allegro game programming library πŸŽ€


🌸 SYNOPSIS 🌸

#include <allegro.h>

int d_check_proc(int msg, DIALOG *d, int c);

πŸ¦‹ DESCRIPTION πŸ¦‹

so this one is the example of how you can derive objects from other objects β€” like, object inheritance but make it dialog. πŸ‘‘

most of the actual functionality? yeah, that's all coming from d_button_proc(). she's the backbone, fr fr. but d_check_proc shows herself as a check box instead, and that's the whole glow-up. πŸ’…

here's the tea on the d1 field:

  • if d1 is non-zero, the text gets printed to the right of the check βœ…
  • otherwise, it goes on the left ⬅️
⚠️ note bestie: the object width should allow space for the text as well as the check box. and the check box? it's square, with sides equal to the object height. so do the math, don't skimp on the width or you're gonna have a bad time 😭

πŸ”₯ SEE ALSO πŸ”₯


that's the whole page, periodt. πŸ’œ this was brought to you by Allegro, version 4.4.3, and honestly? she ate. go build something cute with your check boxes 🫢✨🌸

πŸ“¦ where this page comes from