lib/ewl_progressbar.h
Go to the documentation of this file.00001
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, char *label);
00066 void ewl_progressbar_custom_label_set(Ewl_Progressbar *p,
00067 char *format_string);
00068
00069 void ewl_progressbar_label_show(Ewl_Progressbar *p);
00070 void ewl_progressbar_label_hide(Ewl_Progressbar *p);
00071
00072
00073
00074
00075 void ewl_progressbar_cb_configure(Ewl_Widget *w, void *ev_data,
00076 void *user_data);
00077 void ewl_progressbar_cb_value_changed(Ewl_Widget *w, void *ev_data,
00078 void *user_data);
00079 void ewl_progressbar_cb_child_show(Ewl_Container *c, Ewl_Widget *w);
00080 void ewl_progressbar_cb_child_resize(Ewl_Container *c, Ewl_Widget *w, int size,
00081 Ewl_Orientation o);
00082
00087 #endif