Files
OCCT/src/Aspect/Aspect_FontMap.cdl
abv d5f74e42d6 0024624: Lost word in license statement in source files
License statement text corrected; compiler warnings caused by Bison 2.41 disabled for MSVC; a few other compiler warnings on 54-bit Windows eliminated by appropriate type cast
Wrong license statements corrected in several files.
Copyright and license statements added in XSD and GLSL files.
Copyright year updated in some files.
Obsolete documentation files removed from DrawResources.
2014-02-20 16:15:17 +04:00

78 lines
2.5 KiB
Plaintext

-- Created on: 1993-09-07
-- Created by: GG
-- Copyright (c) 1993-1999 Matra Datavision
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
--
-- This file is part of Open CASCADE Technology software library.
--
-- This library is free software; you can redistribute it and/or modify it under
-- the terms of the GNU Lesser General Public License version 2.1 as published
-- by the Free Software Foundation, with special exception defined in the file
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-- distribution for complete text of the license and disclaimer of any warranty.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class FontMap from Aspect inherits TShared from MMgt
---Version: 0.0
---Purpose: This class defines a FontMap object.
---Keywords:
---Warning:
---References:
uses
FontStyle from Aspect,
FontMapEntry from Aspect,
SequenceOfFontMapEntry from Aspect
raises
BadAccess from Aspect
is
Create returns mutable FontMap from Aspect;
AddEntry (me : mutable; AnEntry : FontMapEntry from Aspect)
---Level: Public
---Purpose: Adds an entry in the font map <me>.
-- Warning: Raises BadAccess if FontMap size is exceeded.
raises BadAccess from Aspect;
AddEntry (me : mutable; aStyle : FontStyle from Aspect)
returns Integer from Standard;
---Level: Public
---Purpose: Search an identical font style entry in the font map <me>
-- and returns the FontMapEntry Index if exist.
-- Or add a new entry and returns the computed FontMapEntry index used.
Size( me ) returns Integer from Standard is static;
---Level: Public
---Purpose: Returns the Allocated fontmap Size
Index( me ; aFontmapIndex : Integer ) returns Integer from Standard
---Level: Public
---Purpose: Returns the FontMapEntry.Index of the FontMap
-- at rank <aFontmapIndex> .
raises BadAccess from Aspect is static;
---Trigger: Raises BadAccess if the index less than 1 or
-- greater than Size.
Dump( me ) ;
Entry ( me ;
AnIndex : Integer from Standard )
returns FontMapEntry from Aspect
---Level: Public
---Purpose: Returns the Font map entry with the index <AnIndex>.
-- Warning: Raises BadAccess if the index less than 1
-- or greater than Size.
raises BadAccess from Aspect is static;
fields
mydata : SequenceOfFontMapEntry from Aspect is protected;
end FontMap ;