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);
221 const String& getHorizontalFormattingPropertySource()
const;
228 void setHorizontalFormattingPropertySource(
const String& property_name);
238 const String& getVerticalFormattingPropertySource()
const;
245 void setVerticalFormattingPropertySource(
const String& property_name);
258 void writeXMLToStream(XMLSerializer& xml_stream)
const;
268 bool isTextFetchedFromProperty()
const;
278 const String& getTextPropertySource()
const;
291 void setTextPropertySource(
const String& property);
301 bool isFontFetchedFromProperty()
const;
311 const String& getFontPropertySource()
const;
324 void setFontPropertySource(
const String& property);
327 float getHorizontalTextExtent(
const Window& window)
const;
330 float getVerticalTextExtent(
const Window& window)
const;
333 bool handleFontRenderSizeChange(Window& window,
const Font* font)
const;
337 void updateFormatting(
const Window& srcWindow)
const;
346 void updateFormatting(
const Window& srcWindow,
const Sizef& size)
const;
350 void render_impl(Window& srcWindow, Rectf& destRect,
const CEGUI::ColourRect* modColours,
const Rectf* clipper,
bool clipToDisplay)
const;
352 void setupStringFormatter(
const Window& window,
353 const RenderedString& rendered_string)
const;
355 const Font* getFontObject(
const Window& window)
const;
359 String d_textLogical;
361 BidiVisualMapping* d_bidiVisualMapping;
363 mutable bool d_bidiDataValid;
365 mutable RenderedString d_renderedString;
367 mutable RefCounted<FormattedRenderedString> d_formattedRenderedString;
372 FormattingSetting<VerticalTextFormatting> d_vertFormatting;
375 FormattingSetting<HorizontalTextFormatting> d_horzFormatting;
376 String d_textPropertyName;
377 String d_fontPropertyName;
382 #if defined(_MSC_VER) 383 # pragma warning(pop) 386 #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