1XKeymapEvent(3)                 XLIB FUNCTIONS                 XKeymapEvent(3)
2
3
4

NAME

6       XKeymapEvent - KeymapNotify event structure
7

STRUCTURES

9       The structure for KeymapNotify events contains:
10
11       /* generated on EnterWindow and FocusIn when KeymapState selected */
12       typedef struct {
13               int type;       /* KeymapNotify */
14               unsigned long serial;   /* # of last request processed by server */
15               Bool send_event;        /* true if this came from a SendEvent request */
16               Display *display;       /* Display the event was read from */
17               Window window;
18               char key_vector[32];
19       } XKeymapEvent;
20
21       When you receive this event, the structure members are set as follows.
22
23       The  type  member  is set to the event type constant name that uniquely
24       identifies it.  For example, when the X server reports a GraphicsExpose
25       event  to a client application, it sends an XGraphicsExposeEvent struc‐
26       ture with the type member set to GraphicsExpose.  The display member is
27       set  to a pointer to the display the event was read on.  The send_event
28       member is set to True if the event came from a SendEvent  protocol  re‐
29       quest.  The serial member is set from the serial number reported in the
30       protocol but expanded from the 16-bit least-significant bits to a  full
31       32-bit value.  The window member is set to the window that is most use‐
32       ful to toolkit dispatchers.
33
34       The window member is not used but is present to aid some toolkits.  The
35       key_vector  member  is set to the bit vector of the keyboard.  Each bit
36       set to 1 indicates that the corresponding  key  is  currently  pressed.
37       The  vector  is  represented as 32 bytes.  Byte N (from 0) contains the
38       bits for keys 8N to 8N + 7 with the least significant bit in  the  byte
39       representing key 8N.
40

SEE ALSO

42       XAnyEvent(3),    XButtonEvent(3),    XCreateWindowEvent(3),   XCircula‐
43       teEvent(3),  XCirculateRequestEvent(3),   XColormapEvent(3),   XConfig‐
44       ureEvent(3), XConfigureRequestEvent(3), XCrossingEvent(3), XDestroyWin‐
45       dowEvent(3),  XErrorEvent(3),  XExposeEvent(3),   XFocusChangeEvent(3),
46       XGraphicsExposeEvent(3),    XGravityEvent(3),   XMapEvent(3),   XMapRe‐
47       questEvent(3),    XPropertyEvent(3),     XReparentEvent(3),     XResiz‐
48       eRequestEvent(3),  XSelectionClearEvent(3), XSelectionEvent(3), XSelec‐
49       tionRequestEvent(3), XUnmapEvent(3), XVisibilityEvent(3)
50       Xlib - C Language X Interface
51
52
53
54X Version 11                     libX11 1.8.7                  XKeymapEvent(3)
Impressum