#include <EditBox.h>
Public Member Functions | |
| EditBox (Shell *const shell) | |
| virtual | ~EditBox (void) |
| const cl7::string_type & | GetText () const |
| bool | IsReadonly () const |
| bool | IsProtected () const |
| size_t | GetCursorPosition () const |
| void | SetText (const cl7::string_type &text) |
| void | IsReadonly (const bool readonly) |
| void | IsProtected (const bool protected_) |
| void | SetCursorPosition (const size_t cursor_position) |
| bool | IsInIgnoreList (cl7::char_type chr) |
| void | AddToIgnoreList (cl7::char_type chr) |
| void | RemoveFromIgnoreList (cl7::char_type chr) |
| void | ClearIgnoreList () |
Public Attributes | |
| events::EventHandler < events::EventArgs > | OnTextChangedEventHandler |
| events::EventHandler < events::EventArgs > | OnConfirmEventHandler |
| friend | Shell |
The class for editable text boxes.
| fl7::faces::EditBox::EditBox | ( | Shell *const | shell | ) |
Explicit constructor.
| fl7::faces::EditBox::~EditBox | ( | void | ) | [virtual] |
Destructor.
| void fl7::faces::EditBox::AddToIgnoreList | ( | cl7::char_type | chr | ) |
Adds the given character to the ignore list.
| void fl7::faces::EditBox::ClearIgnoreList | ( | ) |
Clears the ignore list.
| size_t fl7::faces::EditBox::GetCursorPosition | ( | ) | const [inline] |
Returns the position of the cursor.
| const cl7::string_type& fl7::faces::EditBox::GetText | ( | ) | const [inline] |
Returns the text of this edit box.
| bool fl7::faces::EditBox::IsInIgnoreList | ( | cl7::char_type | chr | ) |
Checks whether the given character is contained in the ignore list.
| bool fl7::faces::EditBox::IsProtected | ( | ) | const [inline] |
Returns the flag specifying whether the text within this edit box is protected. If this flag is set to true, you can not edit or copy-and-paste the text.
| void fl7::faces::EditBox::IsProtected | ( | const bool | protected_ | ) | [inline] |
Sets the flag specifying whether the text within this edit box is protected. If this flag is set to true, you can not edit or copy-and-paste the text.
| bool fl7::faces::EditBox::IsReadonly | ( | ) | const [inline] |
Returns the flag specifying whether the text within this edit box is readonly.
| void fl7::faces::EditBox::IsReadonly | ( | const bool | readonly | ) | [inline] |
Sets the flag specifying whether the text within this edit box is readonly.
| void fl7::faces::EditBox::RemoveFromIgnoreList | ( | cl7::char_type | chr | ) |
Removes the given character from the ignore list.
| void fl7::faces::EditBox::SetCursorPosition | ( | const size_t | cursor_position | ) |
Sets the position of the cursor.
| void fl7::faces::EditBox::SetText | ( | const cl7::string_type & | text | ) |
Sets the text of this text box.
Will be called after the text of this edit box has been confirmed.
Will be called after the text of this edit box has been changed.
| friend fl7::faces::EditBox::Shell |
Reimplemented from fl7::faces::Control.
1.7.1