1 XGETDEVICEPROPERTY(libmansuffix)
2 ================================
7 XGetDeviceProperty, XChangeDeviceProperty,
8 XDeleteDeviceProperty - Get, change or delete a device's
14 #include <X11/extensions/XInput.h>
16 int XGetDeviceProperty( Display *display,
23 Atom *actual_type_return,
24 int *actual_format_return,
25 unsigned long *nitems_return,
26 unsigned long *bytes_after_return,
27 unsigned char **prop_return)
29 void XChangeDeviceProperty( Display *display,
38 void XDeleteDeviceProperty( Display *display,
44 Returns an atom identifier that defines the actual type
48 Returns the actual format of the property.
51 Returns the number of bytes remaining to be read in the
52 property if a partial read was performed.
55 Specifies the property data.
58 Specifies a Boolean value that determines whether the
62 Specifies the connection to the X server.
68 Specifies whether the data should be viewed as a list of
69 8-bit, 16-bit, or 32-bit quantities. Possible values are
70 8, 16, and 32. This information allows the X server to
71 correctly perform byte-swap operations as necessary. If
72 the format is 16-bit or 32-bit, you must explicitly cast
73 the data pointer to an (unsigned char*) in the call to
74 XChangeDeviceProperty.
77 Specifies the length in 32-bit multiplies of the data to
81 Specifies the mode of operation. You can pass
82 PropModeReplace, PropModePrepend, or PropModeAppend.
85 Specifies the number of elements in data.
88 Returns the actual number of 8-bit, 16-bit, or 32-bit
89 items stored in the prop_return array.
92 Specifies the number of elements in the values list.
95 Specifies the offset in the specified property (in
96 32-bit quantities) where the data is to be retrieved.
99 Specifies the property to modify or query.
102 Returns the data in the specified format. If the
103 returned format is 8, the returned data is represented
104 as a char array. If the returned format is 16, the
105 returned data is represented as an array of short int
106 type and should be cast to that type to obtain the
107 elements. If the returned format is 32, the property
108 data will be stored as an array of longs (which in a
109 64-bit application will be 64-bit values that are padded
110 in the upper 4 bytes).
113 Specifies the atom identifier associated with the
114 property type or AnyPropertyType.
119 The XGetDeviceProperty function returns the actual type of the
120 property; the actual format of the property; the number of
121 8-bit, 16-bit, or 32-bit items transferred; the number of bytes
122 remaining to be read in the property; and a pointer to the data
123 actually returned. For a detailed description of this function,
124 see the man page to XGetWindowProperty.
126 The XChangeDeviceProperty function alters the property for the
127 specified device and causes the server to generate a
128 XPropertyNotifyEvent event on that device. For a detailed
129 description of this function, see the man page to
132 The XDeleteDeviceProperty function deletes the specified device
133 property. Note that a client cannot delete a property created
134 by a driver or the server. Attempting to do so will result in a
137 XGetDeviceProperty can generate a BadAtom, BadDevice error.
139 XChangeDeviceProperty can generate a BadDevice, a BadMatch, a
140 BadAtom, and a BadValue error.
142 XDeleteDeviceProperty can generate a BadDevice, and a BadAtom
149 A value does not describe a valid named identifier or
150 the client attempted to remove a driver-allocated
154 An invalid device was specified. The device does not
160 XListDeviceProperties(libmansuffix)