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)
48 class CEGUIEXPORT TextComponent :
public FalagardComponentBase
53 TextComponent(
const TextComponent& obj);
54 TextComponent& operator=(
const TextComponent& other);
68 const String& getText()
const;
75 String getEffectiveText(
const Window& wnd)
const;
89 const String& getTextVisual()
const;
96 String getEffectiveVisualText(
const Window& wnd)
const;
111 void setText(
const String& text);
129 const String& getFont()
const;
136 String getEffectiveFont(
const Window& wnd)
const;
151 void setFont(
const String& font);
200 void setHorizontalFormattingPropertySource(
const String& property_name);
207 void setVerticalFormattingPropertySource(
const String& property_name);
220 void writeXMLToStream(XMLSerializer& xml_stream)
const;
230 bool isTextFetchedFromProperty()
const;
240 const String& getTextPropertySource()
const;
253 void setTextPropertySource(
const String& property);
263 bool isFontFetchedFromProperty()
const;
273 const String& getFontPropertySource()
const;
286 void setFontPropertySource(
const String& property);
289 float getHorizontalTextExtent(
const Window& window)
const;
292 float getVerticalTextExtent(
const Window& window)
const;
295 bool handleFontRenderSizeChange(Window& window,
const Font* font)
const;
299 void render_impl(Window& srcWindow, Rectf& destRect,
const CEGUI::ColourRect* modColours,
const Rectf* clipper,
bool clipToDisplay)
const;
301 void setupStringFormatter(
const Window& window,
302 const RenderedString& rendered_string)
const;
304 const Font* getFontObject(
const Window& window)
const;
308 String d_textLogical;
310 BidiVisualMapping* d_bidiVisualMapping;
312 mutable bool d_bidiDataValid;
314 mutable RenderedString d_renderedString;
316 mutable RefCounted<FormattedRenderedString> d_formattedRenderedString;
321 FormattingSetting<VerticalTextFormatting> d_vertFormatting;
324 FormattingSetting<HorizontalTextFormatting> d_horzFormatting;
325 String d_textPropertyName;
326 String d_fontPropertyName;
331 #if defined(_MSC_VER)
332 # pragma warning(pop)
335 #endif // end of guard _CEGUIFalTextComponent_h_
Main namespace for Crazy Eddie's GUI Library.
Definition: cegui/include/CEGUI/Affector.h:42
Class that holds details of colours for the four corners of a rectangle.
Definition: cegui/include/CEGUI/ColourRect.h:43
HorizontalTextFormatting
Enumeration of possible values to indicate the horizontal formatting to be used for a text component...
Definition: cegui/include/CEGUI/falagard/Enums.h:95
VerticalTextFormatting
Enumeration of possible values to indicate the vertical formatting to be used for a text component...
Definition: cegui/include/CEGUI/falagard/Enums.h:84