Manual Pages for Linux CentOS command on man XkbAddDeviceLedInfo
MyWebUniversity

Manual Pages for Linux CentOS command on man XkbAddDeviceLedInfo

XkbAddDeviceLedInfo(3) XKB FUNCTIONS XkbAddDeviceLedInfo(3)

NAME

XkbAddDeviceLedInfo - Initialize an XkbDeviceLedInfoRec structure SYNOPSIS XkbDeviceLedInfoPtr XkbAddDeviceLedInfo (XkbDeviceInfoPtr deviceinfo, unsigned int ledclass, unsigned int ledid); ARGUMENTS

- deviceinfo structure in which to add LED info

- ledclass input extension class for LED device of interest

- ledid input extension ID for LED device of interest DESCRIPTION XkbAddDeviceLedInfo first checks to see whether an entry matching

ledclass and ledid already exists in the deviceinfo->leds array. If it finds a matching entry, it returns a pointer to that entry. Other‐ wise, it checks to be sure there is at least one empty entry in

deviceinfo->leds and extends it if there is not enough room. It then

increments deviceinfo->numleds and fills in the next available entry

in deviceinfo->leds with ledclass and ledid. If successful, XkbAddDeviceLedInfo returns a pointer to the XkbDe‐ viceLedInfoRec structure that was initialized. If unable to allocate sufficient storage, or if deviceinfo points to an invalid XkbDeviceIn‐ foRec structure, or if ledclass or ledid are inappropriate, XkbAddDe‐ viceLedInfo returns NULL. To allocate additional space for button actions in an XkbDeviceInfoRec structure, use XkbResizeDeviceButtonActions. STRUCTURES Information about X Input Extension devices is transferred between a client program and the Xkb extension in an XkbDeviceInfoRec structure: typedef struct { char * name; /∗ name for device */ Atom type; /∗ name for class of devices */ unsigned short devicespec; /∗ device of interest */ Bool hasownstate; /∗ True=>this device has its own state */ unsigned short supported; /∗ bits indicating supported capabilities */ unsigned short unsupported; /∗ bits indicating unsupported capabilities */ unsigned short numbtns; /∗ number of entries in btnacts */ XkbAction * btnacts; /∗ button actions */ unsigned short szleds; /∗ total number of entries in LEDs vector */ unsigned short numleds; /∗ number of valid entries in LEDs vector */ unsigned short dfltkbdfb; /∗ input extension ID of default (core kbd) indicator */ unsigned short dfltledfb; /∗ input extension ID of default indicator feedback */ XkbDeviceLedInfoPtr leds; /∗ LED descriptions */ } XkbDeviceInfoRec, *XkbDeviceInfoPtr; typedef struct { unsigned short ledclass; /∗ class for this LED device*/ unsigned short ledid; /∗ ID for this LED device */ unsigned int physindicators; /∗ bits for which LEDs physically present */ unsigned int mapspresent; /∗ bits for which LEDs have maps in maps */ unsigned int namespresent; /∗ bits for which LEDs are in names */ unsigned int state; /∗ 1 bit => corresponding LED is on */ Atom names[XkbNumIndicators]; /∗ names for LEDs */ XkbIndicatorMapRec maps; /∗ indicator maps for each LED */ } XkbDeviceLedInfoRec, *XkbDeviceLedInfoPtr; SEE ALSO XkbResizeDeviceButtonActions(3) X Version 11 libX11 1.6.5 XkbAddDeviceLedInfo(3)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™