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)
23 -- VKH at October 1999 (class PixMap added)
27 ---Purpose: This package contains common Windows NT graphics interface.
45 -----------------------
46 -- Category: Exceptions
47 -----------------------
50 exception ClassDefinitionError inherits ConstructionError;
51 ---Category: Exceptions
53 exception FontMapEntryDefinitionError inherits ConstructionError;
54 ---Category: Exceptions
63 ---Purpose: Creates the graphic device associated with DISPLAY.
67 ---Purpose: Creates the window driver.
71 ---Purpose: Creates the device driver ( for printing/plotting )
75 ---Purpose: Creates the Window drawable.
79 ---Purpose: Creates a windows bitmap
83 ---Purpose: Creates a Windows NT window class.
87 ---Purpose: Creates the Icon Box window.
91 ---Purpose: Defines correspondence between FontMapEntry from
92 -- Aspect and Windows NT font handle.
96 ---Purpose: Creates and manages images and/or icons.
100 ---Purpose: Defines the class
104 ---Purpose: Defines the class
108 ---Purpose: Defines the class for text drawing with MFT
112 ---------------------------
113 -- Category: Enumerations
114 ---------------------------
116 enumeration OrientationType is
122 ---Purpose: Portrait/landscape orientation.
123 enumeration TypeOfImage is
125 TOI_BMP, --Windows NT's device independent bitmap
126 TOI_XWD, --X windows's image format
127 TOI_GIF --CompuServe's Graphic Interchange Format
132 ---------------------------
133 -- Category: Imported types
134 ---------------------------
138 ---Purpose: Defines a Windows NT LONG type.
139 ---Category: Imported types
142 ---Purpose: Defines a Windows NT DWORD type.
143 ---Category: Imported types
146 ---Purpose: Defines a Windows NT UINT type.
147 ---Category: Imported types
150 ---Purpose: Defines a Windows NT LOGFONT type.
151 ---Category: Imported types
154 ---Purpose: Defines a Windows NT COLORREF type.
155 ---Category: Imported types
158 ---Purpose: Defines additional window data type.
159 ---Category: Imported types
162 ---------------------------------
163 -- Category: Pointers
164 ---------------------------------
166 pointer WindowPtr to Window from WNT;
168 ---------------------------------
169 -- Category: Instantiated classes
170 ---------------------------------
172 class ColorTable instantiates
173 Array1 from TCollection ( ColorRef from WNT );
175 class HColorTable instantiates
176 HArray1 from TCollection ( ColorRef from WNT, ColorTable from WNT );
178 class FontTable instantiates
179 Array1 from TCollection ( FontMapEntry from WNT );
181 class HFontTable instantiates
182 HArray1 from TCollection (
183 FontMapEntry from WNT,
187 class SequenceOfImage instantiates
188 Sequence from TCollection ( Image from WNT );
190 ---------------------------------
191 -- Changes for MFT Text drawing
192 ---------------------------------
193 class ListOfMFTFonts instantiates
194 Array1 from TCollection (FontManager from MFT);
196 class HListOfMFTFonts instantiates
197 HArray1 from TCollection (FontManager from MFT, ListOfMFTFonts);