27 #ifndef _FalEditbox_h_
28 #define _FalEditbox_h_
30 #include "CEGUI/WindowRendererSets/Core/Module.h"
31 #include "CEGUI/widgets/Editbox.h"
34 # pragma warning(push)
35 # pragma warning(disable : 4251)
99 void setColourRectToUnselectedTextColour(
ColourRect& colour_rect)
const;
106 void setColourRectToSelectedTextColour(
ColourRect& colour_rect)
const;
120 void setColourRectToOptionalPropertyColour(
const String& propertyName,
124 bool isCaretBlinkEnabled()
const;
126 float getCaretBlinkTimeout()
const;
128 void setCaretBlinkEnabled(
bool enable);
130 void setCaretBlinkTimeout(
float seconds);
149 size_t getTextIndexFromPosition(
const Vector2f& pt)
const;
151 void update(
float elapsed);
152 bool handleFontRenderSizeChange(
const Font*
const font);
158 void setupVisualString(
String& visual)
const;
159 size_t getCaretIndex(
const String& visual_string)
const;
160 float calculateTextOffset(
const Rectf& text_area,
161 const float text_extent,
162 const float caret_width,
163 const float extent_to_caret);
166 const Rectf& text_area,
170 const Rectf& text_area,
172 bool editboxIsFocussed()
const;
173 bool editboxIsReadOnly()
const;
175 const Rectf& text_area,
176 const float text_offset,
177 const float extent_to_caret)
const;
197 #if defined(_MSC_VER)
198 # pragma warning(pop)
201 #endif // end of guard _FalEditbox_h_
float d_lastTextOffset
x rendering offset used last time we drew the widget.
Definition: WindowRendererSets/Core/Editbox.h:182
static const String UnselectedTextColourPropertyName
Name of property to access for unselected text colour.
Definition: WindowRendererSets/Core/Editbox.h:82
bool d_blinkCaret
true if the caret imagery should blink.
Definition: WindowRendererSets/Core/Editbox.h:184
bool d_showCaret
true if caret should be shown.
Definition: WindowRendererSets/Core/Editbox.h:190
float d_caretBlinkElapsed
current time elapsed since last caret blink state change.
Definition: WindowRendererSets/Core/Editbox.h:188
Base class for the EditboxWindowRenderer class.
Definition: widgets/Editbox.h:45
Class that holds details of colours for the four corners of a rectangle.
Definition: ColourRect.h:43
HorizontalTextFormatting
Enumeration of possible values to indicate the horizontal formatting to be used for a text component...
Definition: Enums.h:95
Class that encapsulates a typeface.
Definition: Font.h:58
Editbox class for the FalagardBase module.
Definition: WindowRendererSets/Core/Editbox.h:75
HorizontalTextFormatting d_textFormatting
horizontal formatting. Only supports left, right, and centred.
Definition: WindowRendererSets/Core/Editbox.h:192
static const String TypeName
type name for this widget.
Definition: WindowRendererSets/Core/Editbox.h:79
static const float DefaultCaretBlinkTimeout
The default timeout (in seconds) used when blinking the caret.
Definition: WindowRendererSets/Core/Editbox.h:86
static const String SelectedTextColourPropertyName
Name of property to access for selected text colour.
Definition: WindowRendererSets/Core/Editbox.h:84
float d_caretBlinkTimeout
time-out in seconds used for blinking the caret.
Definition: WindowRendererSets/Core/Editbox.h:186
Class that encapsulates a re-usable collection of imagery specifications.
Definition: ImagerySection.h:47
String class used within the GUI system.
Definition: String.h:62