Same as String, except that the user never gets to see what he has typed in. More...
#include <cursorwindow.h>
Public Member Functions | |
bool | compute_actual_width (viewport *v) |
Compute actual width of input area given window size limitations. The function return value indicates that the offset_ member changed -- this implies a need to repaint the text input region. | |
void | draw_input_area (viewport *v, bool highlighted) |
paints [ ok ] | |
void | handle_key (viewport *v, int key) |
ignores all keys | |
void | handle_paging (viewport *v) |
Use horizontal paging if necessary to insure that the character in the string under col_ is actually visible. | |
Password (std::string const &name, std::string const &label, std::string const &default_value, int input_width) | |
void | setColumn (int col) |
Set the current input column. | |
Public Attributes | |
int | input_width_ |
std::string | label_ |
std::string | name_ |
std::string | value_ |
Protected Attributes | |
Dialog * | dialog_ |
bool | password_ |
this is a password string -- dont' echo its contents | |
Friends | |
class | Dialog |
Same as String, except that the user never gets to see what he has typed in.
Definition at line 1315 of file cursorwindow.h.
Password | ( | std::string const & | name, | |
std::string const & | label, | |||
std::string const & | default_value, | |||
int | input_width | |||
) |
Definition at line 1323 of file cursorwindow.h.
bool compute_actual_width | ( | viewport * | v | ) | [inherited] |
Compute actual width of input area given window size limitations. The function return value indicates that the offset_ member changed -- this implies a need to repaint the text input region.
Definition at line 2236 of file cursorwindow.cxx.
void draw_input_area | ( | viewport * | v, | |
bool | highlighted | |||
) | [virtual, inherited] |
paints [ ok ]
Implements Element.
Definition at line 2308 of file cursorwindow.cxx.
void handle_key | ( | viewport * | v, | |
int | key | |||
) | [virtual, inherited] |
ignores all keys
Implements Element.
Definition at line 2359 of file cursorwindow.cxx.
void handle_paging | ( | viewport * | v | ) | [inherited] |
Use horizontal paging if necessary to insure that the character in the string under col_ is actually visible.
Definition at line 2288 of file cursorwindow.cxx.
void setColumn | ( | int | col | ) | [inherited] |
Set the current input column.
Definition at line 2351 of file cursorwindow.cxx.
friend class Dialog [friend, inherited] |
Definition at line 1169 of file cursorwindow.h.
Definition at line 1166 of file cursorwindow.h.
int input_width_ [inherited] |
Definition at line 1176 of file cursorwindow.h.
std::string label_ [inherited] |
Definition at line 1174 of file cursorwindow.h.
std::string name_ [inherited] |
Definition at line 1173 of file cursorwindow.h.
bool password_ [protected, inherited] |
this is a password string -- dont' echo its contents
Definition at line 1273 of file cursorwindow.h.
std::string value_ [inherited] |
Definition at line 1175 of file cursorwindow.h.