Integration of OCCT 6.5.0 from SVN
[occt.git] / src / Aspect / Aspect_FontMap.cdl
CommitLineData
7fd59977 1--
2-- File: Aspect_FontMap.cdl
3-- Created: 07/09/93
4-- Author: GG
5--
6---Copyright: MatraDatavision 1993
7--
8
9class FontMap from Aspect inherits TShared from MMgt
10
11 ---Version: 0.0
12
13 ---Purpose: This class defines a FontMap object.
14 ---Keywords:
15 ---Warning:
16 ---References:
17uses
18 FontStyle from Aspect,
19 FontMapEntry from Aspect,
20 SequenceOfFontMapEntry from Aspect
21
22raises
23 BadAccess from Aspect
24
25is
26
27 Create returns mutable FontMap from Aspect;
28
29 AddEntry (me : mutable; AnEntry : FontMapEntry from Aspect)
30 ---Level: Public
31 ---Purpose: Adds an entry in the font map <me>.
32 -- Warning: Raises BadAccess if FontMap size is exceeded.
33 raises BadAccess from Aspect;
34
35 AddEntry (me : mutable; aStyle : FontStyle from Aspect)
36 returns Integer from Standard;
37 ---Level: Public
38 ---Purpose: Search an identical font style entry in the font map <me>
39 -- and returns the FontMapEntry Index if exist.
40 -- Or add a new entry and returns the computed FontMapEntry index used.
41
42 Size( me ) returns Integer from Standard is static;
43 ---Level: Public
44 ---Purpose: Returns the Allocated fontmap Size
45
46 Index( me ; aFontmapIndex : Integer ) returns Integer from Standard
47 ---Level: Public
48 ---Purpose: Returns the FontMapEntry.Index of the FontMap
49 -- at rank <aFontmapIndex> .
50 raises BadAccess from Aspect is static;
51 ---Trigger: Raises BadAccess if the index less than 1 or
52 -- greater than Size.
53
54 Dump( me ) ;
55
56 Entry ( me ;
57 AnIndex : Integer from Standard )
58 returns FontMapEntry from Aspect
59 ---Level: Public
60 ---Purpose: Returns the Font map entry with the index <AnIndex>.
61 -- Warning: Raises BadAccess if the index less than 1
62 -- or greater than Size.
63 raises BadAccess from Aspect is static;
64
65fields
66
67 mydata : SequenceOfFontMapEntry from Aspect is protected;
68
69end FontMap ;