1TICKIT_WINDOWCTL_NAME(3) Library Functions Manual TICKIT_WINDOWCTL_NAME(3)
2
3
4
6 tickit_windowctl_name - return the name of a window control
7
9 #include <tickit.h>
10
11 const char * tickit_windowctl_name(TickitWindowCtl ctl);
12 TickitWindowCtl tickit_windowctl_lookup(const char * name);
13
14 TickitType tickit_windowctl_type(TickitWindowCtl ctl);
15
16 Link with -ltickit.
17
19 tickit_windowctl_name() returns the name of the given window control.
20 These names are the lowercase strings given in tickit_window(7).
21
22 tickit_windowctl_lookup() returns the control constant for a given
23 name. If the name is not recognised then -1 is returned.
24
25 tickit_windowctl_type() returns the type of the given window control,
26 as one of the following constants:
27
28 TICKIT_TYPE_BOOL
29 The value is an integer representing a simple boolean choice,
30 where any nonzero value is true. Use tickit_window_setctl_int(3)
31 and tickit_window_getctl_int(3).
32
33 TICKIT_TYPE_INT
34 The value is an integer representing a quantity, or a value in
35 some particular enumeration. Use tickit_window_setctl_int(3) and
36 tickit_window_getctl_int(3).
37
38 For unrecognised control types, the function returns 0.
39
41 tickit_windowctl_name() returns a constant string pointer. tickit_win‐
42 dowctl_lookup() returns an control constant or -1. tickit_win‐
43 dowctl_type() returns a control type constant or 0.
44
46 tickit_window(7), tickit(7)
47
48
49
50 TICKIT_WINDOWCTL_NAME(3)