TICKIT_PEN_HAS_ATTR(3)

πŸ’– tickit_pen_has_attr(3) β€” bestie edition πŸ’–

okay so this is a page from the Library Functions Manual for the tickit library, and it's about peeking at a pen and asking "hey girl, do you have this attribute set?" πŸŽ€


✨ NAME ✨

tickit_pen_has_attr β€” the lil function that tests if a pen has a given attribute πŸ‘‘


🌸 SYNOPSIS 🌸

#include <tickit.h>

bool tickit_pen_has_attr(TickitPen *pen, TickitPenAttr attr);
bool tickit_pen_nondefault_attr(TickitPen *pen, TickitPenAttr attr);

and bestie, you gotta link it with -ltickit or it literally won't work πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

tickit_pen_has_attr() checks whether a pen instance has a given attribute defined on it. It hands you back true if the matching tickit_pen_set_*_attr() function got called since the pen was constructed β€” or since the last time it was cleared. And yes, that's still true even if the attribute was set to its default value. it's giving "the vibes were set, bestie, even if they're the default vibes" ✨

tickit_pen_nondefault_attr() checks whether a pen instance has a given attribute defined with a non-default value. It returns true if the attribute is set to something that isn't the default, and false if the attribute is just plain absent, or set to the default value for that attribute type. no cap 🌈


🫢 RETURN VALUE 🫢

Both tickit_pen_has_attr() and tickit_pen_nondefault_attr() return a boolean. that's it, that's the tea β˜• (true or false, main character energy either way) πŸ’–


πŸ’œ SEE ALSO πŸ’œ


and that's the whole page, bestie!! 🧚 this was TICKIT_PEN_HAS_ATTR(3) from the Library Functions Manual, brought to you by the tickit girlies β€” mwah, ily, go set some attributes πŸ’…πŸ’–πŸŒΈ