The Fl_Secret_Input class is a subclass of Fl_Input that displays its input as a string of placeholders. More...
#include <Fl_Secret_Input.H>
Public Member Functions | |
Fl_Secret_Input (int X, int Y, int W, int H, const char *l=0) | |
Creates a new Fl_Secret_Input widget using the given position, size, and label string. | |
int | handle (int) |
Handles the specified event. |
The Fl_Secret_Input class is a subclass of Fl_Input that displays its input as a string of placeholders.
Depending on the platform this placeholder is either the asterisk ('*') or the Unicode bullet character (U+2022).
This subclass is usually used to receive passwords and other "secret" information.
Fl_Secret_Input::Fl_Secret_Input | ( | int | X, | |
int | Y, | |||
int | W, | |||
int | H, | |||
const char * | l = 0 | |||
) |
Creates a new Fl_Secret_Input widget using the given position, size, and label string.
The default boxtype is FL_DOWN_BOX.
Inherited destructor destroys the widget and any value associated with it.
int Fl_Secret_Input::handle | ( | int | event | ) | [virtual] |
Handles the specified event.
You normally don't call this method directly, but instead let FLTK do it when the user interacts with the widget.
When implemented in a widget, this function must return 0 if the widget does not use the event or 1 otherwise.
Most of the time, you want to call the inherited handle() method in your overridden method so that you don't short-circuit events that you don't handle. In this last case you should return the callee retval.
[in] | event | the kind of event received |
0 | if the event was not used or understood | |
1 | if the event was used and can be deleted |
Reimplemented from Fl_Input.