DriveHQ Start Menu
Cloud Drive Mapping
Folder Sync
Cloud Backup
True Drop Box
FTP/SFTP Hosting
Group Account
DriveHQ Start Menu
Online File Server
My Storage
|
Manage Shares
|
Publishes
|
Drop Boxes
|
Group Account
WebDAV Drive Mapping
Cloud Drive Home
|
WebDAV Guide
|
Drive Mapping Tool
|
Drive Mapping URL
Complete Data Backup
Backup Guide
|
Online Backup Tool
|
Cloud-to-Cloud Backup
FTP, Email & Web Service
FTP Home
|
FTP Hosting FAQ
|
Email Hosting
|
EmailManager
|
Web Hosting
Help & Resources
About
|
Enterprise Service
|
Partnership
|
Comparisons
|
Support
Quick Links
Security and Privacy
Download Software
Service Manual
Use Cases
Group Account
Online Help
Blog
Contact
Cloud Surveillance
Sign Up
Login
Features
Business Features
Online File Server
FTP Hosting
Cloud Drive Mapping
Cloud File Backup
Email Backup & Hosting
Cloud File Sharing
Folder Synchronization
Group Management
True Drop Box
Full-text Search
AD Integration/SSO
Mobile Access
IP Camera & DVR Solution
More...
Personal Features
Personal Cloud Drive
Backup All Devices
Mobile APPs
Personal Web Hosting
Sub-Account (for Kids)
Home/PC/Kids Monitoring
More...
Software
DriveHQ Drive Mapping Tool
DriveHQ FileManager
DriveHQ Online Backup
DriveHQ Mobile Apps
Pricing
Business Plans & Pricing
Personal Plans & Pricing
Price Comparison with Others
Feature Comparison with Others
Install Mobile App
Sign up
Creating account...
Invalid character in username! Only 0-9, a-z, A-Z, _, -, . allowed.
Username is required!
Invalid email address!
E-mail is required!
Password is required!
Password is invalid!
Password and confirmation do not match.
Confirm password is required!
I accept
Membership Agreement
Please read the Membership Agreement and check "I accept"!
Free Quick Sign-up
Sign-up Page
Log in
Signing in...
Username or e-mail address is required!
Password is required!
Keep me logged in
Quick Login
Forgot Password
Up
Upload
Download
Share
Publish
New Folder
New File
Copy
Cut
Delete
Paste
Rate
Upgrade
Rotate
Effect
Edit
Slide
History
/*********************************************************************** filename: CEGUIFontManager.h created: 21/2/2004 author: Paul D Turner purpose: Defines interface for the FontManager class *************************************************************************/ /*************************************************************************** * Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. ***************************************************************************/ #ifndef _CEGUIFontManager_h_ #define _CEGUIFontManager_h_ #include "CEGUIBase.h" #include "CEGUIString.h" #include "CEGUISingleton.h" #include "CEGUIIteratorBase.h" #include
#if defined(_MSC_VER) # pragma warning(push) # pragma warning(disable : 4275) # pragma warning(disable : 4251) #endif // Start of CEGUI namespace section namespace CEGUI { /*! \brief Class providing a shared library of Font objects to the system. The FontManager is used to create, access, and destroy Font objects. The idea is that the FontManager will function as a central repository for Font objects used within the GUI system, and that those Font objects can be accessed, via a unique name, by any interested party within the system. */ class CEGUIEXPORT FontManager : public Singleton
{ public: /*! \brief Constructor for FontManager objects */ FontManager(void); /*! \brief Destructor for FontManager objects */ ~FontManager(void); /*! \brief Creates a new font from a font definition file, and returns a pointer to the new Font object. \param filename String object containing the filename of a 'font definition file' what will be used to create the new font \param resourceGroup Resource group identifier to pass to the resource provider when loading the font definition file. \return Pointer the the newly created Font object \exception FileIOException thrown if there was some problem accessing or parsing the file \a filename \exception InvalidRequestException thrown if an invalid filename was provided. \exception AlreadyExistsException thrown if a Font already exists with the name specified, or if a font Imageset clashes with one already defined in the system. \exception GenericException thrown if something goes wrong while accessing a true-type font referenced in file \a filename. \exception RendererException thrown if the Renderer can't support a texture large enough to hold the requested glyph imagery. \exception MemoryException thrown if allocation of imagery construction buffer fails. */ Font *createFont(const String& filename, const String& resourceGroup = ""); /*! \brief Creates a new Font based on a true-type font, and returns a pointer to the new Font object. \param type String object containing the type of the font to be created (same as in the "Type" attribute of the font XML). \param name String object containing a unique name for the new font. \param fontname String object containing the name and path of the true-type font to access. \param resourceGroup Resource group identifier to be passed to the resource provider when loading the font definition file. \return Pointer to the newly created Font object. \exception AlreadyExistsException thrown if a Font already exists with the name specified, or if a font Imageset clashes with one already defined in the system. \exception GenericException thrown if something goes wrong while accessing a true-type font referenced in file \a fontname. \exception RendererException thrown if the Renderer can't support a texture large enough to hold the requested glyph imagery. \exception MemoryException thrown if allocation of imagery construction buffer fails. */ Font *createFont (const String &type, const String& name, const String& fontname, const String& resourceGroup = ""); /*! \brief Create a new font object given its type and the XML attributes. \return The new font object or NULL. */ Font *createFont (const String &type, const XMLAttributes& attributes); /*! \brief Destroy's the font with the given name \param name String object containing the name of the font to be destroyed. If the specified font does not exist, nothing happens. \return Nothing */ void destroyFont(const String& name); /*! \brief Destroys the given Font object \param font Pointer to the Font to be destroyed. If no such Font exists, nothing happens. \return Nothing. */ void destroyFont(Font* font); /*! \brief Destroys all Font objects registered in the system \return Nothing */ void destroyAllFonts(void); /*! \brief Checks the existence of a given font. \param name String object holding the name of the Font object to look for. \return true if a Font object named \a name exists in the system, false if no such font exists. */ bool isFontPresent(const String& name) const; /*! \brief Returns a pointer to the font object with the specified name \param name String object containing the name of the Font object to be returned \return Pointer to the requested Font object \exception UnknownObjectException Thrown if no font with the given name exists. */ Font* getFont(const String& name) const; /*! \brief Notify the FontManager of the current (usually new) display resolution. \param size Size object describing the display resolution \return Nothing */ void notifyScreenResolution(const Size& size); /*! \brief Writes a full XML font file for the specified Font to the given OutStream. \param name String holding the name of the Font to be written to the stream. \param out_stream OutStream (std::ostream based) object where data is to be sent. \return Nothing. */ void writeFontToStream(const String& name, OutStream& out_stream) const; private: /************************************************************************* Implementation Data *************************************************************************/ typedef std::map
FontRegistry; FontRegistry d_fonts; public: /************************************************************************* Iterator stuff *************************************************************************/ typedef ConstBaseIterator
FontIterator; /*! \brief Return a FontManager::FontIterator object to iterate over the available Font objects. */ FontIterator getIterator (void) const; }; } // End of CEGUI namespace section #if defined(_MSC_VER) # pragma warning(pop) #endif #endif // end of guard _CEGUIFontManager_h_
CEGUIFontManager.h
Page URL
File URL
Prev
20/76
Next
Download
( 7 KB )
Note: The DriveHQ service banners will NOT be displayed if the file owner is a paid member.
Comments
Total ratings:
0
Average rating:
Not Rated
Would you like to comment?
Join DriveHQ
for a free account, or
Logon
if you are already a member.