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);
179 float getHorizontalScrollPosition()
const;
193 float getVerticalScrollPosition()
const;
200 float getUnitIntervalHorizontalScrollPosition()
const;
207 float getUnitIntervalVerticalScrollPosition()
const;
224 void setHorizontalScrollPosition(
float position);
240 void setVerticalScrollPosition(
float position);
247 void setUnitIntervalHorizontalScrollPosition(
float position);
254 void setUnitIntervalVerticalScrollPosition(
float position);
264 void invalidateFormatting();
275 void updateFormatting()
const;
278 void updateFormatting(
const Sizef&)
const;
281 void onLookNFeelAssigned();
282 void onLookNFeelUnassigned();
285 void renderScrolledText(
void);
287 void configureScrollbars()
const;
290 void configureScrollbars(
void);
294 Rectf getTextRenderArea()
const;
295 Sizef getDocumentSize()
const;
298 Sizef getDocumentSize(
const Rectf& renderArea)
const;
300 void setupStringFormatter()
const;
309 bool handleScrollbarChange(
const EventArgs& e);
323 typedef std::vector<Event::Connection> ConnectionList;
324 ConnectionList d_connections;
334 Scrollbar* getVertScrollbarWithoutUpdate()
const;
335 Scrollbar* getHorzScrollbarWithoutUpdate()
const;
336 Rectf getTextRenderAreaWithoutUpdate()
const;
337 Sizef getDocumentSizeWithoutUpdate()
const;
342 #if defined(_MSC_VER)
343 # pragma warning(pop)
346 #endif // end of guard _FalStaticText_h_
bool d_enableVertScrollbar
true if vertical scroll bar is enabled.
Definition: StaticText.h:317
bool d_enableHorzScrollbar
true if horizontal scroll bar is enabled.
Definition: StaticText.h:318
ColourRect d_textCols
Colours used when rendering the text.
Definition: StaticText.h:316
HorizontalTextFormatting d_horzFormatting
Horizontal formatting to be applied to the text.
Definition: StaticText.h:313
VerticalTextFormatting d_vertFormatting
Vertical formatting to be applied to the text.
Definition: StaticText.h:315
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
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:321
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 and scrollbars visibility are up to date.
Definition: StaticText.h:331
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