lib/ewl_expansion.h
Go to the documentation of this file.00001 /* vim: set sw=8 ts=8 sts=8 expandtab: */ 00002 #ifndef EWL_EXPANSION_H 00003 #define EWL_EXPANSION_H 00004 00025 #define EWL_EXPANSION_TYPE "expansion" 00026 00031 #define EWL_EXPANSION_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_EXPANSION_TYPE)) 00032 00036 typedef struct Ewl_Expansion Ewl_Expansion; 00037 00042 #define EWL_EXPANSION(c) ((Ewl_Expansion *)c) 00043 00047 struct Ewl_Expansion 00048 { 00049 Ewl_Check w; 00050 int expandable; 00051 }; 00052 00053 Ewl_Widget *ewl_expansion_new(void); 00054 int ewl_expansion_init(Ewl_Expansion *c); 00055 00056 int ewl_expansion_is_expandable(Ewl_Expansion *c); 00057 void ewl_expansion_expandable_set(Ewl_Expansion *c, 00058 int expandable); 00059 /* 00060 * Internally used callbacks. 00061 */ 00062 void ewl_expansion_cb_reveal(Ewl_Widget *w, void *ev_data, void *user_data); 00063 00068 #endif 00069