Download

Support

Ewl_Check: The Simple Check for a Checkbutton


Detailed Description

Defines a widget with single purpose of providing a button with a checked state, without any extra decorating.

Remarks:
Inherits from Ewl_Widget.

Tutorial

 Ewl_Widget *check;
 check = ewl_check_new();
 ewl_check_checked_set(EWL_CHECK(check), FALSE);
 ewl_widget_show(check);


Data Structures

struct  Ewl_Check
 Inherits from Ewl_Widget and extends to provide a checked state. More...

Defines

#define EWL_CHECK(c)   ((Ewl_Check *)c)
#define EWL_CHECK_IS(w)   (ewl_widget_type_is(EWL_WIDGET(w), EWL_CHECK_TYPE))
#define EWL_CHECK_TYPE   "check"

Typedefs

typedef Ewl_Check Ewl_Check

Functions

void ewl_check_cb_clicked (Ewl_Widget *w, void *ev_data, void *user_data)
void ewl_check_cb_update_check (Ewl_Widget *w, void *ev_data, void *user_data)
void ewl_check_checked_set (Ewl_Check *c, int checked)
 Change the checked status of the check.
int ewl_check_init (Ewl_Check *c)
 Initialize the members and callbacks of a check.
int ewl_check_is_checked (Ewl_Check *c)
 Determine the check state of the check.
Ewl_Widgetewl_check_new (void)
 Allocate and initialize a new check.

Define Documentation

#define EWL_CHECK (  )     ((Ewl_Check *)c)

Typecasts a pointer to an Ewl_Check pointer.

#define EWL_CHECK_IS (  )     (ewl_widget_type_is(EWL_WIDGET(w), EWL_CHECK_TYPE))

Returns TRUE if the widget is an Ewl_Check, FALSE otherwise

#define EWL_CHECK_TYPE   "check"

The type name for the Ewl_Check widget


Typedef Documentation

typedef struct Ewl_Check Ewl_Check

A single purpose extension of Ewl_Widget to provide a checked state.


Function Documentation

void ewl_check_cb_clicked ( Ewl_Widget w,
void *  ev_data,
void *  user_data 
)

void ewl_check_cb_update_check ( Ewl_Widget w,
void *  ev_data,
void *  user_data 
)

void ewl_check_checked_set ( Ewl_Check cb,
int  c 
)

Change the checked status of the check.

Parameters:
cb,: the check to change the status
c,: the new status of the check
Returns:
Returns no value.
Changes the checked status of the check and updates it's appearance to reflect the change.

int ewl_check_init ( Ewl_Check cb  ) 

Initialize the members and callbacks of a check.

Parameters:
cb,: the check to initialize
Returns:
Returns TRUE on success, FALSE on failure.
The internal structures and callbacks of the check are initialized ot default values.

int ewl_check_is_checked ( Ewl_Check cb  ) 

Determine the check state of the check.

Parameters:
cb,: the check to examine for it's checked state
Returns:
Returns TRUE if the check is checked, FALSE if not.

Ewl_Widget* ewl_check_new ( void   ) 

Allocate and initialize a new check.

Returns:
Returns the newly allocated check on success, NULL on failure.


Copyright © Enlightenment.org

Enlightened Widget Library Documentation Generated: Sun Sep 27 01:49:46 2009