TICKIT_PEN_GET_BOOL_ATTR(3)

πŸ’… TICKIT_PEN_GET_BOOL_ATTR(3) πŸ’…

okay bestie, so this one lives in the Library Functions Manual and it's literally just about flipping boolean switches on a pen. yes, a pen. no, not the glitter gel kind (sadly). it's the terminal-attribute kind. let's get into it πŸ–ŠοΈβœ¨


🌸 NAME 🌸

tickit_pen_get_bool_attr, tickit_pen_set_bool_attr β€” manipulate a boolean pen attribute

like, one of them reads the vibe, one of them sets the vibe. that's the whole plot πŸŽ€


✨ SYNOPSIS ✨

#include <tickit.h>

bool tickit_pen_get_bool_attr(TickitPen *pen, TickitPenAttr attr);
void tickit_pen_set_bool_attr(TickitPen *pen, TickitPenAttr attr, bool val);

Link with -ltickit.

not me showing up with two whole functions and a linker flag. it's giving "prepared." πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

tickit_pen_get_bool_attr() hands you back the current value of the boolean attribute you asked for on the pen. and if that attribute isn't defined at all? you get false. that's it. no drama, no surprises, just false. πŸ™ˆ

tickit_pen_set_bool_attr() gives that boolean attribute on the pen a brand new value. and here's the part you can't skip: it will invoke the TICKIT_EV_CHANGE event on the pen instance. like, it's gonna announce itself. main character energy fr fr. πŸ‘‘


πŸ’– RETURN VALUE πŸ’–

  • tickit_pen_get_bool_attr() returns a boolean. (a whole bool, bestie.)
  • tickit_pen_set_bool_attr() returns no value. it's a void. it gives nothing back and honestly? iconic of it. 🫢

🌈 SEE ALSO 🌈

go read these next, i'm obsessed with them:


and that's the whole page, bestie πŸ“ tysm for reading the TICKIT_PEN_GET_BOOL_ATTR(3) entry from the Library Functions Manual β€” no date or version info on this one, so just take this little sign-off as the footer, mwah πŸ’œπŸ§šβ­