TICKIT_PEN_GET_INT_ATTR(3)

πŸ’– TICKIT_PEN_GET_INT_ATTR(3) πŸ’–

okay bestie, welcome to the Library Functions Manual page for tickit_pen_get_int_attr β€” yes the whole name is long, we love a descriptive queen. this is the one that lets you peek at and poke at integer pen attributes. let's get into it πŸ’…


✨ NAME ✨

tickit_pen_get_int_attr, tickit_pen_set_int_attr β€” manipulate an integer pen attribute πŸŽ€


🌸 SYNOPSIS 🌸

#include <tickit.h>

int tickit_pen_get_int_attr(TickitPen *pen, TickitPenAttr attr);
void tickit_pen_set_int_attr(TickitPen *pen, TickitPenAttr attr, int val);

Link with -ltickit. πŸ”—


πŸ¦‹ DESCRIPTION πŸ¦‹

tickit_pen_get_int_attr() hands you back the current value of the given integer attribute on the pen β€” or 0 if that attribute is not defined. yes, that's the vibe: no attribute, no problem, you just get a zero. 😌

tickit_pen_set_int_attr() gives that integer attribute a brand new value on the pen. and the way it does this?? it invokes the TICKIT_EV_CHANGE event on the pen instance. the pen literally announces its own glow-up, we're obsessed. πŸ”₯


⭐ RETURN VALUE ⭐

  • tickit_pen_get_int_attr() returns an integer value. ✨
  • tickit_pen_set_int_attr() returns no value. (it's a void, it gives nothing and that's its whole brand, respect it 🫢)

🌈 SEE ALSO 🌈

go read those too, the whole friend group is iconic πŸ‘‘


friendly reminder bestie: the synopsis is shown verbatim up there β€” #include <tickit.h>, exact signatures, exact -ltickit β€” so don't go freestyling it. copy that energy, not your own edits. πŸ’€

and that's a wrap, angel πŸ’œ this was page TICKIT_PEN_GET_INT_ATTR(3) from the Library Functions Manual β€” same page name as the top, because symmetry ate. mwah, go write some slay terminal code πŸ’–βœ¨πŸŽ€