Crazy Eddie's GUI System
0.8.7
|
27 #ifndef _CEGUIFalTextComponent_h_
28 #define _CEGUIFalTextComponent_h_
30 #include "./ComponentBase.h"
31 #include "../RenderedString.h"
32 #include "../RefCounted.h"
33 #include "../FormattedRenderedString.h"
34 #include "CEGUI/falagard/FormattingSetting.h"
37 # pragma warning(push)
38 # pragma warning(disable : 4251)
363 mutable bool d_bidiDataValid;
376 String d_textPropertyName;
377 String d_fontPropertyName;
382 #if defined(_MSC_VER)
383 # pragma warning(pop)
386 #endif // end of guard _CEGUIFalTextComponent_h_
Class that encapsulates a typeface.
Definition: Font.h:62
float getHorizontalTextExtent(const Window &window) const
return the horizontal pixel extent of the formatted rendered string.
void render_impl(Window &srcWindow, Rectf &destRect, const CEGUI::ColourRect *modColours, const Rectf *clipper, bool clipToDisplay) const
Function to do main render caching work.
Class that encapsulates information for a text component.
Definition: TextComponent.h:49
void setFontPropertySource(const String &property)
Set the name of the property that will be used to determine the font to use for rendering the text st...
float getVerticalTextExtent(const Window &window) const
return the vertical pixel extent of the formatted rendered string.
VerticalTextFormatting
Enumeration of possible values to indicate the vertical formatting to be used for a text component.
Definition: Enums.h:85
void writeXMLToStream(XMLSerializer &xml_stream) const
Writes an xml representation of this TextComponent to out_stream.
const String & getFont() const
Return the name of the font set to be used when rendering this TextComponent.
void setHorizontalFormatting(HorizontalTextFormatting fmt)
Set the horizontal formatting setting for this TextComponent.
void setVerticalFormattingPropertySource(const String &property_name)
Set the name of a property that will be used to obtain the vertical formatting to use for this Imager...
Class used to create XML Document.
Definition: XMLSerializer.h:87
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
Class representing a rendered string of entities.
Definition: RenderedString.h:52
const Font * getFontObject(const Window &window) const
helper to get the font object to use
const String & getTextVisual() const
return text string with visual ordering of glyphs.
const String & getFontPropertySource() const
Return the name of the property that will be used to determine the font to use for rendering the text...
void setTextPropertySource(const String &property)
Set the name of the property that will be used to determine the text string to render for this TextCo...
Simple, generic, reference counted pointer class. This is primarily here for use by the Events system...
Definition: RefCounted.h:43
HorizontalTextFormatting getHorizontalFormattingFromComponent() const
Directly returns the horizontal formatting which was set for the ImageryComponent.
Class that holds details of colours for the four corners of a rectangle.
Definition: ColourRect.h:45
void setupStringFormatter(const Window &window, const RenderedString &rendered_string) const
helper to set up an appropriate FormattedRenderedString
Abstract class to wrap a Bidi visual mapping of a text string.
Definition: BidiVisualMapping.h:52
void setFont(const String &font)
Set the name of a font to be used when rendering this TextComponent.
bool isFontFetchedFromProperty() const
Return whether this TextComponent fetches it's font via a property on the target window.
const String & getHorizontalFormattingPropertySource() const
Returns the name of the property that will be used to obtain the horizontal formatting to use for thi...
VerticalTextFormatting getVerticalFormattingFromComponent() const
Directly returns the vertical formatting which was set for the ImageryComponent.
void setHorizontalFormattingPropertySource(const String &property_name)
Set the name of a property that will be used to obtain the horizontal formatting to use for this Imag...
VerticalTextFormatting getVerticalFormatting(const Window &wnd) const
Return the current vertical formatting setting for this TextComponent.
void updateFormatting(const Window &srcWindow, const Sizef &size) const
Update string formatting.
void setText(const String &text)
Set the text string for this TextComponent.
const String & getVerticalFormattingPropertySource() const
Returns the name of the property that will be used to obtain the vertical formatting to use for this ...
const String & getText() const
Return the text set for this TextComponent.
Common base class used for renderable components within an ImagerySection.
Definition: ComponentBase.h:39
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition: Window.h:151
HorizontalTextFormatting
Enumeration of possible values to indicate the horizontal formatting to be used for a text component.
Definition: Enums.h:96
void setVerticalFormatting(VerticalTextFormatting fmt)
Set the vertical formatting setting for this TextComponent.
String class used within the GUI system.
Definition: String.h:64
bool handleFontRenderSizeChange(Window &window, const Font *font) const
perform any processing required due to the given font having changed.
const String & getTextPropertySource() const
Return the name of the property that will be used to determine the text string to render for this Tex...
HorizontalTextFormatting getHorizontalFormatting(const Window &wnd) const
Return the current horizontal formatting setting for this TextComponent.
void updateFormatting(const Window &srcWindow) const
Update string formatting.
bool isTextFetchedFromProperty() const
Return whether this TextComponent fetches it's text string via a property on the target window.