d_check_proc(3)
π 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
d1is 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
- 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