30 #ifndef _CEGUIMultiLineEditbox_h_
31 #define _CEGUIMultiLineEditbox_h_
33 #include "../CEGUIBase.h"
34 #include "../CEGUIWindow.h"
35 #include "../CEGUIFont.h"
36 #include "CEGUIMultiLineEditboxProperties.h"
42 # pragma warning(push)
43 # pragma warning(disable : 4251)
71 virtual Rect getTextRenderArea(
void)
const = 0;
75 void onLookNFeelAssigned();
134 bool hasInputFocus(
void)
const;
166 size_t getSelectionStartIndex(
void)
const;
177 size_t getSelectionEndIndex(
void)
const;
187 size_t getSelectionLength(
void)
const;
208 bool isWordWrapped(
void)
const;
232 bool isVertScrollbarAlwaysShown(
void)
const;
256 Rect getTextRenderArea(
void)
const;
259 const LineList& getFormattedLines(
void)
const {
return d_lines;}
266 size_t getLineNumberFromIndex(
size_t index)
const;
281 virtual void initialiseComponents(
void);
295 void setReadOnly(
bool setting);
309 void setCaratIndex(
size_t carat_pos);
327 void setSelection(
size_t start_pos,
size_t end_pos);
340 void setMaxTextLength(
size_t max_len);
347 void ensureCaratIsVisible(
void);
361 void setWordWrapping(
bool setting);
374 void setShowVertScrollbar(
bool setting);
377 void setSelectionBrushImage(
const Image* image);
378 const Image* getSelectionBrushImage()
const;
387 MultiLineEditbox(
const String& type,
const String& name);
394 virtual ~MultiLineEditbox(
void);
419 void formatText(
void);
432 size_t getNextTokenLength(
const String& text,
size_t start_idx)
const;
439 void configureScrollbars(
void);
452 size_t getTextIndexFromPosition(
const Point& pt)
const;
459 void clearSelection(
void);
469 void eraseSelectedText(
bool modify_text =
true);
476 void handleBackspace(
void);
483 void handleDelete(
void);
490 void handleCharLeft(uint sysKeys);
497 void handleWordLeft(uint sysKeys);
504 void handleCharRight(uint sysKeys);
511 void handleWordRight(uint sysKeys);
518 void handleDocHome(uint sysKeys);
525 void handleDocEnd(uint sysKeys);
532 void handleLineHome(uint sysKeys);
539 void handleLineEnd(uint sysKeys);
546 void handleLineUp(uint sysKeys);
553 void handleLineDown(uint sysKeys);
560 void handleNewLine(uint sysKeys);
567 void handlePageUp(uint sysKeys);
574 void handlePageDown(uint sysKeys);
587 virtual bool testClassName_impl(
const String& class_name)
const
589 if ((class_name==
"MultiLineEditBox") ||
590 (class_name==
"MultiLineEditbox"))
602 bool handle_scrollChange(
const EventArgs& args);
605 virtual bool validateWindowRenderer(
const String& name)
const
607 return (name == EventNamespace);
726 void addMultiLineEditboxProperties(
void);
731 #if defined(_MSC_VER)
732 # pragma warning(pop)
735 #endif // end of guard _CEGUIMultiLineEditbox_h_