al_clipboard_has_text(3)
π al_clipboard_has_text(3) β Allegro 5 API π
okay bestie, this one's from the Allegro 5 API manual and it's honestly so simple it's giving "short king" energy. let's get into it β¨
πΈ SYNOPSIS πΈ
#include <allegro5/allegro.h>
bool al_clipboard_has_text(ALLEGRO_DISPLAY *display)
like, that's the whole thing. so clean. iconic. π«Ά
π DESCRIPTION π
so here's the tea β β this function returns true if and only if the clipboard has text available.
that's it. that's the whole vibe check. it's literally just a "hey is there text in there or not" detector, no cap. no guessing, no extra lore, the function tells you the truth and nothing but π
(note the "if and only if" bestie β that's a two-way street, they're not playing around with the wording there π)
β SINCE β
5.1.12 β so it's been around a hot minute, lowkey vintage π¦
π¦ SEE ALSO π¦
al_set_clipboard_text(3)β the one that actually puts text in there πal_get_clipboard_text(3)β the one that gets it back out π₯
π sign-off π
alright that's the whole page, bestie! this gem lives in the Allegro reference manual and the footer's dated just like that, so shoutout to the Allegro reference manual for keeping it cute and keeping it short πβ¨ go forth and check that clipboard! π
π¦ where this page comes from
- arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms