|
|
|||
Warning, file /include/opencascade/Font_FTLibrary.hxx was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 // Created on: 2013-01-28 0002 // Created by: Kirill GAVRILOV 0003 // Copyright (c) 2013-2014 OPEN CASCADE SAS 0004 // 0005 // This file is part of Open CASCADE Technology software library. 0006 // 0007 // This library is free software; you can redistribute it and/or modify it under 0008 // the terms of the GNU Lesser General Public License version 2.1 as published 0009 // by the Free Software Foundation, with special exception defined in the file 0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT 0011 // distribution for complete text of the license and disclaimer of any warranty. 0012 // 0013 // Alternatively, this file may be used under the terms of Open CASCADE 0014 // commercial license or contractual agreement. 0015 0016 #ifndef Font_FTLibrary_HeaderFile 0017 #define Font_FTLibrary_HeaderFile 0018 0019 #include <Standard_Type.hxx> 0020 #include <Standard_Transient.hxx> 0021 0022 // forward declarations to avoid including of FreeType headers 0023 typedef struct FT_LibraryRec_* FT_Library; 0024 0025 //! Wrapper over FT_Library. Provides access to FreeType library. 0026 class Font_FTLibrary : public Standard_Transient 0027 { 0028 0029 public: 0030 //! Initialize new FT_Library instance. 0031 Standard_EXPORT Font_FTLibrary(); 0032 0033 //! Release FT_Library instance. 0034 Standard_EXPORT ~Font_FTLibrary() override; 0035 0036 //! This method should always return true. 0037 //! @return true if FT_Library instance is valid. 0038 bool IsValid() const { return myFTLib != nullptr; } 0039 0040 //! Access FT_Library instance. 0041 FT_Library Instance() const { return myFTLib; } 0042 0043 private: 0044 FT_Library myFTLib; 0045 0046 private: 0047 Font_FTLibrary(const Font_FTLibrary&) = delete; 0048 Font_FTLibrary& operator=(const Font_FTLibrary&) = delete; 0049 0050 public: 0051 DEFINE_STANDARD_RTTIEXT(Font_FTLibrary, Standard_Transient) // Type definition 0052 }; 0053 0054 #endif // _Font_FTLibrary_H__
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|