TICKIT_BUILD(3)
π TICKIT_BUILD(3) β bestie edition π
Library Functions Manual β¨ so this is a section 3 page, meaning it's a library function, and it lives in the tickit house. Come sit with me, we're building a whole toplevel Tickit instance together and it's gonna slay.
πΈ NAME πΈ
tickit_build β create a new toplevel Tickit instance with arguments π«Ά
β¨ SYNOPSIS β¨
#include <tickit.h>
struct TickitBuilder {
TickitTerm *tt;
struct TickitTermBuilder term_builder;
...
};
Tickit *tickit_build(const struct TickitBuilder *builder);
Link with -ltickit.
ok so real talk: that ... in the struct is NOT decoration, we'll get to it in a sec. π«£
π¦ DESCRIPTION π¦
So tickit_build() makes you a brand new toplevel Tickit instance, and it sets that baby up using all the various parameters you handed over in the builder struct. That's the whole vibe. π
Heads up bestie: the struct definition printed up there is incomplete. The actual, real-life struct definition has more fields than what's shown, because some of them are strictly for internal purposes. So likeβ¦ mind your business on those ones, okay? π User code should only attempt to interact with the fields that are documented here. That's the rule and we respect it.
Now, about tt:
- If the
ttfield is set, it should contain aTickitTerminstance. You brought your own terminal, iconic. π - If you leave it blank, then one will be constructed for you β by passing the nested
term_builderstructure on over totickit_term_build(3). The term gets built, the vibes get immaculate, everyone wins. β¨
π RETURN VALUE π
- If it works?
tickit_build()returns a pointer to the new instance. New instance, who dis. π₯ - If it fails?
NULLcomes back, anderrnois set to indicate the failure. So like, please check it. Don't be out here dereferencingNULLand acting surprised, I'm begging. π
π SEE ALSO π
and that's the page!! tysm for reading, you're doing amazing sweetie π This was TICKIT_BUILD(3) signing off β same name up top, same name at the bottom, bookends fr fr. π¦πΈπ
π¦ 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 jammy: libtickit-dev 0.4.1-1 Β· MIT
- 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