c3311d5bf9f2ca3a24c1929787cf7b892703aad5
[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     class Window;
56         ---Purpose:  Creates the Window drawable.
57         ---Category: Classes
58
59     class WClass;
60         ---Purpose:  Creates a Windows NT window class.
61         ---Category: Classes
62
63     class Image;
64         ---Purpose:  Defines the class
65         ---Category: Classes
66
67         ---------------------------
68         -- Category: Enumerations
69         ---------------------------
70
71     enumeration OrientationType is
72
73         OT_PORTRAIT,
74         OT_LANDSCAPE
75
76     end OrientationType;
77 ---Purpose: Portrait/landscape orientation.
78     enumeration TypeOfImage is
79
80         TOI_BMP,         --Windows NT's device independent bitmap
81         TOI_XWD,         --X windows's image format
82         TOI_GIF          --CompuServe's Graphic Interchange Format
83
84     end TypeOfImage;
85
86
87         ---------------------------
88         -- Category: Imported types
89         ---------------------------
90
91
92     imported Long;
93         ---Purpose:  Defines a Windows NT LONG type.
94         ---Category: Imported types
95
96     imported Dword;
97         ---Purpose:  Defines a Windows NT DWORD type.
98         ---Category: Imported types
99
100     imported Uint;
101         ---Purpose:  Defines a Windows NT UINT type.
102         ---Category: Imported types
103
104     imported LogFont;
105         ---Purpose:  Defines a Windows NT LOGFONT type.
106         ---Category: Imported types
107
108     imported ColorRef;
109         ---Purpose:  Defines a Windows NT COLORREF type.
110         ---Category: Imported types
111
112     imported WindowData;
113         ---Purpose:  Defines additional window data type.
114         ---Category: Imported types
115
116
117         ---------------------------------
118         -- Category: Pointers
119         ---------------------------------
120
121     pointer WindowPtr to Window from WNT;
122
123         ---------------------------------
124         -- Category: Instantiated classes
125         ---------------------------------
126
127     class ColorTable instantiates
128      Array1 from TCollection ( ColorRef from WNT );
129
130     class HColorTable instantiates
131      HArray1 from TCollection ( ColorRef from WNT, ColorTable from WNT );
132
133     class SequenceOfImage instantiates
134      Sequence from TCollection ( Image from WNT );
135
136 end WNT;