1 .\" Copyright 1999 Oracle and/or its affiliates. All rights reserved.
3 .\" Permission is hereby granted, free of charge, to any person obtaining a
4 .\" copy of this software and associated documentation files (the "Software"),
5 .\" to deal in the Software without restriction, including without limitation
6 .\" the rights to use, copy, modify, merge, publish, distribute, sublicense,
7 .\" and/or sell copies of the Software, and to permit persons to whom the
8 .\" Software is furnished to do so, subject to the following conditions:
10 .\" The above copyright notice and this permission notice (including the next
11 .\" paragraph) shall be included in all copies or substantial portions of the
14 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 .\" IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 .\" FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 .\" THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 .\" LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19 .\" FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20 .\" DEALINGS IN THE SOFTWARE.
22 .TH XkbSetNamedIndicator __libmansuffix__ __xorgversion__ "XKB FUNCTIONS"
24 XkbSetNamedIndicator \- Names an indicator if it is not already named; toggles
25 the state of the indicator; sets the indicator to a specified state and sets the
26 indicator map for the indicator
29 .B Bool XkbSetNamedIndicator
30 .BI "(\^Display *" "dpy" "\^,"
31 .BI "unsigned int " "device_spec" "\^,"
32 .BI "Atom " "name" "\^,"
33 .BI "Bool " "change_state" "\^,"
34 .BI "Bool " "state" "\^,"
35 .BI "Bool " "create_new" "\^,"
36 .BI "XkbIndicatorMapPtr " "map" "\^);"
42 connection to the X server
45 device ID, or XkbUseCoreKbd
48 name of the indicator to change
51 whether to change the indicator state or not
54 desired new state for the indicator
57 whether a new indicator with the specified name should be created when necessary
60 new map for the indicator
63 If a compatible version of the Xkb extension is not available in the server,
64 .I XkbSetNamedIndicator
65 returns False. Otherwise, it sends a request to the X server to change the
66 indicator specified by
72 is True, and the optional parameter,
75 .I XkbSetNamedIndicator
76 tells the server to change the state of the named indicator to the value
80 If an indicator with the name specified by
82 does not already exist, the
84 parameter tells the server whether it should create a new named indicator. If
86 is True, the server finds the first indicator that doesn't have a name and gives
87 it the name specified by
89 If the optional parameter,
91 .I XkbSetNamedIndicator
92 tells the server to change the indicator's map to the values specified in
95 In addition, it can also generate XkbIndicatorStateNotify,
96 XkbIndicatorMapNotify, and XkbNamesNotify events.
101 .I XkbSetNamedIndicator
102 function returns True if a compatible version of the Xkb extension is available in the server.
106 .I XkbSetNamedIndicator
107 function returns False if a compatible version of the Xkb extension is not available in the server.
111 A name is neither a valid Atom or None
114 Invalid reply from server
116 .BR XkbIndicatorMapNotify (__libmansuffix__),
117 .BR XkbIndicatorStateNotify (__libmansuffix__),
118 .BR XkbNamesNotify (__libmansuffix__)