XChangeDeviceProperty(3)



XGETDEVICEPROPERTY

NAME
SYNOPSIS
DESCRIPTION
DIAGNOSIS
SEE ALSO

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,
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.

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(3)



More Linux Commands

manpages/Tcl_ChannelGetHandleProc.3.html
Tcl_ChannelGetHandleProc(3) - procedures for creating and ma
Tcl uses a two-layered channel architecture. It provides a generic upper layer to enable C and Tcl programs to perform input and output using the same APIs for

manpages/netsnmp_varbind_api.3.html
netsnmp_varbind_api(3) - netsnmp_varbind_api functions......
The functions dealing with variable bindings fall into four groups dealing with the creation, setting of values, output and deletion of varbinds. Creation snmp_

manpages/asn1_der_coding.3.html
asn1_der_coding(3) - Creates the DER encoding for the NAME s
Creates the DER encoding for the NAME structure (inside *POINTER structure). RETURNS ASN1_SUCCESS if DER encoding OK, ASN1_ELEMENT_NOT_FOUND if name is not a va

manpages/oldolduname.2.html
oldolduname(2) - get name and information about current kern
oldolduname.2 - uname() returns system information in the structure pointed to by buf. The utsname struct is defined in &lt;sys/utsname.h&gt;: struct utsname { char s

manpages/cacosf.3.html
cacosf(3) - complex arc cosine (Library - Linux man page)...
The cacos() function calculates the complex arc cosine of z. If y = cacos(z), then z = ccos(y). The real part of y is chosen in the interval [0,pi]. One has: ca

manpages/strlen.3.html
strlen(3) - calculate the length of a string (Man Page).....
The strlen() function calculates the length of the string s, excluding the terminating null byte (\0). RETURN VALUE The strlen() function returns the number of

manpages/systemd-system-update-generator.8.html
systemd-system-update-generator(8) Generator for redirecting
systemd-system-update-generator is a generator that automatically redirects the boot process to system-update.target if /system-update exists. This is required

manpages/slk_attroff_sp.3ncurses.html
slk_attroff_sp(3ncurses) - curses screen-pointer extension
This implementation can be configured to provide a set of functions which improve the ability to manage multiple screens. This feature can be added to any of th

manpages/strnames.3ncurses.html
strnames(3ncurses) - curses terminfo global variables.......
This page summarizes variables provided by the curses librarys low-level terminfo interface. A more complete description is given in the curs_terminfo(3X) manua

manpages/rtime.3.html
rtime(3) - get time from a remote machine - Linux man page
This function uses the Time Server Protocol as described in RFC 868 to obtain the time from a remote machine. The Time Server Protocol gives the time in seconds

manpages/Tcl_SetPanicProc.3.html
Tcl_SetPanicProc(3) - report fatal error and abort (ManPage)
When the Tcl library detects that its internal data structures are in an inconsistent state, or that its C procedures have been called in a manner inconsistent

manpages/Tcl_FSChdir.3.html
Tcl_FSChdir(3) - procedures to interact with any filesystem
There are several reasons for calling the Tcl_FS API functions (e.g. Tcl_FSAccess and Tcl_FSStat) rather than calling system level functions like access and sta





We can't live, work or learn in freedom unless the software we use is free.