lib/ewl_list.h
Go to the documentation of this file.00001 /* vim: set sw=8 ts=8 sts=8 expandtab: */ 00002 #ifndef EWL_LIST_H 00003 #define EWL_LIST_H 00004 00005 #include "ewl_mvc.h" 00006 00023 #define EWL_LIST_TYPE "list" 00024 00029 #define EWL_LIST_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_LIST_TYPE)) 00030 00035 #define EWL_LIST(list) ((Ewl_List *)list) 00036 00040 typedef struct Ewl_List Ewl_List; 00041 00045 struct Ewl_List 00046 { 00047 Ewl_MVC mvc; 00048 }; 00049 00050 Ewl_Widget *ewl_list_new(void); 00051 int ewl_list_init(Ewl_List *list); 00052 00053 /* 00054 * Internal stuff. 00055 */ 00056 void ewl_list_cb_configure(Ewl_Widget *w, void *ev, void *data); 00057 void ewl_list_cb_item_clicked(Ewl_Widget *w, void *ev, void *data); 00058 void ewl_list_cb_child_add(Ewl_Container *c, Ewl_Widget *w); 00059 void ewl_list_cb_selected_change(Ewl_MVC *mvc); 00060 00065 #endif 00066