XGetDeviceProperty, XChangeDeviceProperty, XDeleteDeviceProperty − Get, change or delete a device´s property.
XGetDeviceProperty( Display *display,
unsigned long *nitems_return,
unsigned long *bytes_after_return,
unsigned char **prop_return)
XChangeDeviceProperty( Display *display,
const char *data,
XDeleteDeviceProperty( Display *display,
Returns an atom identifier that defines the actual type
of the property.
Returns the actual format of the property.
Returns the number of bytes remaining to be read in the
property if a partial read was performed.
Specifies the property data.
Specifies a Boolean value that determines whether the
property is deleted.
Specifies the connection to the X server.
The device to grab.
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
Specifies the length in 32−bit multiplies of the data to
Specifies the mode of operation. You can pass
PropModeReplace, PropModePrepend, or PropModeAppend.
Specifies the number of elements in data.
Returns the actual number of 8−bit, 16−bit, or 32−bit
items stored in the prop_return array.
Specifies the number of elements in the values list.
Specifies the offset in the specified property (in
32−bit quantities) where the data is to be retrieved.
Specifies the property to modify or query.
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).
Specifies the atom identifier associated with the
property type or AnyPropertyType.
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.
A value does not describe a valid named identifier or
the client attempted to remove a driver−allocated
An invalid device was specified. The device does not
Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.
Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.
Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.
Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.
The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.
Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.
Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.
Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.