TICKIT_PEN_GET_BOOL_ATTR(3)
π TICKIT_PEN_GET_BOOL_ATTR(3) π
okay bestie, so this one lives in the Library Functions Manual and it's literally just about flipping boolean switches on a pen. yes, a pen. no, not the glitter gel kind (sadly). it's the terminal-attribute kind. let's get into it ποΈβ¨
πΈ NAME πΈ
tickit_pen_get_bool_attr, tickit_pen_set_bool_attr β manipulate a boolean pen attribute
like, one of them reads the vibe, one of them sets the vibe. that's the whole plot π
β¨ SYNOPSIS β¨
#include <tickit.h>
bool tickit_pen_get_bool_attr(TickitPen *pen, TickitPenAttr attr);
void tickit_pen_set_bool_attr(TickitPen *pen, TickitPenAttr attr, bool val);
Link with -ltickit.
not me showing up with two whole functions and a linker flag. it's giving "prepared." π
π¦ DESCRIPTION π¦
tickit_pen_get_bool_attr() hands you back the current value of the boolean attribute you asked for on the pen. and if that attribute isn't defined at all? you get false. that's it. no drama, no surprises, just false. π
tickit_pen_set_bool_attr() gives that boolean attribute on the pen a brand new value. and here's the part you can't skip: it will invoke the TICKIT_EV_CHANGE event on the pen instance. like, it's gonna announce itself. main character energy fr fr. π
π RETURN VALUE π
tickit_pen_get_bool_attr()returns a boolean. (a wholebool, bestie.)tickit_pen_set_bool_attr()returns no value. it's avoid. it gives nothing back and honestly? iconic of it. π«Ά
π SEE ALSO π
go read these next, i'm obsessed with them:
tickit_pen_new(3)tickit_pen_has_attr(3)tickit_pen_set_int_attr(3)tickit_pen_set_colour_attr(3)tickit_pen_clear_attr(3)tickit_pen(7)tickit(7)
and that's the whole page, bestie π tysm for reading the TICKIT_PEN_GET_BOOL_ATTR(3) entry from the Library Functions Manual β no date or version info on this one, so just take this little sign-off as the footer, mwah ππ§β
π¦ 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