VirtualBox

source: vbox/trunk/src/VBox/Additions/linux/x11include/7.0/X11/extensions/saverproto.h@ 1

Last change on this file since 1 was 1, checked in by vboxsync, 55 years ago

import

File size: 5.0 KB
Line 
1/*
2 * $XConsortium: saverproto.h,v 1.5 94/04/17 20:59:33 keith Exp $
3 *
4Copyright (c) 1992 X Consortium
5
6Permission is hereby granted, free of charge, to any person obtaining a copy
7of this software and associated documentation files (the "Software"), to deal
8in the Software without restriction, including without limitation the rights
9to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10copies of the Software, and to permit persons to whom the Software is
11furnished to do so, subject to the following conditions:
12
13The above copyright notice and this permission notice shall be included in
14all copies or substantial portions of the Software.
15
16THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
20AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
23Except as contained in this notice, the name of the X Consortium shall not be
24used in advertising or otherwise to promote the sale, use or other dealings
25in this Software without prior written authorization from the X Consortium.
26 *
27 * Author: Keith Packard, MIT X Consortium
28 */
29/* $XFree86$ */
30
31#ifndef _SAVERPROTO_H_
32#define _SAVERPROTO_H_
33
34#include <X11/extensions/saver.h>
35
36#define Window CARD32
37#define Drawable CARD32
38#define Font CARD32
39#define Pixmap CARD32
40#define Cursor CARD32
41#define Colormap CARD32
42#define GContext CARD32
43#define Atom CARD32
44#define VisualID CARD32
45#define Time CARD32
46#define KeyCode CARD8
47#define KeySym CARD32
48
49#define X_ScreenSaverQueryVersion 0
50
51typedef struct _ScreenSaverQueryVersion {
52 CARD8 reqType; /* always ScreenSaverReqCode */
53 CARD8 saverReqType; /* always X_ScreenSaverQueryVersion */
54 CARD16 length B16;
55 CARD8 clientMajor;
56 CARD8 clientMinor;
57 CARD16 unused B16;
58} xScreenSaverQueryVersionReq;
59#define sz_xScreenSaverQueryVersionReq 8
60
61typedef struct {
62 CARD8 type; /* X_Reply */
63 CARD8 unused; /* not used */
64 CARD16 sequenceNumber B16;
65 CARD32 length B32;
66 CARD16 majorVersion B16; /* major version of protocol */
67 CARD16 minorVersion B16; /* minor version of protocol */
68 CARD32 pad0 B32;
69 CARD32 pad1 B32;
70 CARD32 pad2 B32;
71 CARD32 pad3 B32;
72 CARD32 pad4 B32;
73} xScreenSaverQueryVersionReply;
74#define sz_xScreenSaverQueryVersionReply 32
75
76#define X_ScreenSaverQueryInfo 1
77
78typedef struct _ScreenSaverQueryInfo {
79 CARD8 reqType; /* always ScreenSaverReqCode */
80 CARD8 saverReqType; /* always X_ScreenSaverQueryInfo */
81 CARD16 length B16;
82 Drawable drawable B32;
83} xScreenSaverQueryInfoReq;
84#define sz_xScreenSaverQueryInfoReq 8
85
86typedef struct {
87 CARD8 type; /* X_Reply */
88 BYTE state; /* Off, On */
89 CARD16 sequenceNumber B16;
90 CARD32 length B32;
91 Window window B32;
92 CARD32 tilOrSince B32;
93 CARD32 idle B32;
94 CARD32 eventMask B32;
95 BYTE kind; /* Blanked, Internal, External */
96 CARD8 pad0;
97 CARD16 pad1 B16;
98 CARD32 pad2 B32;
99} xScreenSaverQueryInfoReply;
100#define sz_xScreenSaverQueryInfoReply 32
101
102#define X_ScreenSaverSelectInput 2
103
104typedef struct _ScreenSaverSelectInput {
105 CARD8 reqType; /* always ScreenSaverReqCode */
106 CARD8 saverReqType; /* always X_ScreenSaverSelectInput */
107 CARD16 length B16;
108 Drawable drawable B32;
109 CARD32 eventMask B32;
110} xScreenSaverSelectInputReq;
111#define sz_xScreenSaverSelectInputReq 12
112
113#define X_ScreenSaverSetAttributes 3
114
115typedef struct _ScreenSaverSetAttributes {
116 CARD8 reqType; /* always ScreenSaverReqCode */
117 CARD8 saverReqType; /* always X_ScreenSaverSetAttributes */
118 CARD16 length B16;
119 Drawable drawable B32;
120 INT16 x B16, y B16;
121 CARD16 width B16, height B16, borderWidth B16;
122 BYTE c_class;
123 CARD8 depth;
124 VisualID visualID B32;
125 CARD32 mask B32;
126} xScreenSaverSetAttributesReq;
127#define sz_xScreenSaverSetAttributesReq 28
128
129#define X_ScreenSaverUnsetAttributes 4
130
131typedef struct _ScreenSaverUnsetAttributes {
132 CARD8 reqType; /* always ScreenSaverReqCode */
133 CARD8 saverReqType; /* always X_ScreenSaverUnsetAttributes */
134 CARD16 length B16;
135 Drawable drawable B32;
136} xScreenSaverUnsetAttributesReq;
137#define sz_xScreenSaverUnsetAttributesReq 8
138
139typedef struct _ScreenSaverNotify {
140 CARD8 type; /* always eventBase + ScreenSaverNotify */
141 BYTE state; /* off, on, cycle */
142 CARD16 sequenceNumber B16;
143 Time timestamp B32;
144 Window root B32;
145 Window window B32; /* screen saver window */
146 BYTE kind; /* blanked, internal, external */
147 BYTE forced;
148 CARD16 pad0 B16;
149 CARD32 pad1 B32;
150 CARD32 pad2 B32;
151 CARD32 pad3 B32;
152} xScreenSaverNotifyEvent;
153#define sz_xScreenSaverNotifyEvent 32
154
155#undef Window
156#undef Drawable
157#undef Font
158#undef Pixmap
159#undef Cursor
160#undef Colormap
161#undef GContext
162#undef Atom
163#undef VisualID
164#undef Time
165#undef KeyCode
166#undef KeySym
167
168#endif /* _SAVERPROTO_H_ */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette