Fl_Secret_Input Class Reference

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>

Inheritance diagram for Fl_Secret_Input:
Fl_Input Fl_Input_ Fl_Widget

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

Parameters:
[in] event the kind of event received
Return values:
0 if the event was not used or understood
1 if the event was used and can be deleted
See also:
Fl_Event

Reimplemented from Fl_Input.


The documentation for this class was generated from the following files: