summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-06-02 12:49:40 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-06-02 13:25:49 +1000
commit5500d5b6f9fe3b94d68046529fbf6c80e5a4f518 (patch)
treeee3b8e9122063c47ef17f5016feda1196268ff6d /man
parentd0be870ee7798deb8cb50cdf350892c9dfc64538 (diff)
man: resurrect XGetDeviceProperty man pages (and associates)
These man pages got lost in the asciidoc conversion. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'man')
-rw-r--r--man/Makefile.am5
-rw-r--r--man/XGetDeviceProperty.txt165
2 files changed, 170 insertions, 0 deletions
diff --git a/man/Makefile.am b/man/Makefile.am
index edcb745..249569e 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -53,6 +53,7 @@ libman_txt = \
XGetDeviceKeyMapping.txt \
XGetDeviceModifierMapping.txt \
XGetDeviceMotionEvents.txt \
+ XGetDeviceProperty.txt \
XGetExtensionVersion.txt \
XGetFeedbackControl.txt \
XGrabDeviceButton.txt \
@@ -104,6 +105,8 @@ libman_ref = \
XGetSelectedExtensionEvents.man \
XGetDeviceButtonMapping.man \
XGetDeviceFocus.man \
+ XChangeDeviceProperty.man \
+ XDeleteDeviceProperty.man \
$(XI2_refpages)
@@ -130,6 +133,8 @@ XCloseDevice.man: XOpenDevice.man
XGetSelectedExtensionEvents.man: XSelectExtensionEvent.man
XGetDeviceButtonMapping.man: XSetDeviceButtonMapping.man
XGetDeviceFocus.man: XSetDeviceFocus.man
+XChangeDeviceProperty.man: XGetDeviceProperty.man
+XDeleteDeviceProperty.man: XGetDeviceProperty.man
# XI2 prereqs
XIUndefineCursor: XIDefineCursor.man
diff --git a/man/XGetDeviceProperty.txt b/man/XGetDeviceProperty.txt
new file mode 100644
index 0000000..eaa86ea
--- /dev/null
+++ b/man/XGetDeviceProperty.txt
@@ -0,0 +1,165 @@
+XGETDEVICEPROPERTY(libmansuffix)
+================================
+
+NAME
+----
+
+ XGetDeviceProperty, XChangeDeviceProperty,
+ XDeleteDeviceProperty - Get, change or delete a device's
+ property.
+
+SYNOPSIS
+--------
+
+ #include <X11/extensions/XInput.h>
+
+ int XGetDeviceProperty( Display *display,
+ XDevice *device,
+ Atom property,
+ long offset,
+ long length,
+ Bool delete,
+ Bool pending,
+ Atom req_type,
+ Atom *actual_type_return,
+ int *actual_format_return,
+ unsigned long *nitems_return,
+ unsigned long *bytes_after_return,
+ unsigned char **prop_return)
+
+ void XChangeDeviceProperty( Display *display,
+ XDevice *device,
+ Atom property,
+ Atom type,
+ int format,
+ int mode,
+ const char *data,
+ int nelements)
+
+ void XDeleteDeviceProperty( Display *display,
+ XDevice *device,
+ Atom property)
+
+
+ actual_type_return
+ Returns an atom identifier that defines the actual type
+ of the property.
+
+ actual_format_return
+ Returns the actual format of the property.
+
+ bytes_after_return
+ Returns the number of bytes remaining to be read in the
+ property if a partial read was performed.
+
+ data
+ Specifies the property data.
+
+ delete
+ Specifies a Boolean value that determines wether the
+ property is deleted.
+
+ display
+ Specifies the connection to the X server.
+
+ device
+ The device to grab.
+
+ format
+ Specifies whether the data should be viewed as a list of
+ 8-bit, 16-bit, or 32-bit quantities. Possible values are
+ 8, 16, and 32. This information allows the X server to
+ correctly perform byte-swap operations as necessary. If
+ the format is 16-bit or 32-bit, you must explicitly cast
+ the data pointer to an (unsigned char*) in the call to
+ XChangeDeviceProperty.
+
+ length
+ Specifies the length in 32-bit multiplies of the data to
+ be retrieved.
+
+ mode
+ Specifies the mode of operation. You can pass
+ PropModeReplace, PropModePrepend, or PropModeAppend.
+
+ nelements
+ Specifies the number of elements in data.
+
+ nitems_return
+ Returns the actual number of 8-bit, 16-bit, or 32-bit
+ items stored in the prop_return array.
+
+ num_values
+ Specifies the number of elements in the values list.
+
+ offset
+ Specifies the offset in the specified property (in
+ 32-bit quantities) where the data is to be retrieved.
+
+ pending
+ Specifies whether to retrieve the pending state of the
+ property or the current state.
+
+ property
+ Specifies the property to modify or query.
+
+ prop_return
+ Returns the data in the specified format. If the
+ returned format is 8, the returned data is represented
+ as a char array. If the returned format is 16, the
+ returned data is represented as an array of short int
+ type and should be cast to that type to obtain the
+ elements. If the returned format is 32, the property
+ data will be stored as an array of longs (which in a
+ 64-bit application will be 64-bit values that are padded
+ in the upper 4 bytes).
+
+ req_type
+ Specifies the atom identifier associated with the
+ property type or AnyPropertyType.
+
+DESCRIPTION
+-----------
+
+The XGetDeviceProperty function returns the actual type of the
+property; the actual format of the property; the number of
+8-bit, 16-bit, or 32-bit items transferred; the number of bytes
+remaining to be read in the property; and a pointer to the data
+actually returned. For a detailed description of this function,
+see the man page to XGetWindowProperty.
+
+The XChangeDeviceProperty function alters the property for the
+specified device and causes the server to generate a
+XPropertyNotifyEvent event on that device. For a detailed
+description of this function, see the man page to
+XChangeProperty.
+
+The XDeleteDeviceProperty function deletes the specified device
+property. Note that a client cannot delete a property created
+by a driver or the server. Attempting to do so will result in a
+BadAtom error.
+
+XGetDeviceProperty can generate a BadAtom, BadDevice error.
+
+XChangeDeviceProperty can generate a BadDevice, a BadMatch, a
+BadAtom, and a BadValue error.
+
+XDeleteDeviceProperty can generate a BadDevice, and a BadAtom
+error.
+
+DIAGNOSIS
+---------
+
+ BadAtom
+ A value does not describe a valid named identifier or
+ the client attempted to remove a driver-allocated
+ property.
+
+ BadDevice
+ An invalid device was specified. The device does not
+ exist.
+
+SEE ALSO
+--------
+
+ XListDeviceProperties(libmansuffix)