TICKIT_WINDOW_NEW_ROOT(3)
π TICKIT_WINDOW_NEW_ROOT(3) π
okay bestie, welcome to the TICKIT_WINDOW_NEW_ROOT page of the Library Functions Manual β¨ this one's short but it's important, and also it's kinda deprecated so listen up π«Ά
πΈ NAME πΈ
tickit_window_new_root β create a new toplevel root window π
β¨ SYNOPSIS β¨
#include <tickit.h>
TickitWindow *tickit_window_new_root(TickitTerm *term);
Link with -ltickit.
π DEPRECATED π
no cap, this function is deprecated and should not be used in new programs. like, at all. it's giving legacy π
Instead, bestie, you get the root window from the toplevel Tickit instance by calling tickit_get_rootwin(3). that's the move. that's the vibe. periodt.
π¦ DESCRIPTION π¦
tickit_window_new_root() creates a brand new toplevel TickitWindow instance, and its whole job is to represent the drawing area on the given terminal instance. the terminal instance is stored by the window itself, and it's used for flushing the TickitRenderBuffer to when expose events occur. also β and this is the real tea β the root window will increase the reference count of its backing terminal by one, and that reference gets dropped when the window is destroyed. refcount go up, refcount go down ππ
The root window behaves similar to other windows within the application, with the following differences:
- Its position remains fixed at zero, and should not be set by the application. like, don't touch it, it's not yours π
- Its size is managed automatically by observing resize events from the underlying terminal instance, and should not be set by the application. she manages herself, honestly iconic β¨
- It is initially fully-damaged after construction, and will have a pending expose event waiting to occur. it's literally already in its expose era before you even do anything π
π RETURN VALUE π
If successful, tickit_window_new_root() returns a pointer to the new instance. that's it. that's the whole return value. slay π«Ά
π SEE ALSO π
tickit_window_new(3)tickit_window_get_term(3)tickit_window_bind_event(3)tickit_window_expose(3)tickit_window(7)tickit(7)
and that's the whole page, bestie π it's from the Library Functions Manual, the footer just echoes TICKIT_WINDOW_NEW_ROOT(3) right back at you like a mirror selfie, and yeah β go use tickit_get_rootwin(3) instead, iykyk π§β¨
π¦ 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