3
Copyright (c) 1992 X Consortium
5
Permission is hereby granted, free of charge, to any person obtaining a copy
6
of this software and associated documentation files (the "Software"), to deal
7
in the Software without restriction, including without limitation the rights
8
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
copies of the Software, and to permit persons to whom the Software is
10
furnished to do so, subject to the following conditions:
12
The above copyright notice and this permission notice shall be included in
13
all copies or substantial portions of the Software.
15
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
19
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
Except as contained in this notice, the name of the X Consortium shall not be
23
used in advertising or otherwise to promote the sale, use or other dealings
24
in this Software without prior written authorization from the X Consortium.
26
* Author: Keith Packard, MIT X Consortium
33
#include <X11/Xfuncproto.h>
35
#include <X11/extensions/saver.h>
38
int type; /* of event */
39
unsigned long serial; /* # of last request processed by server */
40
Bool send_event; /* true if this came frome a SendEvent request */
41
Display *display; /* Display the event was read from */
42
Window window; /* screen saver window */
43
Window root; /* root window of event screen */
44
int state; /* ScreenSaverOff, ScreenSaverOn, ScreenSaverCycle*/
45
int kind; /* ScreenSaverBlanked, ...Internal, ...External */
46
Bool forced; /* extents of new region */
47
Time time; /* event timestamp */
48
} XScreenSaverNotifyEvent;
51
Window window; /* screen saver window - may not exist */
52
int state; /* ScreenSaverOff, ScreenSaverOn, ScreenSaverDisabled*/
53
int kind; /* ScreenSaverBlanked, ...Internal, ...External */
54
unsigned long til_or_since; /* time til or since screen saver */
55
unsigned long idle; /* total time since last user input */
56
unsigned long eventMask; /* currently selected events for this client */
61
extern Bool XScreenSaverQueryExtension (
62
Display* /* display */,
63
int* /* event_base */,
67
extern Status XScreenSaverQueryVersion (
68
Display* /* display */,
69
int* /* major_version */,
70
int* /* minor_version */
73
extern XScreenSaverInfo *XScreenSaverAllocInfo (
77
extern Status XScreenSaverQueryInfo (
78
Display* /* display */,
79
Drawable /* drawable */,
80
XScreenSaverInfo* /* info */
83
extern void XScreenSaverSelectInput (
84
Display* /* display */,
85
Drawable /* drawable */,
86
unsigned long /* eventMask */
89
extern void XScreenSaverSetAttributes (
90
Display* /* display */,
91
Drawable /* drawable */,
94
unsigned int /* width */,
95
unsigned int /* height */,
96
unsigned int /* border_width */,
98
unsigned int /* class */,
99
Visual * /* visual */,
100
unsigned long /* valuemask */,
101
XSetWindowAttributes * /* attributes */
104
extern void XScreenSaverUnsetAttributes (
105
Display* /* display */,
106
Drawable /* drawable */
109
extern Status XScreenSaverRegister (
110
Display* /* display */,
116
extern Status XScreenSaverUnregister (
117
Display* /* display */,
121
extern Status XScreenSaverGetRegistered (
122
Display* /* display */,
128
extern void XScreenSaverSuspend (
129
Display* /* display */,
135
#endif /* _SCRNSAVER_H_ */