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

NAME

6       XVisibilityEvent - VisibilityNotify event structure
7

STRUCTURES

9       The structure for VisibilityNotify events contains:
10
11       typedef struct {
12               int type;       /* VisibilityNotify */
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               int state;
18       } XVisibilityEvent;
19
20       When you receive this event, the structure members are set as follows.
21
22       The type member is set to the event type constant name that uniquely
23       identifies it.  For example, when the X server reports a GraphicsExpose
24       event to a client application, it sends an XGraphicsExposeEvent struc‐
25       ture with the type member set to GraphicsExpose.  The display member is
26       set to a pointer to the display the event was read on.  The send_event
27       member is set to True if the event came from a SendEvent protocol
28       request.  The serial member is set from the serial number reported in
29       the protocol but expanded from the 16-bit least-significant bits to a
30       full 32-bit value.  The window member is set to the window that is most
31       useful to toolkit dispatchers.
32
33       The window member is set to the window whose visibility state changes.
34       The state member is set to the state of the window's visibility and can
35       be VisibilityUnobscured, VisibilityPartiallyObscured, or VisibilityFul‐
36       lyObscured.  The X server ignores all of a window's subwindows when
37       determining the visibility state of the window and processes Visibili‐
38       tyNotify events according to the following:
39
40       ·    When the window changes state from partially obscured, fully
41            obscured, or not viewable to viewable and completely unobscured,
42            the X server generates the event with the state member of the
43            XVisibilityEvent structure set to VisibilityUnobscured.
44
45       ·    When the window changes state from viewable and completely unob‐
46            scured or not viewable to viewable and partially obscured, the X
47            server generates the event with the state member of the XVisibili‐
48            tyEvent structure set to VisibilityPartiallyObscured.
49
50       ·    When the window changes state from viewable and completely unob‐
51            scured, viewable and partially obscured, or not viewable to view‐
52            able and fully obscured, the X server generates the event with the
53            state member of the XVisibilityEvent structure set to Visibility‐
54            FullyObscured.
55

SEE ALSO

57       XAnyEvent(3), XButtonEvent(3), XCreateWindowEvent(3), XCircula‐
58       teEvent(3), XCirculateRequestEvent(3), XColormapEvent(3), XConfig‐
59       ureEvent(3), XConfigureRequestEvent(3), XCrossingEvent(3), XDestroyWin‐
60       dowEvent(3), XErrorEvent(3), XExposeEvent(3), XFocusChangeEvent(3),
61       XGraphicsExposeEvent(3), XGravityEvent(3), XKeymapEvent(3),
62       XMapEvent(3), XMapRequestEvent(3), XPropertyEvent(3), XRepar‐
63       entEvent(3), XResizeRequestEvent(3), XSelectionClearEvent(3), XSelec‐
64       tionEvent(3), XSelectionRequestEvent(3), XUnmapEvent(3),
65       Xlib - C Language X Interface
66
67
68
69X Version 11                     libX11 1.6.7              XVisibilityEvent(3)
Impressum