1XkbGetNamedIndicator(3) XKB FUNCTIONS XkbGetNamedIndicator(3)
2
3
4
6 XkbGetNamedIndicator - Look up the indicator map and other information
7 for an indicator by name
8
10 Bool XkbGetNamedDeviceIndicator (Display *dpy, unsigned int dev_spec,
11 unsigned int led_class, unsigned int led_id, Atom name, int
12 *ndx_rtrn, Bool *state_rtrn, XkbIndicatorMapPtr map_rtrn, Bool
13 *real_rtrn);
14
15 Bool XkbGetNamedIndicator (Display *dpy, Atom name, int *ndx_rtrn, Bool
16 *state_rtrn, XkbIndicatorMapPtr map_rtrn, Bool *real_rtrn);
17
19 - dpy connection to the X server
20
21 - dev_spec
22 keyboard device ID, or XkbUseCoreKbd
23
24 - led_class
25 feedback class, or XkbDfltXIClass
26
27 - led_id
28 feedback ID, or XkbDfltXIId
29
30 - name name of the indicator to be retrieved
31
32 - ndx_rtrn
33 backfilled with the index of the retrieved indicator
34
35 - state_rtrn
36 backfilled with the current state of the retrieved indicator
37
38 - map_rtrn
39 backfilled with the mapping for the retrieved indicator
40
41 - real_rtrn
42 backfilled with True if the named indicator is real (physical)
43
45 Xkb also allows applications to refer to indicators by name. Use
46 XkbGetNames to get the indicator names. Using names eliminates the need
47 for hard-coding bitmask values for particular keyboards. For example,
48 instead of using vendor-specific constants such as WSKBLed_ScrollLock
49 mask on Digital workstations or XLED_SCROLL_LOCK on Sun workstations,
50 you can instead use XkbGetNamedDeviceIndicator to look up information
51 on the indicator named "Scroll Lock."
52
53 If the device specified by device_spec has an indicator named name,
54 XkbGetNamedDeviceIndicator returns True and populates the rest of the
55 parameters with information about the indicator. Otherwise, XkbGet‐
56 NamedDeviceIndicator returns False.
57
58 The ndx_rtrn field returns the zero-based index of the named indicator.
59 This index is the bit position to use in any function call that
60 requires a mask of indicator bits, as well as the indicator's index
61 into the XkbIndicatorRec array of indicator maps. state_rtrn returns
62 the current state of the named indicator (True = on, False = off).
63 map_rtrn returns the indicator map for the named indicator. In addi‐
64 tion, if the indicator is mapped to a physical LED, the real_rtrn
65 parameter is set to True.
66
67 Each of the " _rtrn " arguments is optional; you can pass NULL for any
68 unneeded " _rtrn " arguments.
69
70
71 XkbGetNamedIndicator is a convenience function that calls XkbGetNamed‐
72 DeviceIndicator with a device_spec of XkbUseCoreKbd, a led_class of
73 XkbDfltXIClass, and a led_id of XkbDfltXIId. It returns the return
74 value from XkbGetNamedDeviceIndicator.
75
76
78 True The XkbGetNamedIndicator and XkbGetNamedDeviceIndicator
79 functions return True if the device specified by
80 device_spec has an indicator named name.
81
82 False The XkbGetNamedIndicator and XkbGetNamedDeviceIndicator
83 functions return False if the device specified by
84 device_spec does not have an indicator named name.
85
87 XkbGetNames(3)
88
89
90
91X Version 11 libX11 1.6.9 XkbGetNamedIndicator(3)