Subversion Repositories tendra.SVN

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 7u83 1
#   		 Crown Copyright (c) 1997
2
#   
3
#   This TenDRA(r) Computer Program is subject to Copyright
4
#   owned by the United Kingdom Secretary of State for Defence
5
#   acting through the Defence Evaluation and Research Agency
6
#   (DERA).  It is made available to Recipients with a
7
#   royalty-free licence for its use, reproduction, transfer
8
#   to other parties and amendment for any purpose not excluding
9
#   product development provided that any such use et cetera
10
#   shall be deemed to be acceptance of the following conditions:-
11
#   
12
#       (1) Its Recipients shall ensure that this Notice is
13
#       reproduced upon any copies or amended versions of it;
14
#   
15
#       (2) Any amended version of it shall be clearly marked to
16
#       show both the nature of and the organisation responsible
17
#       for the relevant amendment or amendments;
18
#   
19
#       (3) Its onward transfer from a recipient to another
20
#       party shall be deemed to be that party's acceptance of
21
#       these conditions;
22
#   
23
#       (4) DERA gives no warranty or assurance as to its
24
#       quality or suitability for any purpose and DERA accepts
25
#       no liability whatsoever in relation to any use to which
26
#       it may be put.
27
#
28
# Abstracted from system header
29
 
30
+USE "x5/lib", "X11/Xlib.h" ;
31
 
32
+CONST char *MULTIBUFFER_PROTOCOL_NAME ;
33
+CONST int MULTIBUFFER_MAJOR_VERSION, MULTIBUFFER_MINOR_VERSION ;
34
 
35
+CONST int X_MbufGetBufferVersion, X_MbufCreateImageBuffers ;
36
+CONST int X_MbufDestroyImageBuffers, X_MbufDisplayImageBuffers ;
37
+CONST int X_MbufSetMBufferAttributes, X_MbufGetMBufferAttributes ;
38
+CONST int X_MbufSetBufferAttributes, X_MbufGetBufferAttributes ;
39
+CONST int X_MbufGetBufferInfo, X_MbufCreateStereoWindow ;
40
 
41
+CONST int MultibufferUpdateActionUndefined ;
42
+CONST int MultibufferUpdateActionBackground ;
43
+CONST int MultibufferUpdateActionUntouched ;
44
+CONST int  MultibufferUpdateActionCopied ;
45
 
46
+CONST int MultibufferUpdateHintFrequent, MultibufferUpdateHintIntermittent ;
47
+CONST int MultibufferUpdateHintStatic ;
48
 
49
+CONST int MultibufferWindowUpdateHint, MultibufferBufferEventMask ;
50
 
51
+CONST int MultibufferModeMono, MultibufferModeStereo, MultibufferSideMono ;
52
+CONST int MultibufferSideLeft, MultibufferSideRight ;
53
 
54
+CONST int MultibufferUnclobbered, MultibufferPartiallyClobbered ;
55
+CONST int MultibufferFullyClobbered ;
56
 
57
+CONST long MultibufferClobberNotifyMask, MultibufferUpdateNotifyMask ;
58
 
59
+CONST int MultibufferClobberNotify, MultibufferUpdateNotify ;
60
+CONST int MultibufferNumberEvents ;
61
 
62
+CONST int MultibufferBadBuffer, MultibufferNumberErrors ;
63
 
64
+TYPEDEF XID Multibuffer ;
65
 
66
+FIELD ( struct ) XmbufClobberNotifyEvent {
67
    int type ;
68
    unsigned long serial ;
69
    int send_event ;
70
    Display *display ;
71
    Multibuffer buffer ;
72
    int state ;
73
} ;
74
 
75
+FIELD ( struct ) XmbufUpdateNotifyEvent {
76
    int type ;
77
    unsigned long serial ;
78
    int send_event ;
79
    Display *display ;
80
    Multibuffer buffer ;
81
} ;
82
 
83
+FIELD ( struct ) XmbufWindowAttributes {
84
    int displayed_index ;
85
    int update_action ;
86
    int update_hint ;
87
    int window_mode ;
88
    int nbuffers ;
89
    Multibuffer *buffers ;
90
} ;
91
 
92
+FIELD ( struct ) XmbufSetWindowAttributes {
93
    int update_hint ;
94
} ;
95
 
96
+FIELD ( struct ) XmbufBufferAttributes {
97
    Window window ;
98
    unsigned long event_mask ;
99
    int buffer_index ;
100
    int side ;
101
} ;
102
 
103
+FIELD ( struct ) XmbufSetBufferAttributes {
104
    unsigned long event_mask ;
105
} ;
106
 
107
+FIELD ( struct ) XmbufBufferInfo {
108
    VisualID visualid ;
109
    int max_buffers ;
110
    int depth ;
111
} ;
112
 
113
+FUNC Bool XmbufQueryExtension ( Display *, int *, int * ) ;
114
+FUNC Status XmbufGetVersion ( Display *, int *, int * ) ;
115
+FUNC int XmbufCreateBuffers ( Display *, Window, int, int, int,
116
    Multibuffer * ) ;
117
+FUNC void XmbufDestroyBuffers ( Display *, Window ) ;
118
+FUNC void XmbufDisplayBuffers ( Display *, int, Multibuffer *, int, int ) ;
119
+FUNC Status XmbufGetWindowAttributes ( Display *, Window,
120
    XmbufWindowAttributes * ) ;
121
+FUNC void XmbufChangeWindowAttributes ( Display *, Window, unsigned long,
122
    XmbufSetWindowAttributes * ) ;
123
+FUNC Status XmbufGetBufferAttributes ( Display *, Multibuffer,
124
    XmbufBufferAttributes * ) ;
125
+FUNC void XmbufChangeBufferAttributes ( Display *, Multibuffer,
126
    unsigned long, XmbufSetBufferAttributes * ) ;
127
+FUNC Status XmbufGetScreenInfo ( Display *, Drawable, int *,
128
    XmbufBufferInfo **, int *, XmbufBufferInfo ** ) ;
129
+FUNC Window XmbufCreateStereoWindow ( Display *, Window, int, int,
130
    unsigned int, unsigned int, unsigned int, int, unsigned int,
131
    Visual *, unsigned long, XSetWindowAttributes *, Multibuffer *,
132
    Multibuffer * ) ;