adime_callback(3)
π adime_callback(3) β the Adime API Reference, bestie edition π
okay so real talk, this one lives in the Adime manual (section 3, the library-functions girlies), and it's literally the tiniest page ever but it's SO useful. it's called adime_callback. yes, same name as the page. we love a self-titled icon. π
β¨ SYNOPSIS β¨
#include <adime.h>
void (*adime_callback)(DIALOG *d)
look at her. one header, one function pointer. minimalism. main character energy. π
π¦ DESCRIPTION π¦
so adime_callback is a function pointer, right? and the whole vibe is: if you set it to literally anything that isn't NULL, then that function of yours gets called continuously β like, non-stop, over and over β for as long as an Adime dialog is open. not once. not on open. continuously. the way that it just keeps going?? π obsessed.
and the argument, d, it's not random, it points to the first object of the current Adime dialog. or β plot twist β the first object of Allegro's file selector when that one's open. so yeah, same pointer, two possible situations, iykyk. π«Ά
want to see it in action before you commit? go look at adime/examples/exanim.c β that's the example that shows you how to use this thing to do animation while a dialog is open. yes bestie, moving pictures on top of a dialog. iconic behavior. π₯
fr fr though: only set this if you actually want it firing constantly. the word is continuously. it means continuously. π
πΈ SEE ALSO πΈ
adime_dialogf(3)β the sibling, go say hi π
and that's the whole page, no cap β short, sweet, and fully functional. π
mwah π this was Adime, version 2.2.1, brought to you by the adime_callback(3) girlies β stay hydrated, read your manpages, and don't forget to set your callback to NULL when you're done. 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