Download

Support

lib/ewl_progressbar.h

Go to the documentation of this file.
00001 /* vim: set sw=8 ts=8 sts=8 expandtab: */
00002 #ifndef EWL_PROGRESSBAR_H
00003 #define EWL_PROGRESSBAR_H
00004 
00005 #include "ewl_range.h"
00006 
00030 #define EWL_PROGRESSBAR_TYPE "progressbar"
00031 
00036 #define EWL_PROGRESSBAR_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_PROGRESSBAR_TYPE))
00037 
00041 typedef struct Ewl_Progressbar Ewl_Progressbar;
00042 
00047 #define EWL_PROGRESSBAR(progressbar) ((Ewl_Progressbar *) progressbar)
00048 
00053 struct Ewl_Progressbar
00054 {
00055         Ewl_Range range;     
00056         Ewl_Widget *bar;       
00057         Ewl_Widget *label;     
00058         int auto_label;         
00059 };
00060 
00061 
00062 Ewl_Widget      *ewl_progressbar_new(void);
00063 int              ewl_progressbar_init(Ewl_Progressbar *p);
00064 
00065 void             ewl_progressbar_label_set(Ewl_Progressbar *p,
00066                                         const char *label);
00067 void             ewl_progressbar_custom_label_set(Ewl_Progressbar *p,
00068                                         const char *format_string);
00069 
00070 void             ewl_progressbar_label_show(Ewl_Progressbar *p);
00071 void             ewl_progressbar_label_hide(Ewl_Progressbar *p);
00072 
00073 /*
00074  * Internally used callbacks, override at your own risk.
00075  */
00076 void ewl_progressbar_cb_configure(Ewl_Widget *w, void *ev_data,
00077                                   void *user_data);
00078 void ewl_progressbar_cb_value_changed(Ewl_Widget *w, void *ev_data,
00079                                   void *user_data);
00080 void ewl_progressbar_cb_child_show(Ewl_Container *c, Ewl_Widget *w);
00081 void ewl_progressbar_cb_child_resize(Ewl_Container *c, Ewl_Widget *w, int size,
00082                                      Ewl_Orientation o);
00083 
00088 #endif

Copyright © Enlightenment.org

Enlightened Widget Library Documentation Generated: Fri Jan 23 21:56:24 2009