TICKIT_PENATTR_TYPE(3)

πŸ’– TICKIT_PENATTR_TYPE(3) πŸ’–

okay bestie, so this is a page from the Library Functions Manual about a lil function called tickit_penattr_type, and honestly? she's a short queen but she delivers. let's get into it 🫢


✨ NAME ✨

tickit_penattr_type β€” return the type of a pen attribute πŸ‘‘


🌸 SYNOPSIS 🌸

#include <tickit.h>

TickitPenAttrType tickit_penattr_type(TickitPenAttr attr);

Link with -ltickit.


πŸ¦‹ DESCRIPTION πŸ¦‹

so tickit_penattr_type() looks at whatever pen attribute you hand it and tells you what type that thing is. like a vibe check but for attributes, no cap.

the answer comes back as exactly one of these three constants:

  • TICKIT_PENTYPE_BOOL β€” the yes/no girly πŸ’…
  • TICKIT_PENTYPE_INT β€” the number one πŸ”’
  • TICKIT_PENTYPE_COLOUR β€” the pretty one 🌈

three options, that's it, that's the whole menu. iconic.


⭐ RETURN VALUE ⭐

tickit_penattr_type() returns a pen attribute type value. that's the whole tea β€” she hands you back a type, you go live your life πŸ’–


πŸŽ€ SEE ALSO πŸŽ€


and that's the page, bestie!! this one came to you straight from the Library Functions Manual, filed under TICKIT_PENATTR_TYPE(3) β€” go forth and type-check ur pen attributes, mwah πŸ’œπŸ§šβœ¨