Download

Support

lib/ewl_model.h File Reference

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

Go to the source code of this file.


Data Structures

struct  Ewl_Model
 Holds the callbacks needed to define a model. More...

Defines

#define EWL_MODEL(model)   ((Ewl_Model *)model)
#define EWL_MODEL_COLUMN_SORTABLE(f)   ((Ewl_Model_Column_Sortable)f)
#define EWL_MODEL_DATA_COUNT(f)   ((Ewl_Model_Data_Count)f)
#define EWL_MODEL_DATA_EXPANDABLE(f)   ((Ewl_Model_Data_Expandable)f)
#define EWL_MODEL_DATA_FETCH(f)   ((Ewl_Model_Data_Fetch)f)
#define EWL_MODEL_DATA_HEADER_FETCH(f)   ((Ewl_Model_Data_Header_Fetch)f)
#define EWL_MODEL_DATA_HIGHLIGHT(f)   ((Ewl_Model_Data_Highlight)f)
#define EWL_MODEL_DATA_SORT(f)   ((Ewl_Model_Data_Sort)f)
#define EWL_MODEL_DATA_UNREF(f)   ((Ewl_Model_Data_Unref)f)
#define EWL_MODEL_EXPANSION_DATA_FETCH(f)   ((Ewl_Model_Expansion_Data_Fetch)f)
#define EWL_MODEL_EXPANSION_MODEL_FETCH(f)   ((Ewl_Model_Expansion_Model_Fetch)(f)
#define EWL_MODEL_FREE(f)   ((Ewl_Model_Data_Free)f)

Typedefs

typedef struct Ewl_Model Ewl_Model
typedef int(* Ewl_Model_Column_Sortable )(void *data, unsigned int col)
typedef unsigned int(* Ewl_Model_Data_Count )(void *data)
typedef int(* Ewl_Model_Data_Expandable )(void *data, unsigned int row)
typedef void *(* Ewl_Model_Data_Fetch )(void *data, unsigned int row, unsigned int column)
typedef void(* Ewl_Model_Data_Free )(void *data)
typedef void *(* Ewl_Model_Data_Header_Fetch )(void *data, unsigned int col)
typedef unsigned int(* Ewl_Model_Data_Highlight )(void *data, unsigned int row)
typedef void(* Ewl_Model_Data_Sort )(void *data, unsigned int column, Ewl_Sort_Direction sort)
typedef unsigned int(* Ewl_Model_Data_Unref )(void *data)
typedef void *(* Ewl_Model_Expansion_Data_Fetch )(void *data, unsigned int row)
typedef Ewl_Model *(* Ewl_Model_Expansion_Model_Fetch )(void *data, unsigned int row)

Functions

unsigned int ewl_model_cb_ecore_list_count (void *data)
 This will return the number of elements in the ecore_list.
void * ewl_model_cb_ecore_list_fetch (void *data, unsigned int row, unsigned int col)
 This will return the row data element from the list.
Ewl_Model_Column_Sortable ewl_model_column_sortable_get (const Ewl_Model *m)
 Retrieves the sortable callback on the model.
void ewl_model_column_sortable_set (Ewl_Model *m, Ewl_Model_Column_Sortable sortable)
 Sets the sortable callback.
Ewl_Model_Data_Count ewl_model_data_count_get (const Ewl_Model *m)
 Gets the count callback from the model.
void ewl_model_data_count_set (Ewl_Model *m, Ewl_Model_Data_Count count)
 Sets the count callback into the model.
Ewl_Model_Data_Expandable ewl_model_data_expandable_get (const Ewl_Model *m)
 Retrieves the expandable callback set on the model.
void ewl_model_data_expandable_set (Ewl_Model *m, Ewl_Model_Data_Expandable exp)
 Sets the expandable callback on the given model.
Ewl_Model_Data_Fetch ewl_model_data_fetch_get (const Ewl_Model *m)
 Gets the fetch callback from the model.
void ewl_model_data_fetch_set (Ewl_Model *m, Ewl_Model_Data_Fetch get)
 Sets the fetch callback in the model.
Ewl_Model_Data_Free ewl_model_data_free_get (const Ewl_Model *m)
 Get the data free pointer set on this model.
void ewl_model_data_free_set (Ewl_Model *m, Ewl_Model_Data_Free assign)
 Set the data free pointer on this view.
Ewl_Model_Data_Header_Fetch ewl_model_data_header_fetch_get (const Ewl_Model *m)
 Retrieves the header fetch function.
void ewl_model_data_header_fetch_set (Ewl_Model *m, Ewl_Model_Data_Header_Fetch get)
 Sets the fetch callback into the model.
Ewl_Model_Data_Highlight ewl_model_data_highlight_get (const Ewl_Model *m)
 Retrieves the highlight model set in m.
void ewl_model_data_highlight_set (Ewl_Model *m, Ewl_Model_Data_Highlight highlight)
 Sets the highlight callback into the model m.
Ewl_Model_Data_Sort ewl_model_data_sort_get (const Ewl_Model *m)
 Gets the sort callback from the model.
void ewl_model_data_sort_set (Ewl_Model *m, Ewl_Model_Data_Sort sort)
 Sets the sort callback into the model.
Ewl_Model_Data_Unref ewl_model_data_unref_get (const Ewl_Model *m)
 Gets the unref callback from the model.
void ewl_model_data_unref_set (Ewl_Model *m, Ewl_Model_Data_Unref unref)
 Sets the unref callback into the model.
Ewl_Modelewl_model_ecore_list_instance (void)
 Retrieves a model pre-initialized to work with an ecore list. This will setup the fetch and count methods for you.
Ewl_Model_Expansion_Data_Fetch ewl_model_expansion_data_fetch_get (const Ewl_Model *m)
 Gets the expansion_data callback from the model.
void ewl_model_expansion_data_fetch_set (Ewl_Model *m, Ewl_Model_Expansion_Data_Fetch get)
 Sets the subfetch callback into the model.
Ewl_Model_Expansion_Model_Fetch ewl_model_expansion_model_fetch_get (const Ewl_Model *m)
 Retrieves the model expansion model fetch function.
void ewl_model_expansion_model_fetch_set (Ewl_Model *m, Ewl_Model_Expansion_Model_Fetch f)
 Sets the model expansion model fetch callback to f.
int ewl_model_init (Ewl_Model *model)
 Set the model to the default values.
Ewl_Modelewl_model_new (void)
 Creates a new Ewl_Model object.

Copyright © Enlightenment.org

Enlightened Widget Library Documentation Generated: Sat May 17 16:50:20 2008