27 #ifndef _FalStaticText_h_
28 #define _FalStaticText_h_
30 #include "CEGUI/WindowRendererSets/Core/Module.h"
31 #include "CEGUI/WindowRendererSets/Core/Static.h"
32 #include "CEGUI/falagard/Enums.h"
33 #include "CEGUI/ColourRect.h"
37 # pragma warning(push)
38 # pragma warning(disable : 4251)
70 class COREWRSET_API FalagardStaticText :
public FalagardStatic
73 static const String TypeName;
78 static const String VertScrollbarName;
79 static const String HorzScrollbarName;
88 FalagardStaticText(
const String& type);
91 ~FalagardStaticText();
118 void setTextColours(
const ColourRect& colours);
148 void setVerticalScrollbarEnabled(
bool setting);
154 void setHorizontalScrollbarEnabled(
bool setting);
157 float getHorizontalTextExtent()
const;
160 float getVerticalTextExtent()
const;
163 bool handleFontRenderSizeChange(
const Font*
const font);
168 void updateFormatting()
const;
170 void updateFormatting(
const Sizef& sz)
const;
173 void onLookNFeelAssigned();
174 void onLookNFeelUnassigned();
177 void renderScrolledText(
void);
178 void configureScrollbars(
void);
181 Rectf getTextRenderArea(
void)
const;
182 Sizef getDocumentSize(
const Rectf& renderArea)
const;
183 void setupStringFormatter()
const;
192 bool handleScrollbarChange(
const EventArgs& e);
200 bool d_enableVertScrollbar;
201 bool d_enableHorzScrollbar;
206 typedef std::vector<Event::Connection> ConnectionList;
207 ConnectionList d_connections;
210 mutable bool d_formatValid;
215 #if defined(_MSC_VER)
216 # pragma warning(pop)
219 #endif // end of guard _FalStaticText_h_
Main namespace for Crazy Eddie's GUI Library.
Definition: cegui/include/CEGUI/Affector.h:42
Base class used as the argument to all subscribers Event object.
Definition: cegui/include/CEGUI/EventArgs.h:49
Class that holds details of colours for the four corners of a rectangle.
Definition: cegui/include/CEGUI/ColourRect.h:43
HorizontalTextFormatting getHorizontalFormatting(void) const
Return the current horizontal formatting option set for this widget.
Definition: debian/tmp/usr/include/cegui-0.8.4/CEGUI/WindowRendererSets/Core/StaticText.h:106
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
bool isVerticalScrollbarEnabled(void) const
Return whether the vertical scroll bar is set to be shown if needed.
Definition: debian/tmp/usr/include/cegui-0.8.4/CEGUI/WindowRendererSets/Core/StaticText.h:136
VerticalTextFormatting getVerticalFormatting(void) const
Return the current vertical formatting option set for this widget.
Definition: debian/tmp/usr/include/cegui-0.8.4/CEGUI/WindowRendererSets/Core/StaticText.h:112
ColourRect getTextColours(void) const
Return a ColourRect object containing the colours used when rendering this widget.
Definition: debian/tmp/usr/include/cegui-0.8.4/CEGUI/WindowRendererSets/Core/StaticText.h:100
bool isHorizontalScrollbarEnabled(void) const
Return whether the horizontal scroll bar is set to be shown if needed.
Definition: debian/tmp/usr/include/cegui-0.8.4/CEGUI/WindowRendererSets/Core/StaticText.h:142
Class that encapsulates a typeface.
Definition: cegui/include/CEGUI/Font.h:58
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
Class encapsulating operations on a Rectangle.
Definition: cegui/include/CEGUI/ForwardRefs.h:89