MyGUI 3.4.2
|
widget description should be here. More...
#include <MyGUI_EditBox.h>
Public Types | |
typedef RTTIBase | Base |
typedef EditBox | RTTIBase |
![]() | |
typedef RTTIBase | Base |
typedef TextBox | RTTIBase |
![]() | |
typedef RTTIBase | Base |
typedef Widget | RTTIBase |
![]() | |
typedef IObject | RTTIBase |
Static Public Member Functions | |
static const std::string & | getClassTypeName () |
![]() | |
static const std::string & | getClassTypeName () |
![]() | |
static const std::string & | getClassTypeName () |
![]() | |
static const std::string & | getClassTypeName () |
widget description should be here.
Definition at line 25 of file MyGUI_EditBox.h.
Definition at line 30 of file MyGUI_EditBox.h.
Definition at line 30 of file MyGUI_EditBox.h.
MyGUI::EditBox::EditBox | ( | ) |
Definition at line 46 of file MyGUI_EditBox.cpp.
Add text
Definition at line 2006 of file MyGUI_EditBox.cpp.
void MyGUI::EditBox::deleteTextSelection | ( | ) |
Delete selected text
Definition at line 1976 of file MyGUI_EditBox.cpp.
Erase _count characters from _start position
Definition at line 2011 of file MyGUI_EditBox.cpp.
|
protected |
Definition at line 1616 of file MyGUI_EditBox.cpp.
Get edit text with tags
Reimplemented from MyGUI::TextBox.
Definition at line 1647 of file MyGUI_EditBox.cpp.
Definition at line 30 of file MyGUI_EditBox.h.
bool MyGUI::EditBox::getEditMultiLine | ( | ) | const |
Get edit multiline mode flag
Definition at line 2244 of file MyGUI_EditBox.cpp.
bool MyGUI::EditBox::getEditPassword | ( | ) | const |
Get edit password mode flag
Definition at line 2239 of file MyGUI_EditBox.cpp.
bool MyGUI::EditBox::getEditReadOnly | ( | ) | const |
Get edit read only mode flag
Definition at line 2234 of file MyGUI_EditBox.cpp.
bool MyGUI::EditBox::getEditStatic | ( | ) | const |
Get edit static mode flag
Definition at line 2249 of file MyGUI_EditBox.cpp.
bool MyGUI::EditBox::getEditWordWrap | ( | ) | const |
Get edit word wrap mode flag
Definition at line 2259 of file MyGUI_EditBox.cpp.
|
overridevirtual |
Get widget text font height
Reimplemented from MyGUI::TextBox.
Definition at line 1815 of file MyGUI_EditBox.cpp.
size_t MyGUI::EditBox::getHScrollPosition | ( | ) | const |
Get current position of horizontal scroll (or 0 if no scroll)
Definition at line 2104 of file MyGUI_EditBox.cpp.
size_t MyGUI::EditBox::getHScrollRange | ( | ) | const |
Get range of horizontal scroll (or 0 if no scroll). Range measured in pixels (full text width minus EditBox width). For example if EditBox is 200 pixels width and the longest line is 600 pixels width, then return value is 400 ( = 600 - 200 ).
Definition at line 2099 of file MyGUI_EditBox.cpp.
bool MyGUI::EditBox::getInvertSelected | ( | ) | const |
Get invert selected text color property
Definition at line 2126 of file MyGUI_EditBox.cpp.
size_t MyGUI::EditBox::getMaxTextLength | ( | ) | const |
Gets the max amount of text allowed in the edit field.
Definition at line 2229 of file MyGUI_EditBox.cpp.
UString MyGUI::EditBox::getOnlyText | ( | ) | const |
Get edit text without tags
Definition at line 1996 of file MyGUI_EditBox.cpp.
bool MyGUI::EditBox::getOverflowToTheLeft | ( | ) | const |
Returns true if surplus characters will be pushed off the left rather than ignored.
Definition at line 2219 of file MyGUI_EditBox.cpp.
Char MyGUI::EditBox::getPasswordChar | ( | ) | const |
Get edit password character
Definition at line 2254 of file MyGUI_EditBox.cpp.
bool MyGUI::EditBox::getTabPrinting | ( | ) | const |
Get edit tab printing wrap mode flag
Definition at line 2269 of file MyGUI_EditBox.cpp.
size_t MyGUI::EditBox::getTextCursor | ( | ) | const |
Get text cursor position
Definition at line 2204 of file MyGUI_EditBox.cpp.
Get _count characters with tags from _start position
Definition at line 1100 of file MyGUI_EditBox.cpp.
size_t MyGUI::EditBox::getTextLength | ( | ) | const |
Get text length excluding tags For example "Hello" length is 5 and "#00FF00Hello!" length is 6
Definition at line 2209 of file MyGUI_EditBox.cpp.
|
overridevirtual |
Get text region coordinate
Reimplemented from MyGUI::TextBox.
Definition at line 1702 of file MyGUI_EditBox.cpp.
UString MyGUI::EditBox::getTextSelection | ( | ) | const |
Get selected text
Definition at line 1228 of file MyGUI_EditBox.cpp.
size_t MyGUI::EditBox::getTextSelectionEnd | ( | ) | const |
Get index of last selected character or ITEM_NONE if nothing selected
Definition at line 1966 of file MyGUI_EditBox.cpp.
size_t MyGUI::EditBox::getTextSelectionLength | ( | ) | const |
Get length of selected text
Definition at line 1986 of file MyGUI_EditBox.cpp.
size_t MyGUI::EditBox::getTextSelectionStart | ( | ) | const |
Get index of first selected character or ITEM_NONE if nothing selected
Definition at line 1961 of file MyGUI_EditBox.cpp.
|
overridevirtual |
Get text region size
Reimplemented from MyGUI::TextBox.
Definition at line 1709 of file MyGUI_EditBox.cpp.
Get type name as string
Reimplemented from MyGUI::TextBox.
Reimplemented in MyGUI::ComboBox.
Definition at line 30 of file MyGUI_EditBox.h.
size_t MyGUI::EditBox::getVScrollPosition | ( | ) | const |
Get current position of vertical scroll (or 0 if no scroll)
Definition at line 2077 of file MyGUI_EditBox.cpp.
size_t MyGUI::EditBox::getVScrollRange | ( | ) | const |
Get range of vertical scroll (or 0 if no scroll). Range measured in pixels (full text heiht minus EditBox height). For example if EditBox is 200 pixels height and 40 lines of text 30 pixels height each (i.e. 600 pixels total), then return value is 400 ( = 600 - 200 ).
Definition at line 2072 of file MyGUI_EditBox.cpp.
|
overrideprotectedvirtual |
Reimplemented from MyGUI::Widget.
Definition at line 71 of file MyGUI_EditBox.cpp.
Inser text at _index position (text end by default)
Definition at line 2001 of file MyGUI_EditBox.cpp.
bool MyGUI::EditBox::isTextSelection | ( | ) | const |
Is any text selected
Definition at line 1971 of file MyGUI_EditBox.cpp.
Compare with selected type
Definition at line 30 of file MyGUI_EditBox.h.
Compare with selected type
Reimplemented from MyGUI::TextBox.
Reimplemented in MyGUI::ComboBox.
Definition at line 30 of file MyGUI_EditBox.h.
bool MyGUI::EditBox::isVisibleHScroll | ( | ) | const |
Get Show HScroll flag
Definition at line 2279 of file MyGUI_EditBox.cpp.
bool MyGUI::EditBox::isVisibleVScroll | ( | ) | const |
Get Show VScroll flag
Definition at line 2274 of file MyGUI_EditBox.cpp.
Definition at line 217 of file MyGUI_EditBox.cpp.
|
protected |
Definition at line 177 of file MyGUI_EditBox.cpp.
Definition at line 142 of file MyGUI_EditBox.cpp.
|
protected |
Definition at line 151 of file MyGUI_EditBox.cpp.
|
protected |
Definition at line 171 of file MyGUI_EditBox.cpp.
Definition at line 133 of file MyGUI_EditBox.cpp.
Definition at line 1735 of file MyGUI_EditBox.cpp.
Definition at line 1716 of file MyGUI_EditBox.cpp.
Reimplemented from MyGUI::WidgetInput.
Definition at line 373 of file MyGUI_EditBox.cpp.
Reimplemented from MyGUI::WidgetInput.
Definition at line 285 of file MyGUI_EditBox.cpp.
Reimplemented from MyGUI::WidgetInput.
Definition at line 262 of file MyGUI_EditBox.cpp.
|
overrideprotectedvirtual |
Reimplemented from MyGUI::WidgetInput.
Definition at line 255 of file MyGUI_EditBox.cpp.
Set edit text applying tags
Reimplemented from MyGUI::TextBox.
Definition at line 1642 of file MyGUI_EditBox.cpp.
Set widget position and size
Reimplemented from MyGUI::ICroppedRectangle.
Definition at line 1635 of file MyGUI_EditBox.cpp.
Set widget position and size
Reimplemented from MyGUI::ICroppedRectangle.
Definition at line 116 of file MyGUI_Widget.cpp.
See Widget::setCoord(const IntCoord& _coord)
Definition at line 123 of file MyGUI_Widget.cpp.
Enable or disable edit multiline mode
Multile mode: new line character moves text to new line.
Otherwise new lines replaced with space and all text is in single line.
Disabled (false) by default.
Definition at line 2023 of file MyGUI_EditBox.cpp.
Enable or disable edit password mode
Password mode: you see password chars (*** by default) instead text.
Disabled (false) by default.
Definition at line 1237 of file MyGUI_EditBox.cpp.
Enable or disable edit read only mode
Read only mode: you can't edit text, but can select it.
Disabled (false) by default.
Definition at line 2016 of file MyGUI_EditBox.cpp.
Enable or disable edit static mode
Static mode is same as read only, but you also can't select text.
Disabled (false) by default.
Definition at line 2040 of file MyGUI_EditBox.cpp.
Enable or disable edit word wrap mode
Word Wrap mode: move words to new line if they goes out of width. Also in this mode you can't edit or select text.
Disabled (false) by default.
Definition at line 1786 of file MyGUI_EditBox.cpp.
Set widget text font height
Reimplemented from MyGUI::TextBox.
Definition at line 1805 of file MyGUI_EditBox.cpp.
Set widget text font
Reimplemented from MyGUI::TextBox.
Definition at line 1795 of file MyGUI_EditBox.cpp.
Set current position of horizontal scroll
Definition at line 2109 of file MyGUI_EditBox.cpp.
Enable or disable inverting color of selected text
Enabled (true) by default
Definition at line 2131 of file MyGUI_EditBox.cpp.
Sets the max amount of text allowed in the edit field.
Definition at line 2224 of file MyGUI_EditBox.cpp.
Set edit text without tags
Definition at line 1991 of file MyGUI_EditBox.cpp.
Sets if surplus characters should push characters off the left side rather than ignored.
Definition at line 2214 of file MyGUI_EditBox.cpp.
Set edit password character ('*' by default)
Definition at line 1578 of file MyGUI_EditBox.cpp.
Set edit password character ('*' by default). First character of string used.
Definition at line 2054 of file MyGUI_EditBox.cpp.
Set widget position (position of left top corner)
Reimplemented from MyGUI::ICroppedRectangle.
Definition at line 1611 of file MyGUI_EditBox.cpp.
Set widget position (position of left top corner)
Reimplemented from MyGUI::ICroppedRectangle.
Definition at line 112 of file MyGUI_Widget.cpp.
See Widget::setPosition(const IntPoint& _pos)
Definition at line 119 of file MyGUI_Widget.cpp.
|
overrideprotectedvirtual |
Reimplemented from MyGUI::Widget.
Definition at line 2137 of file MyGUI_EditBox.cpp.
Set widget size
Reimplemented from MyGUI::ICroppedRectangle.
Definition at line 1628 of file MyGUI_EditBox.cpp.
Set widget size
Reimplemented from MyGUI::ICroppedRectangle.
Definition at line 114 of file MyGUI_Widget.cpp.
See Widget::setSize(const IntSize& _size)
Definition at line 121 of file MyGUI_Widget.cpp.
Enable or disable tab printing mode
Tab printing mode: when editing text and pressing Tab key it displayed. If this mode disabled Tab key ignored.
Disabled (false) by default.
Definition at line 2264 of file MyGUI_EditBox.cpp.
Set widget text align
Reimplemented from MyGUI::TextBox.
Definition at line 1683 of file MyGUI_EditBox.cpp.
Set widget text colour
Reimplemented from MyGUI::TextBox.
Definition at line 1694 of file MyGUI_EditBox.cpp.
Set text cursor position
Definition at line 896 of file MyGUI_EditBox.cpp.
Colour interval
Definition at line 1956 of file MyGUI_EditBox.cpp.
Set selected text interval
_start | of interval |
_end | of interval |
Definition at line 917 of file MyGUI_EditBox.cpp.
Colour selected text
Definition at line 1981 of file MyGUI_EditBox.cpp.
Set widget text shadow
Reimplemented from MyGUI::TextBox.
Definition at line 2303 of file MyGUI_EditBox.cpp.
Set widget text shadow colour
Reimplemented from MyGUI::TextBox.
Definition at line 2295 of file MyGUI_EditBox.cpp.
Show HScroll when text size larger than EditBox
Definition at line 2066 of file MyGUI_EditBox.cpp.
Show VScroll when text size larger than EditBox
Definition at line 2060 of file MyGUI_EditBox.cpp.
Set current position of vertical scroll
Definition at line 2082 of file MyGUI_EditBox.cpp.
|
overrideprotectedvirtual |
Reimplemented from MyGUI::Widget.
Definition at line 123 of file MyGUI_EditBox.cpp.
|
protected |
Definition at line 1820 of file MyGUI_EditBox.cpp.
|
protected |
Definition at line 1826 of file MyGUI_EditBox.cpp.
EventPair<EventHandle_WidgetVoid, EventHandle_EditPtr> MyGUI::EditBox::eventEditSelectAccept |
Event : Enter pressed (Ctrl+enter in multiline mode).
signature : void method(MyGUI::EditBox* _sender)
_sender | widget that called this event |
Definition at line 245 of file MyGUI_EditBox.h.
EventPair<EventHandle_WidgetVoid, EventHandle_EditPtr> MyGUI::EditBox::eventEditTextChange |
Event : Text changed.
signature : void method(MyGUI::EditBox* _sender)
_sender | widget that called this event |
Definition at line 251 of file MyGUI_EditBox.h.
|
protected |
Definition at line 349 of file MyGUI_EditBox.h.
|
protected |
Definition at line 380 of file MyGUI_EditBox.h.
|
protected |
Definition at line 385 of file MyGUI_EditBox.h.
|
protected |
Definition at line 347 of file MyGUI_EditBox.h.
|
protected |
Definition at line 352 of file MyGUI_EditBox.h.
|
protected |
Definition at line 348 of file MyGUI_EditBox.h.
|
protected |
Definition at line 358 of file MyGUI_EditBox.h.
|
protected |
Definition at line 345 of file MyGUI_EditBox.h.
|
protected |
Definition at line 343 of file MyGUI_EditBox.h.
|
protected |
Definition at line 383 of file MyGUI_EditBox.h.
|
protected |
Definition at line 368 of file MyGUI_EditBox.h.
|
protected |
Definition at line 367 of file MyGUI_EditBox.h.
|
protected |
Definition at line 366 of file MyGUI_EditBox.h.
|
protected |
Definition at line 369 of file MyGUI_EditBox.h.
|
protected |
Definition at line 370 of file MyGUI_EditBox.h.
|
protected |
Definition at line 364 of file MyGUI_EditBox.h.
|
protected |
Definition at line 378 of file MyGUI_EditBox.h.
|
protected |
Definition at line 382 of file MyGUI_EditBox.h.
|
protected |
Definition at line 375 of file MyGUI_EditBox.h.
|
protected |
Definition at line 357 of file MyGUI_EditBox.h.
|
protected |
Definition at line 372 of file MyGUI_EditBox.h.
|
protected |
Definition at line 354 of file MyGUI_EditBox.h.
|
protected |
Definition at line 362 of file MyGUI_EditBox.h.
|
protected |
Definition at line 361 of file MyGUI_EditBox.h.