#include <fastgl.h>
Inheritance diagram for fgl::FGEditBox:


buttons.cpp, and updown.cpp.
Public Member Functions | |
| virtual void | draw (void) |
| const double | ToDouble () const |
| const int | ToInteger () const |
| const char * | ToString () const |
| void | ClickUp (int state=1) |
| void | PasswdMode (int m) |
| void | HexMode (int m) |
| void | CapsMode (int m) |
| void | ChangeItem (int *p) |
| void | ChangeItem (char *p) |
| void | ChangeItem (double *p) |
| void | SetRange (double mi, double ma) |
| void | SetRange (int mi, int ma) |
| void | SetSize (int ns) |
| void | Disable (void) |
| FGEditBox (int xs, int ys, int ws1, int ws2, const char *nm, int key, FGWindow *w, int *pt, int ink, int paper, ControlCall f, int mn, int mx, int check, void *user_data) | |
| FGEditBox (int sz, int xs, int ys, int ws1, int ws2, const char *nm, int key, FGWindow *w, char *pt, int ink, int paper, ControlCall f, void *user_data) | |
| FGEditBox (int xs, int ys, int ws1, int ws2, const char *nm, int key, FGWindow *w, double *pt, int ink, int paper, ControlCall f, double mn, double mx, int check, void *user_data) | |
Static Public Attributes | |
| static const int | bufsize = 252 |
Protected Member Functions | |
| virtual void | draw (bool cursor, bool first_time=false) |
Protected Attributes | |
| int | w1 |
| int | w2 |
| int | min |
| int | max |
| dtype | data_type |
| unsigned | first:1 |
| unsigned | passwd:1 |
| unsigned | check_range:1 |
| unsigned | hex:1 |
| unsigned | caps:2 |
| unsigned | isinput:1 |
| double | mind |
| double | maxd |
| void * | ptr |
| char | buf [bufsize] |
| int | pos |
| int | maxpos |
| int | iline |
| int | icol |
| int | offset |
| int | size |
Static Protected Attributes | |
| static char | clip [bufsize] |
| static int | is_clip |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Create an editbox for an integer number input. Don't call this directly. Rather use FGWindow::AddEditBox() methods instead. |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Create an editbox for an text input. Don't call this directly. Rather use FGWindow::AddEditBox() methods instead. |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Create an editbox for an double precission number input. Don't call this directly. Rather use FGWindow::AddEditBox() methods instead. |
|
|
draw only input text with/without cursor All letters will be converted to the capitals. |
|
|
Change the data that are edited by editbox. You must call this methods to apropriate FGEditBox type - this is for an double type of the object. |
|
|
Change the data that are edited by editbox. You must call this methods to apropriate FGEditBox type - this is for an string type of the object. |
|
|
Change the data that are edited by editbox. You must call this methods to apropriate FGEditBox type - this is for an integer type of the object. |
|
|
Switch the inputbox into input mode (shows cursor and redirect all FGWindow's keypress into one). Reimplemented from fgl::FGControl. |
|
|
Override the disable methods. Reimplemented from fgl::FGControl. |
|
|
draw all
Reimplemented from fgl::FGControl. |
|
||||||||||||
|
redraw input string
|
|
|
The input will parsed as a hexadecimal number (without '0x' prefix). |
|
|
Sets password mode. All typed characters will be shown as '*'. |
|
||||||||||||
|
Change the range for edited values. You must call this methods to apropriate FGEditBox type - this one is for a int type of the object. |
|
||||||||||||
|
Change the range for edited values. You must call this methods to apropriate FGEditBox type - this one is for a double type of the object. |
|
|
Sets a new size of the input string. Default is calculated from the objects width. You can set values from 1 to 127. |
|
|
Dynamic cast.
Reimplemented from fgl::FGControl. |
|
|
Dynamic cast.
Reimplemented from fgl::FGControl. |
|
|
Dynamic cast.
Reimplemented from fgl::FGControl. |
|
|
max. size of the edited text string
|
1.4.0