Download

Support

Ewl_Checkbutton: An Ewl_Checkbutton with Label


Detailed Description

Defines an Ewl_Checkbutton that inherits from Ewl_Widget and provides an Ewl_Check that changes value on each click.

Remarks:
Inherits from Ewl_Button.


Data Structures

struct  Ewl_Checkbutton
 Inherits from Ewl_Button and expands to provide a stateful check button. More...

Defines

#define EWL_CHECKBUTTON(button)   ((Ewl_Checkbutton *) button)
#define EWL_CHECKBUTTON_IS(w)   (ewl_widget_type_is(EWL_WIDGET(w), EWL_CHECKBUTTON_TYPE))
#define EWL_CHECKBUTTON_TYPE   "checkbutton"

Typedefs

typedef Ewl_Checkbutton Ewl_Checkbutton

Functions

int ewl_checkbutton_init (Ewl_Checkbutton *cb)
 Initialize the members and callbacks of a check button.
Ewl_Widgetewl_checkbutton_new (void)
 Allocate and initialize a new check button.

Define Documentation

#define EWL_CHECKBUTTON ( button   )     ((Ewl_Checkbutton *) button)

Typecasts a pointer to an Ewl_Checkbutton pointer.

#define EWL_CHECKBUTTON_IS (  )     (ewl_widget_type_is(EWL_WIDGET(w), EWL_CHECKBUTTON_TYPE))

Returns TRUE if the widget is an Ewl_Checkbutton, FALSE otherwise

#define EWL_CHECKBUTTON_TYPE   "checkbutton"

The type name for the Ewl_Checkbutton widget


Typedef Documentation

The button class is a basic button with a label. This class is inherited by the check button and radio button classes.


Function Documentation

int ewl_checkbutton_init ( Ewl_Checkbutton cb  ) 

Initialize the members and callbacks of a check button.

Parameters:
cb,: the check button to initialize
Returns:
Returns no value.
The internal structures and callbacks of the checkbutton are initialized to default values.

Ewl_Widget* ewl_checkbutton_new ( void   ) 

Allocate and initialize a new check button.

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


Copyright © Enlightenment.org

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