TICKIT_WINDOW_CTLNAME(3)

πŸ“¦ version 0.4.1, in ubuntu jammy

πŸ’– TICKIT_WINDOW_CTLNAME πŸ’–

okay bestie, you found the tickit_window_ctlname(3) page, from the Library Functions Manual ✨ β€” it's literally the little lookup desk for window controls. names in, names out, types decoded. no cap.


🌸 NAME 🌸

tickit_window_ctlname β€” return the name of a window control πŸŽ€


✨ SYNOPSIS ✨

#include <tickit.h>

const char * tickit_window_ctlname(TickitWindowCtl ctl);
TickitWindowCtl tickit_window_lookup_ctl(const char * name);

TickitType tickit_window_ctltype(TickitWindowCtl ctl);

Link with -ltickit.

🫢 yes you have to actually link -ltickit, it's giving "the library does not link itself", periodt.

πŸ’… DESCRIPTION πŸ’…

tickit_window_ctlname() hands you back the name of the window control you pass in. and like… these names are exactly the lowercase strings listed over in tickit_window(7). lowercase. iconic behaviour honestly 🌈

tickit_window_lookup_ctl() goes the other way β€” you give it a name, it gives you the control constant. but if the name is not recognised? -1 comes back at you. it's giving "unknown, bestie" πŸ’€

tickit_window_ctltype() tells you the type of a given window control, as one of these constants:

and for unrecognised control types? the function returns 0. that's the vibe check failing, lowkey πŸ™ˆ


⭐ RETURN VALUE ⭐

  • tickit_window_ctlname() returns a constant string pointer.
  • tickit_window_lookup_ctl() returns a control constant or -1.
  • tickit_window_ctltype() returns a control type constant or 0.

πŸ¦‹ SEE ALSO πŸ¦‹

tickit_window(7), tickit(7)


and that's the whole page, main character energy from start to finish πŸ’œ go forth and look up your controls, bestie. this was TICKIT_WINDOW_CTLNAME(3) from the Library Functions Manual β€” mwah, slay, bye πŸŽ€βœ¨

πŸ“¦ where this page comes from