XGETDEVICEPROPERTY - Online Linux Manual PageSection : 3
Updated : 09/15/2021
Source :
Note :
NAMEXGetDeviceProperty, 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,
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 whether 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.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.
DESCRIPTIONThe 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.
DIAGNOSISBadAtom
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 ALSOXListDeviceProperties(3) 0
Johanes Gumabo
Data Size : 9,800 byte
man-XGetDeviceProperty.3Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 2 / 237,187
Visitor ID : :
Visitor IP : 3.141.25.125 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.