al_clipboard_has_text(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

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

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