XF86MISC


HOME

XF86MISC

NAME
SYNTAX
ARGUMENTS
STRUCTURES
DESCRIPTION
PREDEFINED VALUES
SEE ALSO
AUTHORS

NAME

XF86MiscQueryExtension, XF86MiscQueryVersion, XF86MiscGetMouseSettings, XF86MiscSetMouseSettings, XF86MiscGetKbdSettings, XF86MiscSetKbdSettings − Extension library for the XFree86-Misc X extension.

SYNTAX

#include <X11/extensions/xf86misc.h>

Bool XF86MiscQueryExtension(
Display *display,
int *event_base_return,
int *error_base_return);

Bool XF86MiscQueryVersion(
Display *display,
int *major_version_return,
int *minor_version_return);

Status XF86MiscGetMouseSettings(
Display *display,
XF86MiscMouseSettings *mseinfo);

Status XF86MiscSetMouseSettings(
Display *display,
XF86MiscMouseSettings *mseinfo);

Status XF86MiscGetKbdSettings(
Display *display,
XF86MiscKbdSettings *kbdinfo);

Status XF86MiscSetKbdSettings(
Display *display,
XF86MiscKbdSettings *kbdinfo);

ARGUMENTS

display

Specifies the connection to the X server.

screen

Specifies which screen number the setting apply to.

event_base_return

Returns the base event number for the extension.

error_base_return

Returns the base error number for the extension.

major_version_return

Returns the major version number of the extension.

minor_version_return

Returns the minor version number of the extension.

mseinfo

Specifies a structure which contains the mouse parameters.

kbdinfo

Specifies a structure which contains the keyboard parameters.

STRUCTURES

Mouse:
typedef struct {

char *device;

/td>

/∗ returned path to device */
int type;

/∗ mouse protocol */
int baudrate;

/∗ 1200, 2400, 4800, or 9600 */
int samplerate;

/∗ samples per second */
int resolution;

/∗ resolution, count per inch */
int buttons;

/∗ number of buttons */
Bool emulate3buttons;

/∗ Button1+Button3 -> Button2 ? */
int emulate3timeout;

/∗ in milliseconds */
Bool chordmiddle;

/∗ Button1+Button3 == Button2 ? */
int flags;

/∗ Device open flags */

} XF86MiscMouseSettings;

Keyboard:
typedef struct {

int type;

/td>

/∗ of keyboard: 84-key, 101-key, Xqueue */
int rate;

/∗ repeat rate */
int delay;

/∗ delay until repeat starts */
Bool servnumlock;

/∗ Server handles NumLock ? */

} XF86MiscKbdSettings;

DESCRIPTION

These functions provide an interface to the XFree86-Misc extension which allows various server settings to be queried and changed dynamically. Applications that use these functions must be linked with -lXxf86misc

POWER-SAVER FUNCTIONS
The XF86MiscGetSaver and XF86MiscSetSaver functions have been removed. This functionality is now provided by the DPMS extension.

MOUSE FUNCTIONS
Mouse parameters can be queried using the function XF86MiscGetMouseSettings. The structure pointed to by its second argument is filled in with the current mouse settings.

Not all fields are valid in all cases. For example, when the protocol indicates a bus mouse (i.e. the type field has value MTYPE_BUSMOUSE as defined in xf86misc.h), then the value in the baudrate field should be ignored as it does not apply to bus mice.

The samplerate field contains the resolution in lines per inch when using the Hitachi tablet protocol.

The device field of the structure points to dynamically allocated storage which should be freed by the caller.

Any of the fields of the structure can be altered and then passed to the XF86MiscSetMouseSettings function to change their value in the server, with the following restrictions:

1)

The device can not be changed

2)

The protocol can not be changed to or from Xqueue or OsMouse

3)

The buttons field can not be changed

4)

Invalid combinations of parameters are not allowed

The server will generate an error if any of the above is attempted, except the first − the contents of the device field are simply ignored.

