1XkbResizeDeviceButtonActions(3)  XKB FUNCTIONS XkbResizeDeviceButtonActions(3)
2
3
4

NAME

6       XkbResizeDeviceButtonActions  -  Allocate  additional  space for button
7       actions in an XkbDeviceInfoRec structure
8

SYNOPSIS

10       Status  XkbResizeDeviceButtonActions   (XkbDeviceInfoPtr   device_info,
11              unsigned int new_total);
12

ARGUMENTS

14       - device_info
15              structure in which to allocate button actions
16
17       - new_total
18              new total number of button actions needed
19

DESCRIPTION

21       XkbResizeDeviceButtonActions  reallocates  space, if necessary, to make
22       sure there is room for a total  of  new_total  button  actions  in  the
23       device_info  structure.  Any  new entries allocated are zeroed. If suc‐
24       cessful, XkbResizeDeviceButtonActions returns Success. If new_total  is
25       zero,  all  button actions are deleted, device_info->num_btns is set to
26       zero, and device_info->btn_acts is  set  to  NULL.  If  device_info  is
27       invalid  or  new_total  is greater than 255, BadValue is returned. If a
28       memory allocation failure occurs, a BadAlloc is returned.
29
30       To free an XkbDeviceInfoRec structure, use XkbFreeDeviceInfo.
31

STRUCTURES

33       Information about X Input Extension devices is  transferred  between  a
34       client program and the Xkb extension in an XkbDeviceInfoRec structure:
35
36           typedef struct {
37               char *               name;          /∗ name for device */
38               Atom                 type;          /∗ name for class of devices */
39               unsigned short       device_spec;   /∗ device of interest */
40               Bool                 has_own_state; /∗ True=>this device has its own state */
41               unsigned short       supported;     /∗ bits indicating supported capabilities */
42               unsigned short       unsupported;   /∗ bits indicating unsupported capabilities */
43               unsigned short       num_btns;      /∗ number of entries in btn_acts */
44               XkbAction *          btn_acts;      /∗ button actions */
45               unsigned short       sz_leds;       /∗ total number of entries in LEDs vector */
46               unsigned short       num_leds;      /∗ number of valid entries in LEDs vector */
47               unsigned short       dflt_kbd_fb;   /∗ input extension ID of default (core kbd) indicator */
48               unsigned short       dflt_led_fb;   /∗ input extension ID of default indicator feedback */
49               XkbDeviceLedInfoPtr  leds;          /∗ LED descriptions */
50           } XkbDeviceInfoRec, *XkbDeviceInfoPtr;
51

DIAGNOSTICS

53       BadAlloc       Unable to allocate storage
54
55       BadValue       An argument is out of range
56

SEE ALSO

58       XkbFreeDeviceInfo(3)
59
60
61
62X Version 11                     libX11 1.6.9  XkbResizeDeviceButtonActions(3)
Impressum