Public Types | |
enum | echo_mode { normal, password, no_echo } |
Public Member Functions | |
edit (const std::string &str="", panel *parent=0, bool accept=true) | |
void | resize (unsigned int size) |
void | set_text (const std::string &str) |
void | set_mode (echo_mode mode) |
void | set_max (unsigned int max) |
void | set_mask (mask *m) |
virtual void | draw () |
Protected Member Functions | |
event::result | at_keyboard (const keyboard &ev) |
virtual void | change_color () |
Private Member Functions | |
event::result | at_system (const event &ev) |
bool | scroll_right () |
bool | scroll_left () |
bool | recalibrate () |
void | set_cursor () |
void | insert (unsigned int pos, char sym) |
void | erase (unsigned int pos) |
Private Attributes | |
unsigned int | current_ |
unsigned int | begin_ |
echo_mode | mode_ |
unsigned int | max_ |
mask * | mask_ |
|
|
|
|
|
public, 'cause used by listbox Reimplemented from ndk::mini_button. |
|
system event processor Reimplemented from ndk::button. |
|
|
|
special draw method for edit Reimplemented from ndk::label. |
|
erase/replace symbol at position |
|
insert/replace symbol at position |
|
recalibrate begin_ position |
|
* helper to resize widget only in one direction |
|
scroll viewport to the left |
|
scroll viewport to the right |
|
move cursor to current position |
|
set(reset) edit mask |
|
set maximum possible size of the text |
|
set edit's text display mode |
|
set text, draw and reset current cursor position Reimplemented from ndk::label. |
|
beginning of the string |
|
current cursor position under string |
|
edit mask, if we have |
|
maximum possible text's size |
|
|