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

Combo: A Simple Internal Combo Box

Defines a combo box used internally. More...

Data Structures

struct  Ewl_Combo
 Inherits from the Ewl_Menu_Base and does not extend the structure, but provides policy for drawing on the current evas. More...

struct  Ewl_Combo
 Inherits from the Ewl_Menu_Base and does not extend the structure, but provides policy for drawing on the current evas. More...


Defines

#define EWL_COMBO(combo)   ((Ewl_Combo *) combo)
 Typecasts a pointer to an Ewl_Combo pointer.


Typedefs

typedef Ewl_Combo Ewl_Combo
 A simple internal combo box, it is limited to drawing within the current evas.


Functions

Ewl_Widgetewl_combo_new (char *title)
 Create a new internal combo.

void ewl_combo_init (Ewl_Combo *combo, char *title)
 Initialize an internal combo to starting values.

char * ewl_combo_selected_get (Ewl_Combo *combo)
 Gets the currently selected item.

void ewl_combo_selected_set (Ewl_Combo *combo, char *item)
 Set the currently selected item.

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

Detailed Description

Defines a combo box used internally.

The contents on the box are not drawn outside of the Evas.


Function Documentation

void ewl_combo_expand_cb Ewl_Widget w,
void *  ev_data,
void *  user_data
 

void ewl_combo_init Ewl_Combo combo,
char *  title
 

Initialize an internal combo to starting values.

Parameters:
combo: the combo to initialize
title: the string displayed in the title
Returns:
Returns no value.

Ewl_Widget* ewl_combo_new char *  title  ) 
 

Create a new internal combo.

Parameters:
title: the text to place in the combo
Returns:
Returns a pointer to a new combo on success, NULL on failure.

char* ewl_combo_selected_get Ewl_Combo combo  ) 
 

Gets the currently selected item.

Parameters:
combo: the combo to get the selcted item of
Returns:
Returns the currently selected item (possibly NULL)

void ewl_combo_selected_set Ewl_Combo combo,
char *  item
 

Set the currently selected item.

Parameters:
combo: the combo to set the selected item of
item: the string to be set as selected
Returns:
Returns no value