lib/ewl_cell.h
Go to the documentation of this file.00001 /* vim: set sw=8 ts=8 sts=8 expandtab: */ 00002 #ifndef EWL_CELL_H 00003 #define EWL_CELL_H 00004 00026 #define EWL_CELL_TYPE "cell" 00027 00032 #define EWL_CELL_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_CELL_TYPE)) 00033 00037 typedef struct Ewl_Cell Ewl_Cell; 00038 00043 #define EWL_CELL(t) ((Ewl_Cell *)t) 00044 00048 struct Ewl_Cell 00049 { 00050 Ewl_Container container; 00051 }; 00052 00053 Ewl_Widget *ewl_cell_new(void); 00054 int ewl_cell_init(Ewl_Cell *cell); 00055 void ewl_cell_state_change_cb_add(Ewl_Cell *cell); 00056 void ewl_cell_state_change_cb_del(Ewl_Cell *cell); 00057 00058 /* 00059 * Internally used callbacks, override at your own risk. 00060 */ 00061 void ewl_cell_cb_configure(Ewl_Widget * w, void *ev_data, void *user_data); 00062 void ewl_cell_cb_child_show(Ewl_Container *c, Ewl_Widget *w); 00063 void ewl_cell_cb_child_resize(Ewl_Container *c, Ewl_Widget *w, int size, 00064 Ewl_Orientation o); 00065 00070 #endif