Ewl_List: A list widget
Detailed Description
Defines a class to layout data in a list.
- Remarks:
- Inherits from Ewl_MVC.
Tutorial
Data Structures | |
struct | Ewl_List |
Inherits from Ewl_MVC and extends to provide a list widget. More... | |
Defines | |
#define | EWL_LIST(list) ((Ewl_List *)list) |
#define | EWL_LIST_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_LIST_TYPE)) |
#define | EWL_LIST_TYPE "list" |
Typedefs | |
typedef struct Ewl_List | Ewl_List |
Functions | |
void | ewl_list_cb_child_add (Ewl_Container *c, Ewl_Widget *w) |
void | ewl_list_cb_configure (Ewl_Widget *w, void *ev, void *data) |
void | ewl_list_cb_item_clicked (Ewl_Widget *w, void *ev, void *data) |
void | ewl_list_cb_selected_change (Ewl_MVC *mvc) |
int | ewl_list_init (Ewl_List *list) |
Initialises an Ewl_List widget to default values. | |
Ewl_Widget * | ewl_list_new (void) |
Creates and initializes a new Ewl_List widget. |
Define Documentation
#define EWL_LIST | ( | list | ) | ((Ewl_List *)list) |
Typecasts a pointer to an Ewl_List pointer
Referenced by ewl_list_cb_configure(), and ewl_list_new().
#define EWL_LIST_IS | ( | w | ) | (ewl_widget_type_is(EWL_WIDGET(w), EWL_LIST_TYPE)) |
Returns TRUE if the widget is an Ewl_LIST, FALSE otherwise
#define EWL_LIST_TYPE "list" |
The type name for the Ewl_List widget
Referenced by ewl_list_cb_configure(), ewl_list_cb_item_clicked(), ewl_list_cb_selected_change(), and ewl_list_init().
Typedef Documentation
Function Documentation
void ewl_list_cb_child_add | ( | Ewl_Container * | c, | |
Ewl_Widget * | w | |||
) |
void ewl_list_cb_configure | ( | Ewl_Widget * | w, | |
void * | ev, | |||
void * | data | |||
) |
References Ewl_Model::count, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, DRETURN, ewl_callback_append(), EWL_CALLBACK_CLICKED, EWL_CELL, ewl_cell_new(), ewl_cell_state_change_cb_add(), EWL_CONTAINER, ewl_container_child_append(), ewl_container_reset(), EWL_LIST, ewl_list_cb_item_clicked(), ewl_list_cb_selected_change(), EWL_LIST_TYPE, EWL_MVC, ewl_mvc_data_get(), ewl_mvc_dirty_get(), ewl_mvc_dirty_set(), ewl_mvc_model_get(), ewl_mvc_view_get(), ewl_widget_show(), Ewl_Model::fetch, and Ewl_View::fetch.
Referenced by ewl_list_init().
void ewl_list_cb_item_clicked | ( | Ewl_Widget * | w, | |
void * | ev, | |||
void * | data | |||
) |
References Ewl_Model::count, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, DRETURN, DWARNING, EWL_CONTAINER, ewl_container_child_index_get(), EWL_LIST_TYPE, EWL_MVC, ewl_mvc_data_get(), ewl_mvc_handle_click(), ewl_mvc_model_get(), ewl_mvc_selection_mode_get(), EWL_SELECTION_MODE_NONE, and EWL_WIDGET_TYPE.
Referenced by ewl_list_cb_configure().
void ewl_list_cb_selected_change | ( | Ewl_MVC * | mvc | ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_CONTAINER, EWL_LIST_TYPE, and ewl_mvc_highlight().
Referenced by ewl_list_cb_configure(), and ewl_list_init().
int ewl_list_init | ( | Ewl_List * | list | ) |
Initialises an Ewl_List widget to default values.
- Parameters:
-
list,: The list to initialize
- Returns:
- Returns TRUE on success or FALSE on failure
References DCHECK_PARAM_PTR_RET, DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_INT, ewl_callback_append(), EWL_CALLBACK_CONFIGURE, ewl_list_cb_configure(), ewl_list_cb_selected_change(), EWL_LIST_TYPE, EWL_MVC, ewl_mvc_init(), ewl_mvc_selected_change_cb_set(), EWL_WIDGET, ewl_widget_appearance_set(), and ewl_widget_inherit().
Referenced by ewl_list_new().
Ewl_Widget* ewl_list_new | ( | void | ) |
Creates and initializes a new Ewl_List widget.
- Returns:
- Returns a new Ewl_Widget on success or NULL on failure
References DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_PTR, EWL_LIST, ewl_list_init(), ewl_widget_destroy(), and NEW.