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)
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);
206 typedef std::vector<Event::Connection> ConnectionList;
207 ConnectionList d_connections;
215 #if defined(_MSC_VER)
216 # pragma warning(pop)
219 #endif // end of guard _FalStaticText_h_
bool d_enableVertScrollbar
true if vertical scroll bar is enabled.
Definition: StaticText.h:200
bool d_enableHorzScrollbar
true if horizontal scroll bar is enabled.
Definition: StaticText.h:201
ColourRect d_textCols
Colours used when rendering the text.
Definition: StaticText.h:199
HorizontalTextFormatting d_horzFormatting
Horizontal formatting to be applied to the text.
Definition: StaticText.h:196
VerticalTextFormatting d_vertFormatting
Vertical formatting to be applied to the text.
Definition: StaticText.h:198
Base class used as the argument to all subscribers Event object.
Definition: EventArgs.h:49
Class that holds details of colours for the four corners of a rectangle.
Definition: ColourRect.h:43
HorizontalTextFormatting getHorizontalFormatting(void) const
Return the current horizontal formatting option set for this widget.
Definition: StaticText.h:106
HorizontalTextFormatting
Enumeration of possible values to indicate the horizontal formatting to be used for a text component...
Definition: Enums.h:95
static const String HorzScrollbarName
Widget name for the horizontal scrollbar component.
Definition: StaticText.h:79
bool isVerticalScrollbarEnabled(void) const
Return whether the vertical scroll bar is set to be shown if needed.
Definition: StaticText.h:136
VerticalTextFormatting getVerticalFormatting(void) const
Return the current vertical formatting option set for this widget.
Definition: StaticText.h:112
ColourRect getTextColours(void) const
Return a ColourRect object containing the colours used when rendering this widget.
Definition: StaticText.h:100
bool isHorizontalScrollbarEnabled(void) const
Return whether the horizontal scroll bar is set to be shown if needed.
Definition: StaticText.h:142
Class that encapsulates a typeface.
Definition: Font.h:58
FormattedRenderedString * d_formattedRenderedString
Class that renders RenderedString with some formatting.
Definition: StaticText.h:204
VerticalTextFormatting
Enumeration of possible values to indicate the vertical formatting to be used for a text component...
Definition: Enums.h:84
Static class for the FalagardBase module.
Definition: Static.h:56
StaticText class for the FalagardBase module.
Definition: StaticText.h:70
bool d_formatValid
true when string formatting is up to date.
Definition: StaticText.h:210
static const String VertScrollbarName
Widget name for the vertical scrollbar component.
Definition: StaticText.h:78
static const String TypeName
type name for this widget.
Definition: StaticText.h:73
String class used within the GUI system.
Definition: String.h:62