d_check_proc(3alleg4)

d_check_proc 🎀✨

okay so bestie, welcome to the Allegro manual page for d_check_proc — yes, the manual name is Allegro, and this function is giving “dialog procedure implementing a check box object” for the Allegro game programming library. No cap. 💖


✨ NAME ✨

d_check_proc — dialog procedure implementing a check box object. Allegro game programming library.


✨ SYNOPSIS ✨

#include <allegro.h>

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

✨ DESCRIPTION ✨

This is, like, the blueprint for deriving objects from other objects — main character energy fr fr. Most of the actual functionality comes straight from d_button_proc(), but this one shows up dressed as a check box. 💅

If the d1 field is non-zero, the text gets printed to the right of the check. Otherwise? It goes on the left. Periodt.

Note: the object width should allow space for the text as well as the check box — and that check box is square, with sides equal to the object height. Don’t skimp on the width, bestie, or it’s gonna look a mess. 😭

✨ SEE ALSO ✨


footer vibes: this page is from Allegro, version 4.4.3, and it’s signed d_check_proc(3alleg4). That’s the source/version situation at the very end — and the footer isn’t giving a separate date, so I’m not manifesting one. Mwah 💋🫶