tickit_pen_is_nonempty(3)

tickit_pen_is_nonempty3

Test if a pen has attributes defined

Usage

#include <tickit.h>

bool tickit_pen_is_nonempty(TickitPen *pen);
bool tickit_pen_is_nondefault(TickitPen *pen);

Link with -ltickit.

Overview

tickit_pen_is_nonempty() tests whether a pen instance has any attribute defined on it. It returns true even if those attributes take default values.

tickit_pen_is_nondefault() tests whether a pen instance has any attribute with non-default values defined on it. It false if the pen has no defined attributes, or all of the defined attributes take only the default value for their type.

Return value

tickit_pen_is_nonempty() and tickit_pen_is_nondefault() return a boolean.

Releases

Unchanged in 4 releases since Debian 10 (Buster).

  1. 10–13

From libtickit-dev 0.4.3-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.