TICKIT_WINDOW_GETCTL_INT(3)

πŸ’– TICKIT_WINDOW_SETCTL_INT πŸ’–

okay bestie, welcome to the TICKIT_WINDOW_SETCTL_INT(3) page β€” that's the one from the Library Functions Manual btw, iykyk ✨ yes the title is a whole little plot twist because this page is actually about getting and setting integer window controls, but that's the name it's filed under, so we roll with it πŸ’…


🌸 NAME 🌸

tickit_window_setctl_int β€” set an integer window control πŸŽ€


✨ SYNOPSIS ✨

#include <tickit.h>

bool tickit_window_getctl_int(TickitWindow *tt, TickitWindowCtl ctl, int *value);
bool tickit_window_setctl_int(TickitWindow *tt, TickitWindowCtl ctl, int value);

Link with -ltickit.

two functions, one header, one library, zero drama πŸ¦‹


🫢 DESCRIPTION 🫢

tickit_window_setctl_int() does a window control operation β€” it sets the value of a numeric window control option. no cap, that's literally its whole job.

tickit_window_getctl_int() is its lil sibling and it obtains the value of a window control setting. get it? one sets, one gets. iconic duo behaviour fr fr πŸ’–

and for the full list of possible TickitWindowCtl values and what they all mean?? go read tickit_window(7) β€” that's where the lore lives πŸ‘‘


πŸ’€ RETURN VALUE πŸ’€

tickit_window_getctl_int() returns a true value if it recognised the requested control and managed to return the current value of it; false if not 😭

tickit_window_setctl_int() returns a true value if it recognised the requested control and managed to request the window to change it; false if not.

so like... if it comes back false, the function did NOT know that control. it's not being shady, it just doesn't recognise it πŸ™ˆ read the return value, bestie, it's telling you something.

πŸ”₯ SEE ALSO πŸ”₯


and that's the whole page, you ate it, you understood it, main character energy only 🌈 this one's from the Library Functions Manual, filed under TICKIT_WINDOW_SETCTL_INT(3), and it says goodbye with that same title one more time at the bottom like a lil signature πŸ’œ mwah, go set some integer controls πŸ“πŸ§š