b311480e |
1 | -- Created on: 1993-08-24 |
2 | -- Created by: GG |
3 | -- Copyright (c) 1993-1999 Matra Datavision |
4 | -- Copyright (c) 1999-2012 OPEN CASCADE SAS |
7fd59977 |
5 | -- |
b311480e |
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. |
7fd59977 |
10 | -- |
b311480e |
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. |
7fd59977 |
13 | -- |
b311480e |
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 | |
7fd59977 |
21 | |
22 | class FontMap from Xw inherits Transient |
23 | |
24 | ---Version: 0.0 |
25 | |
26 | ---Purpose: This class defines a FontMap object. |
27 | |
28 | ---Keywords: |
29 | ---Warning: |
30 | ---References: |
31 | |
32 | uses |
33 | |
34 | FontMap from Aspect, |
35 | FontMapEntry from Aspect |
36 | |
37 | raises |
38 | |
39 | FontMapDefinitionError from Aspect, |
40 | BadAccess from Aspect |
41 | |
42 | is |
43 | |
44 | Create |
45 | returns mutable FontMap from Xw |
46 | is protected; |
47 | ---Level: Internal |
48 | |
49 | Create (Connexion : CString from Standard) |
50 | returns mutable FontMap from Xw |
51 | ---Level: Public |
52 | ---Purpose: Creates a FontMap with an unallocated FontMapEntry. |
53 | raises FontMapDefinitionError from Aspect; |
54 | ---Error if FontMap creation failed according |
55 | -- to the supported hardware |
56 | |
57 | SetEntry (me : mutable; |
58 | Entry : FontMapEntry from Aspect) |
59 | ---Level: Public |
60 | ---Purpose: Modifies an entry already defined or adds <Entry> |
61 | -- in the font map <me> if it don't exist. |
62 | raises BadAccess from Aspect is virtual; |
63 | ---Purpose: Warning if FontMap size is exceeded. |
64 | -- or FontMap is not defined properly |
65 | -- or FontMapEntry Index is out of range according |
66 | -- to the supported hardware |
67 | |
68 | SetEntries (me : mutable; |
69 | Fontmap : FontMap from Aspect) |
70 | ---Level: Public |
71 | ---Purpose: Modifies all entries of <me> from the new Fontmap. |
72 | raises BadAccess from Aspect is virtual; |
73 | ---Purpose: Warning if FontMap size is exceeded. |
74 | -- or FontMap is not defined properly |
75 | -- or One of new FontMapEntry Index is out of range according |
76 | -- to the supported hardware |
77 | |
78 | Destroy (me : mutable) is virtual; |
79 | ---Level: Public |
80 | ---Purpose: Destroies the Fontmap |
81 | ---C++: alias ~ |
82 | |
83 | ---------------------------- |
84 | -- Category: Inquire methods |
85 | ---------------------------- |
86 | |
87 | FreeFonts (me) |
88 | returns Integer from Standard |
89 | ---Level: Public |
90 | ---Purpose: Returns the number of Free Fonts in the Fontmap |
91 | -- depending of the HardWare |
92 | raises BadAccess from Aspect is static; |
93 | ---Error If FontMap is not defined properly |
94 | |
95 | ExtendedFontMap (me) |
96 | returns Address from Standard |
97 | is static protected; |
98 | ---Level: Public |
99 | ---Purpose: Returns extended data fontmap structure pointer. |
100 | ---Category: Inquire methods |
101 | |
102 | |
103 | fields |
104 | |
105 | MyExtendedDisplay : Address from Standard; |
106 | MyExtendedFontMap : Address from Standard; |
107 | |
7fd59977 |
108 | end FontMap; |