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 πŸ¦‹


k byeee, this was TICKIT_PEN_COPY(3) the whole time πŸ‘‘ go copy some pens and slay πŸ’œ