0023663: Removing 2D viewer library
[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     Quantity,
33     TCollection,
34     TColStd,
35     TShort,
36     MMgt,
37     OSD
38
39  is
40
41
42         -----------------------
43         -- Category: Exceptions
44         -----------------------
45
46
47     exception ClassDefinitionError inherits ConstructionError;
48         ---Category: Exceptions
49
50
51         --------------------
52         -- Category: Classes
53         --------------------
54
55
56     class GraphicDevice;
57         ---Purpose:  Creates the graphic device associated with DISPLAY.
58         ---Category: Classes
59
60     class Window;
61         ---Purpose:  Creates the Window drawable.
62         ---Category: Classes
63
64     class WClass;
65         ---Purpose:  Creates a Windows NT window class.
66         ---Category: Classes
67
68     class IconBox;
69         ---Purpose:  Creates the Icon Box window.
70         ---Category: Classes
71
72     class ImageManager;
73         ---Purpose:  Creates and manages images and/or icons.
74         ---Category: Classes
75
76     class Image;
77         ---Purpose:  Defines the class
78         ---Category: Classes
79
80     class Icon;
81         ---Purpose:  Defines the class
82         ---Category: Classes
83
84         ---------------------------
85         -- Category: Enumerations
86         ---------------------------
87
88     enumeration OrientationType is
89
90         OT_PORTRAIT,
91         OT_LANDSCAPE
92
93     end OrientationType;
94 ---Purpose: Portrait/landscape orientation.
95     enumeration TypeOfImage is
96
97         TOI_BMP,         --Windows NT's device independent bitmap
98         TOI_XWD,         --X windows's image format
99         TOI_GIF          --CompuServe's Graphic Interchange Format
100
101     end TypeOfImage;
102
103
104         ---------------------------
105         -- Category: Imported types
106         ---------------------------
107
108
109     imported Long;
110         ---Purpose:  Defines a Windows NT LONG type.
111         ---Category: Imported types
112
113     imported Dword;
114         ---Purpose:  Defines a Windows NT DWORD type.
115         ---Category: Imported types
116
117     imported Uint;
118         ---Purpose:  Defines a Windows NT UINT type.
119         ---Category: Imported types
120
121     imported LogFont;
122         ---Purpose:  Defines a Windows NT LOGFONT type.
123         ---Category: Imported types
124
125     imported ColorRef;
126         ---Purpose:  Defines a Windows NT COLORREF type.
127         ---Category: Imported types
128
129     imported WindowData;
130         ---Purpose:  Defines additional window data type.
131         ---Category: Imported types
132
133
134         ---------------------------------
135         -- Category: Pointers
136         ---------------------------------
137
138     pointer WindowPtr to Window from WNT;
139
140         ---------------------------------
141         -- Category: Instantiated classes
142         ---------------------------------
143
144     class ColorTable instantiates
145      Array1 from TCollection ( ColorRef from WNT );
146
147     class HColorTable instantiates
148      HArray1 from TCollection ( ColorRef from WNT, ColorTable from WNT );
149
150     class SequenceOfImage instantiates
151      Sequence from TCollection ( Image from WNT );
152
153 end WNT;