adime_callback(3)

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

πŸ’– 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 🌸


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