A change of the protocol causes the device to be closed and reopened. Changes to the baud rate, sample rate, resolution or flags, when applicable to the selected protocol, also cause a reopen of the device. A reopen can be forced by using the MF_REOPEN flag, except in the case of the OsMouse and Xqueue protocols which ignore all attempts to reopen the device.

KEYBOARD FUNCTIONS
The XF86MiscGetKbdSettings function allows you to retrieve the current keyboard-related settings from the server.

Using the XF86MiscSetKbdSettings function, the keyboard autorepeat delay and rate can be set. Requests to change the type and servnumlock fields are ignored (except for checking for an invalid keyboard type). This is expected to change in a future release.

OTHER FUNCTIONS
Two functions, XF86MiscQueryExtension and XF86MiscQueryVersion, are provided which allow the client to query some information regarding the extension itself.

PREDEFINED VALUES

The header file X11/extensions/xf86misc.h contains definitions for

MTYPE_*

Mouse protocols

KTYPE_*

Keyboard types

MF_*

Mouse flags

SEE ALSO

xset(1), xorg.conf(5)

AUTHORS

Joe Moss and David Dawes, The XFree86 Project, Inc.



More Linux Commands

manpages/sane-coolscan.5.html
sane-coolscan(5) - SANE backend for Nikon film-scanners.....
The sane-coolscan library implements a SANE backend that provides the interface to the following Nikon Coolscan Film scanners: Nikon LS20, LS30, LS1000, LS2000.

manpages/XResourceManagerString.3.html
XResourceManagerString(3) - obtain server resource propertie
The XResourceManagerString function returns the RESOURCE_MANAGER property from the servers root window of screen zero, which was returned when the connection wa

manpages/asn1_read_tag.3.html
asn1_read_tag(3) - Returns the TAG of one element inside a s
Returns the TAG and the CLASS of one element inside a structure. CLASS can have one of these constants: ASN1_CLASS_APPLICATION, ASN1_CLASS_UNIVERSAL, ASN1_CLASS

manpages/DefaultGC.3.html
DefaultGC(3) - Display macros and functions - Linux man page
The AllPlanes macro returns a value with all bits set to 1 suitable for use in a plane argument to a procedure. The BlackPixel macro returns the black pixel val

manpages/data_ahead.3form.html
data_ahead(3form) - test for off-screen data in given forms
The function data_ahead tests whether there is off-screen data ahead in the given form. It returns TRUE 411toppm(1) or FALSE (0). The function data_behind tests

manpages/cryptdir.1.html
cryptdir(1) - encrypt/decrypt all files in a directory......
cryptdir.1 - cryptdir encrypts all files in the current directory (or the given directory if one is provided as an argument). When called as decryptdir (i.e., s

manpages/gnutls_x509_crq_get_attribute_data.3.html
gnutls_x509_crq_get_attribute_data(3) - API function........
This function will return the requested attribute data in the certificate request. The attribute data will be stored as a string in the provided buffer. Use gnu

manpages/DBM_Filter::compress.3pm.html
DBM_Filter::compress(3pm) - filter for DBM_Filter (ManPage)
This DBM filter will compress all data before it is written to the database and uncompressed it on reading. A fatal error will be thrown if the Compress::Zlib m

manpages/XRemoveFromSaveSet.3.html
XRemoveFromSaveSet(3) - change a client's save set (ManPage)
XRemoveFromSaveSet.3 - Depending on the specified mode, XChangeSaveSet either inserts or deletes the specified window from the clients save-set. The specified w

manpages/del_curterm_sp.3ncurses.html
del_curterm_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/gamma4scanimage.1.html
gamma4scanimage(1) - create a gamma table for scanimage.....
The tool gamma4scanimage creates a gamma table in the format expected by scanimage. You can define a gamma, a shadow and a highlight value. You also can specify

manpages/XFontsOfFontSet.3.html
XFontsOfFontSet(3) - obtain fontset information (Man Page)
The XFontsOfFontSet function returns a list of one or more XFontStructs and font names for the fonts used by the Xmb and Xwc layers for the given font set. A li





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