TICKIT_PENATTR_NAME(3)

πŸ’– NAME πŸ’–

okay so bestie, this page is all about tickit_penattr_name β€” it hands you back the name of a pen attribute. that's it. that's the whole job. iconic honestly.


✨ SYNOPSIS ✨

#include <tickit.h>

const char * tickit_penattr_name(TickitPenAttr attr);
TickitPenAttr tickit_penattr_lookup(const char * name);

and like, don't forget β€” you gotta link with -ltickit. no cap. 🫢


🌸 DESCRIPTION 🌸

so tickit_penattr_name() gives you the name of whatever pen attribute you pass it. and the names? they're the lowercase strings that show up in tickit_pen(7). lowercase is the vibe, periodt.

then there's tickit_penattr_lookup(), which is the glow-up in reverse β€” you give it a name, and it gives you back the attribute constant for it. πŸ¦‹

⚠️ but listen β€” if the name isn't recognised, you get -1 back. not a match, not a constant, just -1. it's giving "sorry bestie, never heard of her" 😭

πŸŽ€ RETURN VALUE πŸŽ€

  • tickit_penattr_name() returns a constant string pointer. πŸ’«
  • tickit_penattr_lookup() returns an attribute constant β€” or -1 if it doesn't know that name.

πŸ‘‘ SEE ALSO πŸ‘‘


okay that's the whole page, you ate that fr fr πŸ’… this little manual came from the Library Functions Manual and it's filed under TICKIT_PENATTR_NAME(3) β€” mwah, go read the other ones, ily, bye πŸŽ€βœ¨πŸ’–