NAME
XkbAllocDeviceLedInfo - Obtain an XkbDeviceLedInfoRec structure
SYNOPSIS
Status XkbAllocDeviceLedInfo (XkbDeviceInfoPtr device_info, int num_needed);
ARGUMENTS
- device_info structure in which to allocate LED space - num_needed number of indicators to allocate space for
DESCRIPTION
XkbAllocDeviceLedInfo allocates space for an XkbDeviceLedInfoRec and places it in device_info. If num_needed is nonzero, num_needed XkbIndicatorMapRec structures are also allocated and linked into the XkbDeviceLedInfoRec structure. If you request XkbIndicatorMapRec structures be allocated using this request, you must initialize them explicitly. All other fields are initialized to zero. To initialize an XkbDeviceLedInfoRec structure, use XkbAddDeviceLedInfo.
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 device_spec; / device of interest */ Bool has_own_state; / True=>this device has its own state */ unsigned short supported; / bits indicating supported capabilities */ unsigned short unsupported; / bits indicating unsupported capabilities */ unsigned short num_btns; / number of entries in btn_acts */ XkbAction * btn_acts; / button actions */ unsigned short sz_leds; / total number of entries in LEDs vector */ unsigned short num_leds; / number of valid entries in LEDs vector */ unsigned short dflt_kbd_fb; / input extension ID of default (core kbd) indicator */ unsigned short dflt_led_fb; / input extension ID of default indicator feedback */ XkbDeviceLedInfoPtr leds; / LED descriptions */ } XkbDeviceInfoRec, *XkbDeviceInfoPtr; typedef struct { unsigned short led_class; / class for this LED device*/ unsigned short led_id; / ID for this LED device */ unsigned int phys_indicators; / bits for which LEDs physically present */ unsigned int maps_present; / bits for which LEDs have maps in maps */ unsigned int names_present; / 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; Each indicator has its own set of attributes that specify whether clients can explicitly set its state and whether it tracks the keyboard state. The attributes of each indicator are held in the maps array, which is an array of XkbIndicatorRec structures: typedef struct { unsigned char flags; / how the indicator can be changed */ unsigned char which_groups; / match criteria for groups */ unsigned char groups; / which keyboard groups the indicator watches */ unsigned char which_mods; / match criteria for modifiers */ XkbModsRec mods; / which modifiers the indicator watches */ unsigned int ctrls; / which controls the indicator watches */ } XkbIndicatorMapRec, *XkbIndicatorMapPtr; This indicator map specifies for each indicator: * The conditions under which the keyboard modifier state affects the indicator * The conditions under which the keyboard group state affects the indicator * The conditions under which the state of the boolean controls affects the indicator * The effect (if any) of attempts to explicitly change the state of the indicator using the functions XkbSetControls or XChangeKeyboardControl
SEE ALSO
XkbAddDeviceLedInfo(3), XkbSetControls(3)
More Linux Commands
manpages/ExtUtils::Constant::Base.3pm.html
ExtUtils::Constant::Base(3pm) - base class for ExtUtils::Con
ExtUtils::Constant::Base provides a base implementation of methods to generate C code to give fast constant value lookup by named string. Currently its mostly u
manpages/ggz.7.html
ggz(7) - The GGZ Gaming Zone (Misc - Linux man page)........
The GGZ Gaming Zone is a standards-conforming online gaming infrastructure which provides many applications and games to people who like to play on the internet
manpages/set_field_just.3form.html
set_field_just(3form) - retrieve field characteristics......
set_field_just.3form - The function set_field_just sets the justification attribute of a field; field_just returns a fields justification attribute. The attribu
manpages/gnutls_x509_crl_get_signature_algorithm.3.html
gnutls_x509_crl_get_signature_algorithm(3) - API function...
This function will return a value of the gnutls_sign_algorithm_t enumeration that is the signature algorithm. RETURNS On success, GNUTLS_E_SUCCESS (0) is return
manpages/fsetxattr.2.html
fsetxattr(2) - set an extended attribute value (Man Page)...
fsetxattr.2 - Extended attributes are name:value pairs associated with inodes (files, directories, symbolic links, etc.). They are extensions to the normal attr
manpages/gnutls_record_disable_padding.3.html
gnutls_record_disable_padding(3) - API function (Man Page)
Used to disabled padding in TLS 1.0 and above. Normally you do not need to use this function, but there are buggy clients that complain if a server pads the enc
manpages/Tk_ConfigureWidget.3.html
Tk_ConfigureWidget(3) - process configuration options for wi
Note: Tk_ConfigureWidget should be replaced with the new Tcl_Obj based API Tk_SetOptions. The old interface is retained for backward compatibility. Tk_Configure
manpages/glTexGenfv.3gl.html
glTexGenfv(3gl) - control the generation of texture coordina
glTexGen selects a texture-coordinate generation function or supplies coefficients for one of the functions. coord names one of the (s, t, r, q) texture coordin
manpages/irexec.1.html
irexec(1) - run programs with one button press (Man Page)...
This program lets you execute arbitrary commands on an IR signal decoded by lircd, the LIRC daemon. You can give irexec a command line parameter which has to be
manpages/subtitles.1.html
subtitles(1) display subtitles within xawtv. (Man Page).....
subtitles fetches the given teletext page with the alevt-cap utility and displays it using xawtv-remote in an endless loop. Its most useful for pages which carr
manpages/gnutls_x509_trust_list_init.3.html
gnutls_x509_trust_list_init(3) - API function (Man Page)....
This function will initialize an X.509 trust list structure. RETURNS On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value. SINCE 3.0.0
manpages/systemd-cgtop.1.html
systemd-cgtop(1) Show top control groups by their resource u
systemd-cgtop shows the top control groups of the local Linux control group hierarchy, ordered by their CPU, memory, or disk I/O load. The display is refreshed
