0023414: Remove deprecated classes Xw_PixMap and WNT_PixMap
[occt.git] / src / WNT / WNT.cdl
1 -- Created on: 1996-01-23
2 -- Created by: s:       LAVNIKOV Alexey, PLOTNIKOV Eugeny & CHABROVSKY Dmitry
3 -- Copyright (c) 1996-1999 Matra Datavision
4 -- Copyright (c) 1999-2012 OPEN CASCADE SAS
5 --
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.
10 --
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.
13 --
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
21 -- Modifications: DCB at March 1998  Porting MFT for Windows NT (95)
22 --                PLOTNIKOV Eugeny at July 1998 (BUC60286)
23
24 package WNT
25
26         ---Purpose: This package contains common Windows NT graphics interface.
27
28  uses
29
30     Aspect,
31     Image,
32     PlotMgt,
33     Quantity,
34     TCollection,
35     TColStd,
36     TShort,
37     MMgt,
38     OSD,
39     MFT
40
41  is
42
43
44         -----------------------
45         -- Category: Exceptions
46         -----------------------
47
48
49     exception ClassDefinitionError inherits ConstructionError;
50         ---Category: Exceptions
51
52     exception FontMapEntryDefinitionError inherits ConstructionError;
53         ---Category: Exceptions
54
55
56         --------------------
57         -- Category: Classes
58         --------------------
59
60
61     class GraphicDevice;
62         ---Purpose:  Creates the graphic device associated with DISPLAY.
63         ---Category: Classes
64
65     class WDriver;
66         ---Purpose:  Creates the window driver.
67         ---Category: Classes
68
69     class DDriver;
70         ---Purpose:  Creates the device driver ( for printing/plotting )
71         ---Category: Classes
72
73     class Window;
74         ---Purpose:  Creates the Window drawable.
75         ---Category: Classes
76
77     class WClass;
78         ---Purpose:  Creates a Windows NT window class.
79         ---Category: Classes
80
81     class IconBox;
82         ---Purpose:  Creates the Icon Box window.
83         ---Category: Classes
84
85     class FontMapEntry;
86         ---Purpose:  Defines correspondence between FontMapEntry from
87         --           Aspect and Windows NT font handle.
88         ---Category: Classes
89
90     class ImageManager;
91         ---Purpose:  Creates and manages images and/or icons.
92         ---Category: Classes
93
94     class Image;
95         ---Purpose:  Defines the class
96         ---Category: Classes
97
98     class Icon;
99         ---Purpose:  Defines the class
100         ---Category: Classes
101
102     class TextManager;
103         ---Purpose:  Defines the class for text drawing with MFT
104         ---Category: Classes
105
106
107         ---------------------------
108         -- Category: Enumerations
109         ---------------------------
110
111     enumeration OrientationType is
112
113         OT_PORTRAIT,
114         OT_LANDSCAPE
115
116     end OrientationType;
117 ---Purpose: Portrait/landscape orientation.
118     enumeration TypeOfImage is
119
120         TOI_BMP,         --Windows NT's device independent bitmap
121         TOI_XWD,         --X windows's image format
122         TOI_GIF          --CompuServe's Graphic Interchange Format
123
124     end TypeOfImage;
125
126
127         ---------------------------
128         -- Category: Imported types
129         ---------------------------
130
131
132     imported Long;
133         ---Purpose:  Defines a Windows NT LONG type.
134         ---Category: Imported types
135
136     imported Dword;
137         ---Purpose:  Defines a Windows NT DWORD type.
138         ---Category: Imported types
139
140     imported Uint;
141         ---Purpose:  Defines a Windows NT UINT type.
142         ---Category: Imported types
143
144     imported LogFont;
145         ---Purpose:  Defines a Windows NT LOGFONT type.
146         ---Category: Imported types
147
148     imported ColorRef;
149         ---Purpose:  Defines a Windows NT COLORREF type.
150         ---Category: Imported types
151
152     imported WindowData;
153         ---Purpose:  Defines additional window data type.
154         ---Category: Imported types
155
156
157         ---------------------------------
158         -- Category: Pointers
159         ---------------------------------
160
161     pointer WindowPtr to Window from WNT;
162
163         ---------------------------------
164         -- Category: Instantiated classes
165         ---------------------------------
166
167     class ColorTable instantiates
168      Array1 from TCollection ( ColorRef from WNT );
169
170     class HColorTable instantiates
171      HArray1 from TCollection ( ColorRef from WNT, ColorTable from WNT );
172
173     class FontTable instantiates
174      Array1 from TCollection ( FontMapEntry from WNT );
175
176     class HFontTable instantiates
177      HArray1 from TCollection (
178                    FontMapEntry from WNT,
179                    FontTable    from WNT
180                   );
181
182     class SequenceOfImage instantiates
183      Sequence from TCollection ( Image from WNT );
184
185         ---------------------------------
186     -- Changes for MFT Text drawing
187         ---------------------------------
188           class ListOfMFTFonts instantiates
189                   Array1 from TCollection (FontManager from MFT);
190
191           class HListOfMFTFonts instantiates
192                   HArray1 from TCollection (FontManager from MFT, ListOfMFTFonts);
193
194 end WNT;