0023024: Update headers of OCCT files
[occt.git] / src / Aspect / Aspect_FontMapEntry.cdl
CommitLineData
b311480e 1-- Created on: 1993-09-07
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
21
7fd59977 22
23class FontMapEntry from Aspect
24
25 ---Version: 0.0
26
27 ---Purpose: This class defines a fontmap entry.
28 -- A fontmap entry is an association beetwen
29 -- a FontStyle object and an index in the fontmap.
30 ---Keywords:
31 ---Warning:
32 ---References:
33
34uses
35
36 FontStyle from Aspect
37
38raises
39
40 OutOfRange from Standard,
41 BadAccess from Aspect
42
43is
44
45 Create
46 returns FontMapEntry from Aspect;
47 ---Level: Public
48 ---Purpose: Creates an unallocated fontmap entry
49
50 Create ( index : Integer from Standard;
51 style : FontStyle from Aspect)
52 returns FontMapEntry;
53 ---Level: Public
54 ---Purpose: Creates an allocated fontmap entry
55
56 Create ( entry : FontMapEntry from Aspect )
57 returns FontMapEntry
58 ---Level: Public
59 ---Purpose: Creates an allocated fontmap entry.
60 -- Warning: Raises error if the fontmap entry <entry> is unallocated.
61 raises BadAccess from Aspect;
62
63 SetValue ( me: in out; index : Integer from Standard;
64 style : FontStyle from Aspect );
65 ---Level: Public
66 ---Purpose: Sets fontmap entry value and allocates it.
67
68 SetValue ( me: in out; entry : FontMapEntry from Aspect);
69 ---Level: Public
70 ---Purpose: Sets fontmap entry value and allocates it.
71 ---C++: alias operator =
72
73 SetType ( me: in out; Style : FontStyle from Aspect );
74 ---Level: Public
75 ---Purpose: Sets the line style of fontmap entry.
76
77 Type ( me ) returns FontStyle from Aspect
78 ---Warning: Raises error if the fontmap entry is unallocated .
79 raises BadAccess from Aspect;
80 ---C++: return const &
81
82 SetIndex ( me: in out; index : Integer from Standard);
83 ---Level: Public
84 ---Purpose: Sets index value of a fontmap entry.
85
86 Index ( me ) returns Integer from Standard
87 ---Warning: Raises error if the fontmap entry is unallocated .
88 raises BadAccess from Aspect;
89
90 Free ( me : in out );
91 ---Level: Public
92 ---Purpose: Unallocates the fontmap entry.
93
94 IsAllocated ( me ) returns Boolean from Standard;
95 ---Level: Public
96 ---Purpose: Returns True if the fontmap entry is allocated.
97 -- Warning: A fontmap entry is allocated when the font and
98 -- the index is defined.
99
100 Dump( me ) ;
101fields
102
103 MyType : FontStyle from Aspect;
104 MyIndex : Integer from Standard;
105 MyTypeIsDef : Boolean from Standard;
106 MyIndexIsDef : Boolean from Standard;
107
108end FontMapEntry from Aspect;