tickit_pen_copy3
Copy attributes from one pen to another
Usage
#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.
Overview
tickit_pen_copy() copies attributes that are defined on src into dst. If an attribute is already defined on dst then it will only be changed if overwrite is true; otherwise the existing value will be left alone. It will invoke the TICKIT_EV_CHANGE event on the dst pen instance if the value of at least one attribute has actually changed.
tickit_pen_copy_attr() copies the value of a single attribute from src into dst, or clears it in dst if it is not present in src. It will invoke the TICKIT_EV_CHANGE event on the dst pen instance.
Return value
tickit_pen_copy() and tickit_pen_copy_attr() return no value.
Releases
Unchanged in 4 releases since Debian 10 (Buster).