lib/ewl_progressbar.c File Reference
#include "ewl_base.h"
#include "ewl_progressbar.h"
#include "ewl_label.h"
#include "ewl_macros.h"
#include "ewl_private.h"
#include "ewl_debug.h"

Functions | |
| void | ewl_progressbar_cb_child_resize (Ewl_Container *c, Ewl_Widget *w __UNUSED__, int size __UNUSED__, Ewl_Orientation o __UNUSED__) |
| void | ewl_progressbar_cb_child_show (Ewl_Container *c, Ewl_Widget *w __UNUSED__) |
| void | ewl_progressbar_cb_configure (Ewl_Widget *w, void *ev_data __UNUSED__, void *user_data __UNUSED__) |
| void | ewl_progressbar_cb_value_changed (Ewl_Widget *w, void *ev_data __UNUSED__, void *user_data __UNUSED__) |
| void | ewl_progressbar_custom_label_set (Ewl_Progressbar *p, const char *format_string) |
| Sets the given format string on the progressbar (lf of lf beers). | |
| int | ewl_progressbar_init (Ewl_Progressbar *p) |
| Initialize the progressbar to some sane starting values. | |
| void | ewl_progressbar_label_hide (Ewl_Progressbar *p) |
| Hides the given progressbars label. | |
| void | ewl_progressbar_label_set (Ewl_Progressbar *p, const char *label) |
| Sets the given text on the progressbar. | |
| void | ewl_progressbar_label_show (Ewl_Progressbar *p) |
| Shows the given progressbars label. | |
| Ewl_Widget * | ewl_progressbar_new (void) |
| Allocate and initialize a new progressbar. | |
Function Documentation
| void ewl_progressbar_cb_child_resize | ( | Ewl_Container * | c, | |
| Ewl_Widget *w | __UNUSED__, | |||
| int size | __UNUSED__, | |||
| Ewl_Orientation o | __UNUSED__ | |||
| ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, and EWL_PROGRESSBAR_TYPE.
Referenced by ewl_progressbar_init().
| void ewl_progressbar_cb_child_show | ( | Ewl_Container * | c, | |
| Ewl_Widget *w | __UNUSED__ | |||
| ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, and EWL_PROGRESSBAR_TYPE.
Referenced by ewl_progressbar_init().
| void ewl_progressbar_cb_configure | ( | Ewl_Widget * | w, | |
| void *ev_data | __UNUSED__, | |||
| void *user_data | __UNUSED__ | |||
| ) |
References Ewl_Progressbar::bar, CURRENT_H, CURRENT_W, CURRENT_X, CURRENT_Y, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_OBJECT, ewl_object_geometry_request(), ewl_object_place(), EWL_PROGRESSBAR, EWL_PROGRESSBAR_TYPE, EWL_RANGE, Ewl_Range::invert, Ewl_Progressbar::label, Ewl_Range::max_val, Ewl_Range::min_val, and Ewl_Range::value.
Referenced by ewl_progressbar_init().
| void ewl_progressbar_cb_value_changed | ( | Ewl_Widget * | w, | |
| void *ev_data | __UNUSED__, | |||
| void *user_data | __UNUSED__ | |||
| ) |
References Ewl_Progressbar::auto_label, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_LABEL, ewl_label_text_set(), EWL_PROGRESSBAR, EWL_PROGRESSBAR_TYPE, EWL_RANGE, Ewl_Progressbar::label, Ewl_Range::max_val, Ewl_Range::min_val, and Ewl_Range::value.
Referenced by ewl_progressbar_init().