Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Related Pages

Password: A Single Line Text Password Widget

Defines the Ewl_Password class to allow for single line obscured text. More...

Data Structures

struct  Ewl_Password
 Inherits from the Ewl_Entry and extends it to obscure the text. More...

struct  Ewl_Password
 Inherits from the Ewl_Entry and extends it to obscure the text. More...


Defines

#define EWL_PASSWORD(password)   ((Ewl_Password *) password)
 Typecasts a pointer to an Ewl_Password pointer.


Typedefs

typedef Ewl_Password Ewl_Password
 Inherits from the Ewl_Widget and provides single line editable text.


Functions

Ewl_Widgetewl_password_new (char *text)
 Allocate and initialize a new password widget.

void ewl_password_init (Ewl_Password *e, char *text)
 Initialize an password widget to default values.

void ewl_password_text_set (Ewl_Password *e, char *t)
 Set the text for an password widget.

char * ewl_password_text_get (Ewl_Password *e)
 Get the text from an password widget.

void ewl_password_obscure_set (Ewl_Password *e, char o)
 Sets the character used to obscure the text for a password.

char ewl_password_obscure_get (Ewl_Password *e)
 Retrieves the character used to obscure the text for a password.


Detailed Description

Defines the Ewl_Password class to allow for single line obscured text.


Function Documentation

void ewl_password_init Ewl_Password e,
char *  text
 

Initialize an password widget to default values.

Parameters:
e: the password widget to initialize
text: the initial text to display in the widget
Returns:
Returns no value.
Initializes the password widget e to it's default values and callbacks.

Ewl_Widget* ewl_password_new char *  text  ) 
 

Allocate and initialize a new password widget.

Parameters:
text: the initial text to display in the widget
Returns:
Returns a new password widget on success, NULL on failure.

char ewl_password_obscure_get Ewl_Password e  ) 
 

Retrieves the character used to obscure the text for a password.

Parameters:
e: the password to retrieve the obscuring character
Returns:
Returns the character value of the obscuring character.

void ewl_password_obscure_set Ewl_Password e,
char  o
 

Sets the character used to obscure the text for a password.

Parameters:
e: set the obscuring character for a passwords text
o: the character to obscure the password characters
Returns:
Returns no value.

char* ewl_password_text_get Ewl_Password e  ) 
 

Get the text from an password widget.

Parameters:
e: the password widget to retrieve the text
Returns:
Returns the password text on success, NULL on failure.

void ewl_password_text_set Ewl_Password e,
char *  t
 

Set the text for an password widget.

Parameters:
e: the password widget to change the text
t: the text to set for the password widget
Returns:
Returns no value.
Change the text of the password widget e to the string t.