DOKK / manpages / debian 12 / libtickit-dev / tickit_penattr_lookup.3.en
TICKIT_PENATTR_NAME(3) Library Functions Manual TICKIT_PENATTR_NAME(3)

tickit_penattr_name - return the name of a pen attribute

#include <tickit.h>

const char * tickit_penattr_name(TickitPenAttr attr);
TickitPenAttr tickit_penattr_lookup(const char * name);

Link with -ltickit.

tickit_penattr_name() returns the name of the given pen attribute. These names are the lowercase strings given in tickit_pen(7).

tickit_penattr_lookup() returns the attribute constant for a given name. If the name is not recognised then -1 is returned.

tickit_penattr_name() returns a constant string pointer. tickit_penattr_lookup() returns an attribute constant or -1.

tickit_pen(7), tickit(7)