TICKIT_PEN_COPY(3)
π TICKIT_PEN_COPY π
okay bestie, welcome to TICKIT_PEN_COPY(3), from the Library Functions Manual β¨ this one's a two-for-one deal, no cap.
π NAME π
tickit_pen_copy, tickit_pen_copy_attr β copy attributes from one pen to another π
β¨ SYNOPSIS β¨
#include <tickit.h>
void tickit_pen_copy(TickitPen *dst, TickitPen *src,
bool overwrite);
void tickit_pen_copy_attr(TickitPen *dst, TickitPen *src,
TickitPenAttr attr);
Link with -ltickit. π«Ά
πΈ DESCRIPTION πΈ
so. tickit_pen_copy() copies all the attributes that are defined on src into dst. it's giving "closet cleanout but make it pens" π§
but here's the tea β β if an attribute is already defined on dst, it only gets changed when overwrite is true. if overwrite is false, that existing value gets left tf alone. minding its own business. iconic behaviour honestly π
and bestie, it will invoke the TICKIT_EV_CHANGE event on the dst pen instance β but only if the value of at least one attribute has actually changed. no fake alarms, we don't do that here β¨
tickit_pen_copy_attr() is the single-serve version π it copies the value of one attribute from src into dst β or, plot twist, it clears it in dst if that attribute isn't present in src at all. and yeah, it will invoke the TICKIT_EV_CHANGE event on the dst pen instance. periodt. π
β RETURN VALUE β
ngl, tickit_pen_copy() and tickit_pen_copy_attr() return no value. void. nothing. empty-handed but thriving π
π¦ SEE ALSO π¦
tickit_pen_new(3)tickit_pen_set_bool_attr(3)tickit_pen_set_int_attr(3)tickit_pen_set_colour_attr(3)tickit_pen_clear(3)tickit_pen(7)tickit(7)
k byeee, this was TICKIT_PEN_COPY(3) the whole time π go copy some pens and slay π
π¦ 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