TICKIT_WINDOWCTL_NAME(3)
π TICKIT_WINDOWCTL_NAME β bestie, it's the name of a window control π
okay so this is tickit_windowctl_name(3) from the Library Functions Manual, and it's literally about naming window controls. that's the whole vibe. let's go π¦
β¨ NAME β¨
tickit_windowctl_name β returns the name of a window control. that's it, that's the function, she's simple and she slays π
β¨ SYNOPSIS β¨
#include <tickit.h>
const char * tickit_windowctl_name(TickitWindowCtl ctl);
TickitWindowCtl tickit_windowctl_lookup(const char * name);
TickitType tickit_windowctl_type(TickitWindowCtl ctl);
Link with -ltickit.
note the Link with -ltickit. β yes queen, you gotta link the library, do not forget her, she will not compile without you π
β¨ DESCRIPTION β¨
so like, three functions, three little besties, all working together:
πΈ tickit_windowctl_name()
returns the name of the given window control. these names are the lowercase strings that live over in tickit_window(7) β lowercase, always, no cap.
πΈ tickit_windowctl_lookup()
gives you back the control constant for a given name. and if the name is not recognised? yeah she returns -1. rude but fair. π
πΈ tickit_windowctl_type()
returns the type of the given window control, and it's one of these two constants bestie:
TICKIT_TYPE_BOOLβ the value is an integer representing a simple boolean choice, where any nonzero value is true. usetickit_window_setctl_int(3)andtickit_window_getctl_int(3). yes, both. they're a package deal π«ΆTICKIT_TYPE_INTβ the value is an integer representing a quantity, or a value in some particular enumeration. usetickit_window_setctl_int(3)andtickit_window_getctl_int(3)β same duo, iconic behavior π
and for unrecognised control types, the function returns0. not-1, not an error code, just a humble little0. periodt.
β¨ RETURN VALUE β¨
tickit_windowctl_name()returns a constant string pointer. β¨tickit_windowctl_lookup()returns a control constant or-1.tickit_windowctl_type()returns a control type constant or0.
like a little return-value menu. pick your fighter π
β¨ SEE ALSO β¨
go read those next bestie, iykyk π
and that's the whole page!! this was TICKIT_WINDOWCTL_NAME(3) from the Library Functions Manual, dated and versioned right there in the footer alongside the page title β mwah, tysm for reading, you ate πππ§β
π¦ where this page comes from
- alpine 3.24: libtickit-doc 0.4.6-r0 Β· MIT
- debian bookworm: libtickit-dev 0.4.3-1 Β· MIT
- debian trixie: libtickit-dev 0.4.3-2 Β· MIT
- fedora 43: libtickit-devel 0.4.5-2.fc43 Β· MIT
- fedora 43: libtickit-devel 0.4.5-2.fc43 Β· MIT
- fedora 44: libtickit-devel 0.4.5-3.fc44 Β· MIT
- fedora 44: libtickit-devel 0.4.5-3.fc44 Β· MIT
- nixos 26.05: libtickit 0.4.5
- nixpkgs unstable: libtickit 0.4.6
- ubuntu noble: libtickit-dev 0.4.3-1.1build1 Β· MIT
- ubuntu questing: libtickit-dev 0.4.3-2
- ubuntu resolute: libtickit-dev 0.4.3-2build1 Β· MIT
- ubuntu stonking: libtickit-dev 0.4.3-2build1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms