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
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.
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.
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.
21 -- Modifications: DCB at March 1998 Porting MFT for Windows NT (95)
22 -- PLOTNIKOV Eugeny at July 1998 (BUC60286)
26 ---Purpose: This package contains common Windows NT graphics interface.
44 -----------------------
45 -- Category: Exceptions
46 -----------------------
49 exception ClassDefinitionError inherits ConstructionError;
50 ---Category: Exceptions
52 exception FontMapEntryDefinitionError inherits ConstructionError;
53 ---Category: Exceptions
62 ---Purpose: Creates the graphic device associated with DISPLAY.
66 ---Purpose: Creates the window driver.
70 ---Purpose: Creates the device driver ( for printing/plotting )
74 ---Purpose: Creates the Window drawable.
78 ---Purpose: Creates a Windows NT window class.
82 ---Purpose: Creates the Icon Box window.
86 ---Purpose: Defines correspondence between FontMapEntry from
87 -- Aspect and Windows NT font handle.
91 ---Purpose: Creates and manages images and/or icons.
95 ---Purpose: Defines the class
99 ---Purpose: Defines the class
103 ---Purpose: Defines the class for text drawing with MFT
107 ---------------------------
108 -- Category: Enumerations
109 ---------------------------
111 enumeration OrientationType is
117 ---Purpose: Portrait/landscape orientation.
118 enumeration TypeOfImage is
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
127 ---------------------------
128 -- Category: Imported types
129 ---------------------------
133 ---Purpose: Defines a Windows NT LONG type.
134 ---Category: Imported types
137 ---Purpose: Defines a Windows NT DWORD type.
138 ---Category: Imported types
141 ---Purpose: Defines a Windows NT UINT type.
142 ---Category: Imported types
145 ---Purpose: Defines a Windows NT LOGFONT type.
146 ---Category: Imported types
149 ---Purpose: Defines a Windows NT COLORREF type.
150 ---Category: Imported types
153 ---Purpose: Defines additional window data type.
154 ---Category: Imported types
157 ---------------------------------
158 -- Category: Pointers
159 ---------------------------------
161 pointer WindowPtr to Window from WNT;
163 ---------------------------------
164 -- Category: Instantiated classes
165 ---------------------------------
167 class ColorTable instantiates
168 Array1 from TCollection ( ColorRef from WNT );
170 class HColorTable instantiates
171 HArray1 from TCollection ( ColorRef from WNT, ColorTable from WNT );
173 class FontTable instantiates
174 Array1 from TCollection ( FontMapEntry from WNT );
176 class HFontTable instantiates
177 HArray1 from TCollection (
178 FontMapEntry from WNT,
182 class SequenceOfImage instantiates
183 Sequence from TCollection ( Image from WNT );
185 ---------------------------------
186 -- Changes for MFT Text drawing
187 ---------------------------------
188 class ListOfMFTFonts instantiates
189 Array1 from TCollection (FontManager from MFT);
191 class HListOfMFTFonts instantiates
192 HArray1 from TCollection (FontManager from MFT, ListOfMFTFonts);