b311480e |
1 | -- Created on: 1993-06-24 |
2 | -- Created by: GG |
3 | -- Copyright (c) 1993-1999 Matra Datavision |
4 | -- Copyright (c) 1999-2012 OPEN CASCADE SAS |
7fd59977 |
5 | -- |
b311480e |
6 | -- The content of this file is subject to the Open CASCADE Technology Public |
7 | -- License Version 6.5 (the "License"). You may not use the content of this file |
8 | -- except in compliance with the License. Please obtain a copy of the License |
9 | -- at http://www.opencascade.org and read it completely before using this file. |
7fd59977 |
10 | -- |
b311480e |
11 | -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its |
12 | -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. |
7fd59977 |
13 | -- |
b311480e |
14 | -- The Original Code and all software distributed under the License is |
15 | -- distributed on an "AS IS" basis, without warranty of any kind, and the |
16 | -- Initial Developer hereby disclaims all such warranties, including without |
17 | -- limitation, any warranties of merchantability, fitness for a particular |
18 | -- purpose or non-infringement. Please see the License for the specific terms |
19 | -- and conditions governing the rights and limitations under the License. |
20 | |
7fd59977 |
21 | |
22 | package Xw |
23 | |
24 | ---Version: |
25 | |
26 | ---Purpose: This package contains the common X graphic interface. |
27 | -- Warning: All the interface is described by a set of C routines. |
28 | -- All these C routines are stored in the library |
29 | -- of this package. |
30 | |
31 | ---References: |
32 | |
33 | uses |
34 | |
35 | TCollection, |
36 | TShort, |
37 | Aspect, |
38 | Quantity, |
39 | Image, |
40 | TColQuantity, |
128cc8df |
41 | TColStd |
7fd59977 |
42 | |
43 | is |
44 | |
45 | -------------------- |
46 | -- Category: Classes |
47 | -------------------- |
48 | |
7fd59977 |
49 | class Window; |
50 | ---Purpose: Creates the X Window drawable. |
51 | ---Category: Classes |
52 | |
7fd59977 |
53 | class ColorMap; |
54 | ---Purpose: Creates the X Colormap |
55 | ---Category: Classes |
56 | |
57 | class TypeMap; |
58 | ---Purpose: Creates the X Typemap |
59 | ---Category: Classes |
60 | |
61 | class WidthMap; |
62 | ---Purpose: Creates the X Widthmap |
63 | ---Category: Classes |
64 | |
65 | class FontMap; |
66 | ---Purpose: Creates the X Fontmap |
67 | ---Category: Classes |
68 | |
69 | class MarkMap; |
70 | ---Purpose: Creates the X Markmap |
71 | ---Category: Classes |
72 | |
73 | class GraphicDevice; |
74 | ---Purpose: Creates the X Device (Connexion & Visual) |
75 | ---Category: Classes |
76 | |
77 | class IconBox; |
78 | ---Purpose: Creates the X Icon Box |
79 | ---Category: Classes |
80 | |
7fd59977 |
81 | ------------------------- |
82 | -- Category: Enumerations |
83 | ------------------------- |
84 | |
85 | enumeration WindowQuality is WQ_3DQUALITY, |
86 | WQ_PICTUREQUALITY, |
87 | WQ_DRAWINGQUALITY, |
88 | WQ_SAMEQUALITY, |
89 | WQ_TRANSPARENT, |
90 | WQ_OVERLAY |
91 | end WindowQuality ; |
92 | ---Purpose: Definition of the Window graphic quality |
93 | |
94 | enumeration TypeOfVisual is TOV_STATICGRAY, |
95 | TOV_GRAYSCALE, |
96 | TOV_STATICCOLOR, |
97 | TOV_PSEUDOCOLOR, |
98 | TOV_TRUECOLOR, |
99 | TOV_DIRECTCOLOR, |
100 | TOV_DEFAULT, |
101 | TOV_PREFERRED_PSEUDOCOLOR, |
102 | TOV_PREFERRED_TRUECOLOR, |
103 | TOV_PREFERRED_OVERLAY, |
104 | TOV_OVERLAY |
105 | end TypeOfVisual from Xw; |
106 | ---Purpose: Definition of the visual type |
107 | |
108 | enumeration TypeOfMapping is TOM_HARDRAMP, |
109 | TOM_SIMPLERAMP, |
110 | TOM_BESTRAMP, |
111 | TOM_COLORCUBE, |
112 | TOM_READONLY |
113 | end TypeOfMapping from Xw; |
114 | ---Purpose: Definition of the colormap type |
115 | |
7fd59977 |
116 | ----------------------------- |
117 | -- Category: Trace management |
118 | ----------------------------- |
119 | |
120 | SetTrace( TraceLevel,ErrorLevel : Integer ) ; |
121 | ---Purpose: Global Trace Level for Maintenance Only |
122 | ---Category: Trace management |
123 | |
124 | TraceLevel returns Integer is private ; |
125 | ---Purpose: Return current global Trace level . |
126 | ---Category: Trace management |
127 | |
128 | ErrorLevel returns Integer is private ; |
129 | ---Purpose: Return current global Error level . |
130 | ---Category: Trace management |
131 | |
132 | end Xw; |