.TH TICKIT_CTL_NAME 3 .SH NAME tickit_ctl_name \- return the name of a toplevel instance control .SH SYNOPSIS .EX .B #include .sp .BI "const char * tickit_ctl_name(TickitCtl " ctl ); .BI "TickitCtl tickit_ctl_lookup(const char * " name ); .sp .BI "TickitType tickit_ctl_type(TickitCtl " ctl ); .EE .sp Link with \fI\-ltickit\fP. .SH DESCRIPTION \fBtickit_ctl_name\fP() returns the name of the given toplevel instance control. These names are the lowercase strings given in \fBtickit\fP(7). .PP \fBtickit_ctl_lookup\fP() returns the control constant for a given name. If the name is not recognised then -1 is returned. .PP \fBtickit_ctl_type\fP() returns the type of the given instance control, as one of the following constants: .in .TP .B TICKIT_TYPE_BOOL The value is an integer representing a simple boolean choice, where any nonzero value is true. Use \fBtickit_setctl_int\fP(3) and \fBtickit_getctl_int\fP(3). .TP .B TICKIT_TYPE_INT The value is an integer representing a quantity, or a value in some particular enumeration. Use \fBtickit_setctl_int\fP(3) and \fBtickit_getctl_int\fP(3). .PP For unrecognised control types, the function returns 0. .SH "RETURN VALUE" \fBtickit_ctl_name\fP() returns a constant string pointer. \fBtickit_ctl_lookup\fP() returns an control constant or -1. \fBtickit_ctl_type\fP() returns a control type constant or 0. .SH "SEE ALSO" .BR tickit (7)