TICKIT_WINDOW_IS_FOCUSED(3)
β¨ TICKIT_WINDOW_IS_FOCUSED(3) β¨
okay bestie, welcome to the Library Functions Manual π this is the one about who gets to be the main character of the keyboard, aka input focus. two functions, one whole vibe. let's go π¦
πΈ NAME πΈ
tickit_window_take_focus, tickit_window_is_focused β control the input focus
π SYNOPSIS π
#include <tickit.h>
void tickit_window_take_focus(TickitWindow *win);
bool tickit_window_is_focused(const TickitWindow *win);
Link with -ltickit.
π DESCRIPTION π
tickit_window_take_focus()
okay so this one requests that the given window take the input focus. and when I say requests I mean it climbs β it causes respectively the parent to take focus, recursively all the way up to the root. the way that works?? iconic. π
then, once all that drama is done, the terminal cursor takes on the properties defined by the given window. and a TICKIT_EV_FOCUS event gets delivered to the previous owner of the focus and to the given window β yes, both, they both get the notification, no one gets left on read. π¬
tickit_window_is_focused()
returns true if the given window currently has the input focus. that's it, that's the whole function. simple. elegant. slay. β¨
π₯ RETURN VALUE π₯
tickit_window_take_focus()returns no value β it's giving void, it's giving no thoughts head empty, it just does the thing πtickit_window_is_focused()returns a boolean π«Ά
π SEE ALSO π
tickit_window_new(3)tickit_window_set_cursor_position(3)tickit_window_set_focus_child_notify(3)tickit_window_bind_event(3)tickit_window(7)tickit(7)
fr fr that's the whole page, no notes, read the SEE ALSOs if you want the full lore iykyk π
mwah π this came to you straight out of the Library Functions Manual, and the footer says TICKIT_WINDOW_TAKE_FOCUS(3) β yeah the footer and the header are doing a little bit of a mismatched-couple thing, we don't talk about it π β anyway go forth and focus, bestie. you got this. π§ββοΈβ
π¦ 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