lib/ewl_mvc.h File Reference
#include "ewl_box.h"
#include "ewl_model.h"
#include "ewl_view.h"
Include dependency graph for ewl_mvc.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Data Structures | |
| struct | Ewl_MVC |
| Inherits from Ewl_Box and extends to provide mvc functionality. More... | |
| struct | Ewl_Selection |
| Structure to store information on selections. More... | |
| struct | Ewl_Selection_Idx |
| Structure to store information on a single index selection. More... | |
| struct | Ewl_Selection_Range |
| Structure to store a range of selected cells. More... | |
Defines | |
| #define | EWL_MVC(mvc) ((Ewl_MVC *)mvc) |
| #define | EWL_MVC_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_MVC_TYPE)) |
| #define | EWL_MVC_TYPE "mvc" |
| #define | EWL_SELECTION(x) ((Ewl_Selection *)x) |
| #define | EWL_SELECTION_IDX(x) ((Ewl_Selection_Idx *)x) |
| #define | EWL_SELECTION_RANGE(x) ((Ewl_Selection_Range *)x) |
Typedefs | |
| typedef struct Ewl_MVC | Ewl_MVC |
| typedef struct Ewl_Selection | Ewl_Selection |
| typedef struct Ewl_Selection_Idx | Ewl_Selection_Idx |
| typedef struct Ewl_Selection_Range | Ewl_Selection_Range |
Functions | |
| void | ewl_mvc_cb_clicked_multi (Ewl_Widget *w, void *ev, void *data) |
| void | ewl_mvc_cb_clicked_single (Ewl_Widget *w, void *ev, void *data) |
| void | ewl_mvc_cb_data_unref (Ewl_Widget *w, void *ev, void *data) |
| void | ewl_mvc_cb_destroy (Ewl_Widget *w, void *ev, void *data) |
| void * | ewl_mvc_data_get (Ewl_MVC *mvc) |
| Retrieves the data set into the MVC widget. | |
| void | ewl_mvc_data_set (Ewl_MVC *mvc, void *data) |
| Sets the given data data into the MVC widget mvc. | |
| unsigned int | ewl_mvc_dirty_get (Ewl_MVC *mvc) |
| Retrieves the dirty status of the MVC widget. | |
| void | ewl_mvc_dirty_set (Ewl_MVC *mvc, unsigned int dirty) |
| Sets the dirty status of the MVC widget mvc to the dirty state. | |
| void | ewl_mvc_highlight (Ewl_MVC *mvc, Ewl_Container *c, Ewl_Widget *(*widget)(Ewl_MVC *mvc, void *data, unsigned int row, unsigned int column)) |
| int | ewl_mvc_init (Ewl_MVC *mvc) |
| Initializes an MVC widget ot default values. | |
| const Ewl_Model * | ewl_mvc_model_get (Ewl_MVC *mvc) |
| Retrieves the model set into the MVC widget. | |
| void | ewl_mvc_model_set (Ewl_MVC *mvc, const Ewl_Model *model) |
| Sets the given model into the tree. | |
| void * | ewl_mvc_private_data_get (Ewl_MVC *mvc) |
| Retrieves the data set into the MVC widget. | |
| void | ewl_mvc_private_data_set (Ewl_MVC *mvc, void *data) |
| Sets the given data data into the MVC widget mvc. | |
| void | ewl_mvc_selected_add (Ewl_MVC *mvc, const Ewl_Model *model, void *data, unsigned int row, unsigned int column) |
| Adds the given index to the selected list. | |
| void | ewl_mvc_selected_change_cb_set (Ewl_MVC *mvc, void(*cb)(Ewl_MVC *mvc)) |
| void | ewl_mvc_selected_clear (Ewl_MVC *mvc) |
| clears the selection list | |
| unsigned int | ewl_mvc_selected_count_get (Ewl_MVC *mvc) |
| Retrives the number of items selected in the widget. | |
| Ewl_Selection_Idx * | ewl_mvc_selected_get (Ewl_MVC *mvc) |
| Retrieves the last selected item. Return must be free'd. | |
| unsigned int | ewl_mvc_selected_is (Ewl_MVC *mvc, void *data, unsigned int row, unsigned int column) |
| Ecore_List * | ewl_mvc_selected_list_get (Ewl_MVC *mvc) |
| Retrieves the list of selected indicies. DO NOT remove or change items in this list. | |
| void | ewl_mvc_selected_list_set (Ewl_MVC *mvc, Ecore_List *list) |
| Sets the list of items to select. This will remove any items it needs from the list. | |
| void | ewl_mvc_selected_range_add (Ewl_MVC *mvc, const Ewl_Model *model, void *data, unsigned int srow, unsigned int scolumn, unsigned int erow, unsigned int ecolumn) |
| Sets the given range, inclusive, as selected in the mvc. | |
| void | ewl_mvc_selected_rm (Ewl_MVC *mvc, void *data, unsigned int row, unsigned int column) |
| void | ewl_mvc_selected_set (Ewl_MVC *mvc, const Ewl_Model *model, void *data, unsigned int row, unsigned int column) |
| Sets the given index as selected. | |
| Ewl_Selection * | ewl_mvc_selection_index_new (const Ewl_Model *model, void *data, unsigned int row, unsigned int column) |
| Creates a new index selection based on given values. | |
| Ewl_Selection_Mode | ewl_mvc_selection_mode_get (Ewl_MVC *mvc) |
| Retrieves the selection mode of the widget. | |
| void | ewl_mvc_selection_mode_set (Ewl_MVC *mvc, Ewl_Selection_Mode mode) |
| Sets the selection capabilities of the mvc widget. | |
| Ewl_Selection * | ewl_mvc_selection_range_new (const Ewl_Model *model, void *data, unsigned int srow, unsigned int scolumn, unsigned int erow, unsigned int ecolumn) |
| Creates a new range selection based on given values. | |
| void | ewl_mvc_view_change_cb_set (Ewl_MVC *mvc, void(*cb)(Ewl_MVC *mvc)) |
| This callback will be called whenever the ewl_mvc_view_set routine is called to notify the inheriting widget that the view has changed. | |
| const Ewl_View * | ewl_mvc_view_get (Ewl_MVC *mvc) |
| Retrives the current view set on the MVC. | |
| void | ewl_mvc_view_set (Ewl_MVC *mvc, const Ewl_View *view) |
| Sets the given view onto the MVC. | |
Variables | |
| unsigned int | EWL_CALLBACK_MVC_CLICKED |