VirtualBox

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

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

import

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.6 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: xc/include/extensions/saverproto.h,v 3.1 2001/08/01 00:44:35 tsi Exp $ */
30
31#ifndef _SAVERPROTO_H_
32#define _SAVERPROTO_H_
33
34#include <X11/extensions/saver.h>
35
36#define X_ScreenSaverQueryVersion 0
37
38typedef struct _ScreenSaverQueryVersion {
39 CARD8 reqType; /* always ScreenSaverReqCode */
40 CARD8 saverReqType; /* always X_ScreenSaverQueryVersion */
41 CARD16 length B16;
42 CARD8 clientMajor;
43 CARD8 clientMinor;
44 CARD16 unused B16;
45} xScreenSaverQueryVersionReq;
46#define sz_xScreenSaverQueryVersionReq 8
47
48typedef struct {
49 CARD8 type; /* X_Reply */
50 CARD8 unused; /* not used */
51 CARD16 sequenceNumber B16;
52 CARD32 length B32;
53 CARD16 majorVersion B16; /* major version of protocol */
54 CARD16 minorVersion B16; /* minor version of protocol */
55 CARD32 pad0 B32;
56 CARD32 pad1 B32;
57 CARD32 pad2 B32;
58 CARD32 pad3 B32;
59 CARD32 pad4 B32;
60} xScreenSaverQueryVersionReply;
61#define sz_xScreenSaverQueryVersionReply 32
62
63#define X_ScreenSaverQueryInfo 1
64
65typedef struct _ScreenSaverQueryInfo {
66 CARD8 reqType; /* always ScreenSaverReqCode */
67 CARD8 saverReqType; /* always X_ScreenSaverQueryInfo */
68 CARD16 length B16;
69 Drawable drawable B32;
70} xScreenSaverQueryInfoReq;
71#define sz_xScreenSaverQueryInfoReq 8
72
73typedef struct {
74 CARD8 type; /* X_Reply */
75 BYTE state; /* Off, On */
76 CARD16 sequenceNumber B16;
77 CARD32 length B32;
78 Window window B32;
79 CARD32 tilOrSince B32;
80 CARD32 idle B32;
81 CARD32 eventMask B32;
82 BYTE kind; /* Blanked, Internal, External */
83 CARD8 pad0;
84 CARD16 pad1 B16;
85 CARD32 pad2 B32;
86} xScreenSaverQueryInfoReply;
87#define sz_xScreenSaverQueryInfoReply 32
88
89#define X_ScreenSaverSelectInput 2
90
91typedef struct _ScreenSaverSelectInput {
92 CARD8 reqType; /* always ScreenSaverReqCode */
93 CARD8 saverReqType; /* always X_ScreenSaverSelectInput */
94 CARD16 length B16;
95 Drawable drawable B32;
96 CARD32 eventMask B32;
97} xScreenSaverSelectInputReq;
98#define sz_xScreenSaverSelectInputReq 12
99
100#define X_ScreenSaverSetAttributes 3
101
102typedef struct _ScreenSaverSetAttributes {
103 CARD8 reqType; /* always ScreenSaverReqCode */
104 CARD8 saverReqType; /* always X_ScreenSaverSetAttributes */
105 CARD16 length B16;
106 Drawable drawable B32;
107 INT16 x B16, y B16;
108 CARD16 width B16, height B16, borderWidth B16;
109 BYTE c_class;
110 CARD8 depth;
111 VisualID visualID B32;
112 CARD32 mask B32;
113} xScreenSaverSetAttributesReq;
114#define sz_xScreenSaverSetAttributesReq 28
115
116#define X_ScreenSaverUnsetAttributes 4
117
118typedef struct _ScreenSaverUnsetAttributes {
119 CARD8 reqType; /* always ScreenSaverReqCode */
120 CARD8 saverReqType; /* always X_ScreenSaverUnsetAttributes */
121 CARD16 length B16;
122 Drawable drawable B32;
123} xScreenSaverUnsetAttributesReq;
124#define sz_xScreenSaverUnsetAttributesReq 8
125
126typedef struct _ScreenSaverNotify {
127 CARD8 type; /* always eventBase + ScreenSaverNotify */
128 BYTE state; /* off, on, cycle */
129 CARD16 sequenceNumber B16;
130 Time timestamp B32;
131 Window root B32;
132 Window window B32; /* screen saver window */
133 BYTE kind; /* blanked, internal, external */
134 BYTE forced;
135 CARD16 pad0 B16;
136 CARD32 pad1 B32;
137 CARD32 pad2 B32;
138 CARD32 pad3 B32;
139} xScreenSaverNotifyEvent;
140#define sz_xScreenSaverNotifyEvent 32
141
142#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