7fd59977 |
1 | -- |
2 | -- File: Xw_TypeMap.cdl |
3 | -- Created: 24/08/93 |
4 | -- Author: GG |
5 | -- |
6 | ---Copyright: MatraDatavision 1993 |
7 | -- |
8 | |
9 | class TypeMap from Xw inherits Transient |
10 | |
11 | ---Version: 0.0 |
12 | |
13 | ---Purpose: This class defines a TypeMap object. |
14 | |
15 | ---Keywords: |
16 | ---Warning: |
17 | ---References: |
18 | |
19 | uses |
20 | |
21 | TypeMap from Aspect, |
22 | TypeMapEntry from Aspect, |
23 | LineStyle from Aspect |
24 | |
25 | raises |
26 | |
27 | TypeMapDefinitionError from Aspect, |
28 | BadAccess from Aspect |
29 | |
30 | is |
31 | |
32 | Create |
33 | returns mutable TypeMap from Xw |
34 | is protected ; |
35 | ---Level: Internal |
36 | |
37 | Create ( Connexion : CString from Standard ) |
38 | returns mutable TypeMap from Xw |
39 | ---Level: Public |
40 | ---Purpose: Creates a TypeMap with unallocated TypeMapEntry. |
41 | -- Warning: Raises if TypeMap creation failed according |
42 | -- to the supported hardware |
43 | raises TypeMapDefinitionError from Aspect ; |
44 | |
45 | SetEntry ( me : mutable ; |
46 | Entry : TypeMapEntry from Aspect ) |
47 | ---Level: Public |
48 | ---Purpose: Modifies an entry already defined or Add the Entry |
49 | -- in the type map <me> if it don't exist. |
50 | -- Warning: Raises if TypeMap size is exceeded, |
51 | -- or TypeMap is not defined properly, |
52 | -- or TypeMapEntry Index is out of range according |
53 | -- to the supported hardware |
54 | raises BadAccess from Aspect is virtual; |
55 | |
56 | SetEntries ( me : mutable ; |
57 | Typemap : TypeMap from Aspect ) |
58 | ---Level: Public |
59 | ---Purpose: Modifies all entries from a new Typemap |
60 | -- Warning: Raises if TypeMap size is exceeded, |
61 | -- or TypeMap is not defined properly, |
62 | -- or One of new TypeMapEntry Index is out of range according |
63 | -- to the supported hardware |
64 | raises BadAccess from Aspect is virtual; |
65 | |
66 | Destroy ( me : mutable ) is virtual; |
67 | ---Level: Public |
68 | ---Purpose: Destroies the Typemap |
69 | ---C++: alias ~ |
70 | |
71 | ---------------------------- |
72 | -- Category: Inquire methods |
73 | ---------------------------- |
74 | |
75 | FreeTypes ( me ) |
76 | returns Integer from Standard |
77 | ---Level: Public |
78 | ---Purpose: Returns the Number of Free Types in the Typemap |
79 | -- depending of the HardWare |
80 | -- Warning: Raises if TypeMap is not defined properly |
81 | raises BadAccess from Aspect is static; |
82 | |
83 | ExtendedTypeMap ( me ) |
84 | returns Address from Standard |
85 | is static protected ; |
86 | ---Level: Internal |
87 | ---Purpose: Returns extended data typemap structure pointer. |
88 | ---Category: Inquire methods |
89 | |
90 | |
91 | fields |
92 | |
93 | MyExtendedDisplay : Address from Standard ; |
94 | MyExtendedTypeMap : Address from Standard ; |
95 | |
96 | friends |
97 | |
98 | class GraphicDevice from Xw |
99 | |
100 | end TypeMap ; |