adime_d_edit_proc(3)
β¨ adime_d_edit_proc β¨
okay bestie, welcome to the Adime API Reference π this one is adime_d_edit_proc, living in section 3 of the manual, and it's literally the glow-up edition of an Allegro classic. let's get into it π«Ά
πΈ SYNOPSIS πΈ
#include <adime.h>
int adime_d_edit_proc(int msg, DIALOG *d, int c)
π DESCRIPTION π
so adime_d_edit_proc() is exactly like Allegro's d_edit_proc(), bestie β same energy, same job β except it comes with that 3d-ish style. it's giving depth. it's giving dimension. β¨
β οΈ real talk though: that 3d border is three pixels wide, so you have to add those pixels to the size of the edit box. do not forget. i'm serious. your box will be cramped and sad and you will be sad too. π
and then there's the extra feature, which is the part where it gets iconic π
- the
d->d1field, if positive, is the maximal number of characters β just like withd_edit_proc(). same as always, no notes. π - but you may also set it to be negative π³ and in that case, once you remove the sign, it means the maximal number of bytes occupied by the string, including the trailing zero.
and yes, that byte count may be different from the number of characters when you use Unicode β so keep that in mind, iykyk π
π¦ tl;dr: 3d border, plus three pixels of width, plus a signed d->d1 that flips between counting characters and counting bytes. she contains multitudes.
that's the whole page, bestie β no cap, no filler, every single flag and field accounted for π
written for Adime, version 2.2.1 π and filed away under adime_d_edit_proc(3) β slay, mwah, periodt π
π
π¦ where this page comes from
- fedora 43: adime-devel 2.2.1-42.fc43 Β· zlib
- fedora 43: adime-devel 2.2.1-42.fc43 Β· zlib
- fedora 44: adime-devel 2.2.1-44.fc44 Β· zlib
- fedora 44: adime-devel 2.2.1-44.fc44 Β· zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms