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: CEGUIFalTextComponent.h created: Sun Jun 19 2005 author: Paul D Turner
*************************************************************************/ /*************************************************************************** * 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 _CEGUIFalTextComponent_h_ #define _CEGUIFalTextComponent_h_ #include "falagard/CEGUIFalComponentBase.h" // Start of CEGUI namespace section namespace CEGUI { /*! \brief Class that encapsulates information for a text component. */ class CEGUIEXPORT TextComponent : public FalagardComponentBase { public: /*! \brief Constructor */ TextComponent(); /*! \brief Return the text object that will be rendered by this TextComponent. \return String object containing the text that will be rendered. */ const String& getText() const; /*! \brief Set the text that will be rendered by this TextComponent. Note that setting this to the empty string ("") will cause the text from the base window passed when rendering to be used instead. \param text String containing text to render, or "" to render text from window. \return Nothing. */ void setText(const String& text); /*! \brief Return the name of the font to be used when rendering this TextComponent. \return String object containing the name of a font, or "" if the window font is to be used. */ const String& getFont() const; /*! \brief Set the name of the font to be used when rendering this TextComponent. Note that setting this to the empty string ("") will cause the font from the base window passed when rendering to be used instead. \param font String containing name of a font \return Nothing. */ void setFont(const String& font); /*! \brief Return the current vertical formatting setting for this TextComponent. \return One of the VerticalTextFormatting enumerated values. */ VerticalTextFormatting getVerticalFormatting() const; /*! \brief Set the vertical formatting setting for this TextComponent. \param fmt One of the VerticalTextFormatting enumerated values. \return Nothing. */ void setVerticalFormatting(VerticalTextFormatting fmt); /*! \brief Return the current horizontal formatting setting for this TextComponent. \return One of the HorizontalTextFormatting enumerated values. */ HorizontalTextFormatting getHorizontalFormatting() const; /*! \brief Set the horizontal formatting setting for this TextComponent. \param fmt One of the HorizontalTextFormatting enumerated values. \return Nothing. */ void setHorizontalFormatting(HorizontalTextFormatting fmt); /*! \brief Writes an xml representation of this TextComponent to \a out_stream. \param xml_stream Stream where xml data should be output. \return Nothing. */ void writeXMLToStream(XMLSerializer& xml_stream) const; /*! \brief Return whether this TextComponent fetches it's text string via a property on the target window. \return - true if the text string comes via a Propery. - false if the text string is defined explicitly, or will come from the target window. */ bool isTextFetchedFromProperty() const; /*! \brief Return the name of the property that will be used to determine the text string to render for this TextComponent. \return String object holding the name of a Propery. */ const String& getTextPropertySource() const; /*! \brief Set the name of the property that will be used to determine the text string to render for this TextComponent. \param property String object holding the name of a Propery. The property can contain any text string to render. \return Nothing. */ void setTextPropertySource(const String& property); /*! \brief Return whether this TextComponent fetches it's font via a property on the target window. \return - true if the font comes via a Propery. - false if the font is defined explicitly, or will come from the target window. */ bool isFontFetchedFromProperty() const; /*! \brief Return the name of the property that will be used to determine the font to use for rendering the text string for this TextComponent. \return String object holding the name of a Propery. */ const String& getFontPropertySource() const; /*! \brief Set the name of the property that will be used to determine the font to use for rendering the text string of this TextComponent. \param property String object holding the name of a Propery. The property should access a valid font name. \return Nothing. */ void setFontPropertySource(const String& property); protected: // implemets abstract from base void render_impl(Window& srcWindow, Rect& destRect, float base_z, const CEGUI::ColourRect* modColours, const Rect* clipper, bool clipToDisplay) const; private: String d_text; //!< text rendered by this component. String d_font; //!< name of font to use. VerticalTextFormatting d_vertFormatting; //!< Vertical formatting to be applied when rendering the component. HorizontalTextFormatting d_horzFormatting; //!< Horizontal formatting to be applied when rendering the component. String d_textPropertyName; //!< Name of the property to access to obtain the text string to render. String d_fontPropertyName; //!< Name of the property to access to obtain the font to use for rendering. }; } // End of CEGUI namespace section #endif // end of guard _CEGUIFalTextComponent_h_
CEGUIFalTextComponent.h
Page URL
File URL
Prev
16/20
Next
Download
( 8 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.