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, |
41 | MFT, |
42 | TColStd |
43 | |
44 | is |
45 | |
46 | -------------------- |
47 | -- Category: Classes |
48 | -------------------- |
49 | |
50 | class Driver; |
51 | ---Purpose: Creates the X driver. |
52 | -- Activates the c routines of the X interface. |
53 | ---Category: Classes |
54 | |
55 | class Window; |
56 | ---Purpose: Creates the X Window drawable. |
57 | ---Category: Classes |
58 | |
7fd59977 |
59 | class ColorMap; |
60 | ---Purpose: Creates the X Colormap |
61 | ---Category: Classes |
62 | |
63 | class TypeMap; |
64 | ---Purpose: Creates the X Typemap |
65 | ---Category: Classes |
66 | |
67 | class WidthMap; |
68 | ---Purpose: Creates the X Widthmap |
69 | ---Category: Classes |
70 | |
71 | class FontMap; |
72 | ---Purpose: Creates the X Fontmap |
73 | ---Category: Classes |
74 | |
75 | class MarkMap; |
76 | ---Purpose: Creates the X Markmap |
77 | ---Category: Classes |
78 | |
79 | class GraphicDevice; |
80 | ---Purpose: Creates the X Device (Connexion & Visual) |
81 | ---Category: Classes |
82 | |
83 | class IconBox; |
84 | ---Purpose: Creates the X Icon Box |
85 | ---Category: Classes |
86 | |
87 | class TextManager; |
88 | ---Purpose: Creates a text manager for MFT fonts. |
89 | ---Category: Classes |
90 | |
91 | ------------------------- |
92 | -- Category: Enumerations |
93 | ------------------------- |
94 | |
95 | enumeration WindowQuality is WQ_3DQUALITY, |
96 | WQ_PICTUREQUALITY, |
97 | WQ_DRAWINGQUALITY, |
98 | WQ_SAMEQUALITY, |
99 | WQ_TRANSPARENT, |
100 | WQ_OVERLAY |
101 | end WindowQuality ; |
102 | ---Purpose: Definition of the Window graphic quality |
103 | |
104 | enumeration TypeOfVisual is TOV_STATICGRAY, |
105 | TOV_GRAYSCALE, |
106 | TOV_STATICCOLOR, |
107 | TOV_PSEUDOCOLOR, |
108 | TOV_TRUECOLOR, |
109 | TOV_DIRECTCOLOR, |
110 | TOV_DEFAULT, |
111 | TOV_PREFERRED_PSEUDOCOLOR, |
112 | TOV_PREFERRED_TRUECOLOR, |
113 | TOV_PREFERRED_OVERLAY, |
114 | TOV_OVERLAY |
115 | end TypeOfVisual from Xw; |
116 | ---Purpose: Definition of the visual type |
117 | |
118 | enumeration TypeOfMapping is TOM_HARDRAMP, |
119 | TOM_SIMPLERAMP, |
120 | TOM_BESTRAMP, |
121 | TOM_COLORCUBE, |
122 | TOM_READONLY |
123 | end TypeOfMapping from Xw; |
124 | ---Purpose: Definition of the colormap type |
125 | |
126 | --------------------------------- |
127 | -- Category: Instantiated classes |
128 | --------------------------------- |
129 | |
130 | class ListOfMFTFonts instantiates |
131 | Array1 from TCollection (FontManager from MFT); |
132 | class HListOfMFTFonts instantiates |
133 | HArray1 from TCollection (FontManager from MFT, ListOfMFTFonts); |
134 | |
135 | ----------------------------- |
136 | -- Category: Trace management |
137 | ----------------------------- |
138 | |
139 | SetTrace( TraceLevel,ErrorLevel : Integer ) ; |
140 | ---Purpose: Global Trace Level for Maintenance Only |
141 | ---Category: Trace management |
142 | |
143 | TraceLevel returns Integer is private ; |
144 | ---Purpose: Return current global Trace level . |
145 | ---Category: Trace management |
146 | |
147 | ErrorLevel returns Integer is private ; |
148 | ---Purpose: Return current global Error level . |
149 | ---Category: Trace management |
150 | |
151 | end Xw; |