1TICKIT_PEN_HAS_ATTR(3) Library Functions Manual TICKIT_PEN_HAS_ATTR(3)
2
3
4
6 tickit_pen_has_attr - test if a pen has a given attribute
7
9 #include <tickit.h>
10
11 bool tickit_pen_has_attr(TickitPen *pen, TickitPenAttr attr);
12 bool tickit_pen_nondefault_attr(TickitPen *pen, TickitPenAttr attr);
13
14 Link with -ltickit.
15
17 tickit_pen_has_attr() tests whether a pen instance has a given
18 attribute defined on it. It returns true if the corresponding
19 tickit_pen_set_*_attr() function has been called since construction, or
20 the last time it was cleared. This is true even if the attribute has
21 been set to its default value.
22
23 tickit_pen_nondefault_attr() tests whether a pen instance has a given
24 attribute defined with a non-default value. It returns true if the
25 attribute is set to a value that is not the default, or false if the
26 attribute is absent, or set to the default value for that attribute
27 type.
28
30 tickit_pen_has_attr() and tickit_pen_nondefault_attr() return a bool‐
31 ean.
32
34 tickit_pen_new(3), tickit_pen_set_bool_attr(3),
35 tickit_pen_set_int_attr(3), tickit_pen_set_colour_attr(3),
36 tickit_pen_clear_attr(3), tickit_pen(7), tickit(7)
37
38
39
40 TICKIT_PEN_HAS_ATTR(3)