lib/ewl_freebox_mvc.h
Go to the documentation of this file.00001 /* vim: set sw=8 ts=8 sts=8 expandtab: */ 00002 #ifndef EWL_FREEBOX_MVC_H 00003 #define EWL_FREEBOX_MVC_H 00004 00005 #include "ewl_mvc.h" 00006 00020 #define EWL_FREEBOX_MVC_TYPE "freebox_mvc" 00021 00026 #define EWL_FREEBOX_MVC_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_FREEBOX_MVC_TYPE)) 00027 00032 #define EWL_FREEBOX_MVC(box) ((Ewl_Freebox_MVC *)box) 00033 00037 typedef struct Ewl_Freebox_MVC Ewl_Freebox_MVC; 00038 00042 struct Ewl_Freebox_MVC 00043 { 00044 Ewl_MVC mvc; 00046 Ewl_Widget *freebox; 00047 }; 00048 00049 Ewl_Widget *ewl_freebox_mvc_new(void); 00050 Ewl_Widget *ewl_hfreebox_mvc_new(void); 00051 Ewl_Widget *ewl_vfreebox_mvc_new(void); 00052 int ewl_freebox_mvc_init(Ewl_Freebox_MVC *fb_mvc); 00053 00054 void ewl_freebox_mvc_orientation_set(Ewl_Freebox_MVC *fb_mvc, 00055 Ewl_Orientation orientation); 00056 Ewl_Orientation ewl_freebox_mvc_orientation_get(Ewl_Freebox_MVC *fb_mvc); 00057 00058 /* 00059 * Internal stuff. 00060 */ 00061 void ewl_freebox_mvc_cb_configure(Ewl_Widget *w, void *ev, void *data); 00062 void ewl_freebox_mvc_cb_item_clicked(Ewl_Widget *w, void *ev, void *data); 00063 void ewl_freebox_mvc_cb_selected_change(Ewl_MVC *mvc); 00064 00069 #endif