lib/ewl_scrollbar.c File Reference
#include <math.h>
#include "ewl_base.h"
#include "ewl_scrollbar.h"
#include "ewl_button.h"
#include "ewl_seeker.h"
#include "ewl_macros.h"
#include "ewl_private.h"
#include "ewl_debug.h"

Functions | |
| Ewl_Widget * | ewl_hscrollbar_new (void) |
| Allocate and initialize a new horizontal scrollbar widget. | |
| void | ewl_scrollbar_cb_scroll_start (Ewl_Widget *w, void *ev_data __UNUSED__, void *user_data) |
| void | ewl_scrollbar_cb_scroll_stop (Ewl_Widget *w __UNUSED__, void *ev_data __UNUSED__, void *user_data) |
| int | ewl_scrollbar_init (Ewl_Scrollbar *s) |
| Initialize a scrollbar to default values. | |
| char | ewl_scrollbar_inverse_scroll_get (Ewl_Scrollbar *s) |
| Checks the inverse scrolling flag on a scrollbar. | |
| void | ewl_scrollbar_inverse_scroll_set (Ewl_Scrollbar *s, char i) |
| Sets the inverse scrolling flag on a scrollbar. | |
| Ewl_Widget * | ewl_scrollbar_new (void) |
| Allocate and initialize a new scrollbar widget. | |
| Ewl_Orientation | ewl_scrollbar_orientation_get (Ewl_Scrollbar *s) |
| Change the orientation of a scrollbar. | |
| void | ewl_scrollbar_orientation_set (Ewl_Scrollbar *s, Ewl_Orientation o) |
| Change the orientation of a scrollbar. | |
| double | ewl_scrollbar_step_get (Ewl_Scrollbar *s) |
| Get the current step size of the scrollbar. | |
| void | ewl_scrollbar_step_set (Ewl_Scrollbar *s, double v) |
| Change the step size of a scrollbar. | |
| double | ewl_scrollbar_value_get (Ewl_Scrollbar *s) |
| Get the current value of the dragbar. | |
| void | ewl_scrollbar_value_set (Ewl_Scrollbar *s, double v) |
| Set the current value of the dragbar. | |
| Ewl_Widget * | ewl_vscrollbar_new (void) |
| Allocate and initialize a new vertical scrollbar widget. | |
Function Documentation
| void ewl_scrollbar_cb_scroll_start | ( | Ewl_Widget * | w, | |
| void *ev_data | __UNUSED__, | |||
| void * | user_data | |||
| ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, Ewl_Scrollbar::direction, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_SCROLLBAR, EWL_SCROLLBAR_TYPE, EWL_WIDGET_TYPE, Ewl_Scrollbar::increment, Ewl_Scrollbar::invert, Ewl_Scrollbar::start_time, and Ewl_Scrollbar::timer.
Referenced by ewl_scrollbar_init().
| void ewl_scrollbar_cb_scroll_stop | ( | Ewl_Widget *w | __UNUSED__, | |
| void *ev_data | __UNUSED__, | |||
| void * | user_data | |||
| ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, Ewl_Scrollbar::direction, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_SCROLLBAR, EWL_SCROLLBAR_TYPE, Ewl_Scrollbar::start_time, and Ewl_Scrollbar::timer.
Referenced by ewl_scrollbar_init().