TICKIT_CTL_NAME(3)
β¨ NAME β¨
okay so bestie, this is tickit_ctl_name β she returns the name of a toplevel instance control π
πΈ SYNOPSIS πΈ
#include <tickit.h>
const char * tickit_ctl_name(TickitCtl ctl);
TickitCtl tickit_ctl_lookup(const char * name);
TickitType tickit_ctl_type(TickitCtl ctl);
and like, you gotta link with -ltickit, no skipping that step fr fr π«Ά
π DESCRIPTION π
tickit_ctl_name() hands you back the name of the given toplevel instance control. These names are literally the lowercase strings that are given over in tickit(7) β same energy, same spelling, no cap β¨
tickit_ctl_lookup() is the reverse vibe: you give her a name, she gives you the control constant for it. But if the name is not recognised, she returns -1. not a fun surprise but there it is π
tickit_ctl_type() tells you the type of the given instance control, as one of these iconic constants π
TICKIT_TYPE_BOOLβ the value is an integer representing a simple boolean choice, where any nonzero value is true. Usetickit_setctl_int(3)andtickit_getctl_int(3). yes bestie, "any nonzero" β-7is true, that's just how she is πTICKIT_TYPE_INTβ the value is an integer representing a quantity, or a value in some particular enumeration. Usetickit_setctl_int(3)andtickit_getctl_int(3).
and for unrecognised control types? the function returns 0. that's the whole story π
π¦ RETURN VALUE π¦
tickit_ctl_name()returns a constant string pointer β¨tickit_ctl_lookup()returns a control constant or-1tickit_ctl_type()returns a control type constant or0
π SEE ALSO π
tickit(7) β go read her, she's the main character π
okay that's the whole page, thanks for coming to my ted talk π§ this one lives in the Library Functions Manual under the name TICKIT_CTL_NAME(3) β slay, periodt, go forth and look up your controls π
π₯
π¦ 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