28 #ifndef _FalEditbox_h_
29 #define _FalEditbox_h_
31 #include "FalModule.h"
32 #include "../../elements/CEGUIEditbox.h"
33 #include "FalEditboxProperties.h"
36 # pragma warning(push)
37 # pragma warning(disable : 4251)
81 static const utf8 TypeName[];
103 colour getUnselectedTextColour()
const;
113 colour getSelectedTextColour()
const;
124 colour getOptionalPropertyColour(
const String& propertyName)
const;
127 bool isCaretBlinkEnabled()
const;
129 float getCaretBlinkTimeout()
const;
131 void setCaretBlinkEnabled(
bool enable);
133 void setCaretBlinkTimeout(
float seconds);
152 size_t getTextIndexFromPosition(
const Point& pt)
const;
154 void update(
float elapsed);
165 void setupVisualString(
String& visual)
const;
166 size_t getCaretIndex(
const String& visual_string)
const;
167 float calculateTextOffset(
const Rect& text_area,
168 const float text_extent,
169 const float caret_width,
170 const float extent_to_caret);
173 const Rect& text_area,
177 const Rect& text_area,
179 bool editboxIsFocussed()
const;
181 const Rect& text_area,
182 const float text_offset,
183 const float extent_to_caret)
const;
203 #if defined(_MSC_VER)
204 # pragma warning(pop)
207 #endif // end of guard _FalEditbox_h_