1XColormapEvent(3) XLIB FUNCTIONS XColormapEvent(3)
2
3
4
6 XColormapEvent - ColormapNotify event structure
7
9 The structure for ColormapNotify events contains:
10
11 typedef struct {
12 int type; /* ColormapNotify */
13 unsigned long serial; /* # of last request processed by server */
14 Bool send_event; /* true if this came from a SendEvent request */
15 Display *display; /* Display the event was read from */
16 Window window;
17 Colormap colormap; /* colormap or None */
18 Bool new;
19 int state; /* ColormapInstalled, ColormapUninstalled */
20 } XColormapEvent;
21
22 When you receive this event, the structure members are set as follows.
23
24 The type member is set to the event type constant name that uniquely
25 identifies it. For example, when the X server reports a GraphicsExpose
26 event to a client application, it sends an XGraphicsExposeEvent struc‐
27 ture with the type member set to GraphicsExpose. The display member is
28 set to a pointer to the display the event was read on. The send_event
29 member is set to True if the event came from a SendEvent protocol
30 request. The serial member is set from the serial number reported in
31 the protocol but expanded from the 16-bit least-significant bits to a
32 full 32-bit value. The window member is set to the window that is most
33 useful to toolkit dispatchers.
34
35 The window member is set to the window whose associated colormap is
36 changed, installed, or uninstalled. For a colormap that is changed,
37 installed, or uninstalled, the colormap member is set to the colormap
38 associated with the window. For a colormap that is changed by a call
39 to XFreeColormap, the colormap member is set to None. The new member
40 is set to indicate whether the colormap for the specified window was
41 changed or installed or uninstalled and can be True or False. If it is
42 True, the colormap was changed. If it is False, the colormap was
43 installed or uninstalled. The state member is always set to indicate
44 whether the colormap is installed or uninstalled and can be ColormapIn‐
45 stalled or ColormapUninstalled.
46
48 XAnyEvent(3), XButtonEvent(3), XCreateWindowEvent(3), XCircula‐
49 teEvent(3), XCirculateRequestEvent(3), XConfigureEvent(3), XConfigur‐
50 eRequestEvent(3), XCreateColormap(3), XCrossingEvent(3), XDestroyWin‐
51 dowEvent(3), XErrorEvent(3), XExposeEvent(3), XFocusChangeEvent(3),
52 XGraphicsExposeEvent(3), XGravityEvent(3), XKeymapEvent(3),
53 XMapEvent(3), XMapRequestEvent(3), XPropertyEvent(3), XRepar‐
54 entEvent(3), XResizeRequestEvent(3), XSelectionClearEvent(3), XSelec‐
55 tionEvent(3), XSelectionRequestEvent(3), XUnmapEvent(3), XVisibili‐
56 tyEvent(3)
57 Xlib - C Language X Interface
58
59
60
61X Version 11 libX11 1.3.4 XColormapEvent(3)