al_clipboard_has_text(3alleg5)
π al_clipboard_has_text π
okay so bestie, we're in the allegro5 manual (that's the 3alleg5 corner of the internet, you're welcome) and today's main character is al_clipboard_has_text β the Allegro 5 API function that does exactly one tiny, iconic job. π
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
bool al_clipboard_has_text(ALLEGRO_DISPLAY *display)
like yes, that's the whole thing. no extra lore. it's giving minimalist queen. π
πΈ DESCRIPTION πΈ
So al_clipboard_has_text returns true if and only if the clipboard has text available. That's it, that's the vibe check. π¦
fr fr β "if and only if" is doing a LOT of work in that sentence. It's not "usually" and it's not "sometimes". True when there's text, not true when there isn't. Periodt. π
β SINCE β
5.1.12 β so if you're on something older than that, bestie, this function is literally not there and you're gonna have a bad time. π
π«Ά SEE ALSO π«Ά
al_set_clipboard_text(3alleg5)β the one that puts text ON the clipboard πal_get_clipboard_text(3alleg5)β the one that takes text OFF the clipboard β¨
go read those too, they're the rest of the clipboard trio and they ate. no cap.
and that's a wrap on this little legend of a function π§ β brought to you by the Allegro reference manual, which is also the name of this very page. mwah, love u, bye! πππΈ
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms