Ewl_Seeker: A Value Selector from a Range
Detailed Description
Defines an Ewl_Widget with a draggable button enclosed, used to select a value from a range.
- Remarks:
- Inherits from Ewl_Range.
Tutorial
Data Structures | |
struct | Ewl_Seeker |
Inherits from Ewl_Range and extends to provide a seeker widget. More... | |
Defines | |
#define | EWL_SEEKER(seeker) ((Ewl_Seeker *) seeker) |
#define | EWL_SEEKER_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_SEEKER_TYPE)) |
#define | EWL_SEEKER_TYPE "seeker" |
Typedefs | |
typedef Ewl_Seeker | Ewl_Seeker |
Functions | |
Ewl_Widget * | ewl_hseeker_new (void) |
Allocate and initialize a new seeker with horizontal orientation. | |
int | ewl_seeker_autohide_get (Ewl_Seeker *s) |
Retrieves the current autohide setting on a seeker. | |
void | ewl_seeker_autohide_set (Ewl_Seeker *s, int v) |
Changes the autohide setting on the seeker to v. | |
void | ewl_seeker_cb_button_mouse_down (Ewl_Widget *w, void *ev_data, void *user_data) |
void | ewl_seeker_cb_button_mouse_up (Ewl_Widget *w, void *ev_data, void *user_data) |
void | ewl_seeker_cb_child_show (Ewl_Container *p, Ewl_Widget *w) |
void | ewl_seeker_cb_configure (Ewl_Widget *w, void *ev_data, void *user_data) |
void | ewl_seeker_cb_key_down (Ewl_Widget *w, void *ev_data, void *user_data) |
void | ewl_seeker_cb_mouse_down (Ewl_Widget *w, void *ev_data, void *user_data) |
void | ewl_seeker_cb_mouse_move (Ewl_Widget *w, void *ev_data, void *user_data) |
void | ewl_seeker_cb_mouse_up (Ewl_Widget *w, void *ev_data, void *user_data) |
int | ewl_seeker_init (Ewl_Seeker *s) |
Initialize the seeker to some sane starting values. | |
Ewl_Widget * | ewl_seeker_new (void) |
Allocate and initialize a new seeker with default orientation. | |
Ewl_Orientation | ewl_seeker_orientation_get (Ewl_Seeker *s) |
This will retrieve the current orientation set on the seeker. | |
void | ewl_seeker_orientation_set (Ewl_Seeker *s, Ewl_Orientation o) |
Changes the orientation of the given seeker. | |
Ewl_Widget * | ewl_vseeker_new (void) |
Allocate and initialize a new seeker with vertical orientation. |
Define Documentation
#define EWL_SEEKER | ( | seeker | ) | ((Ewl_Seeker *) seeker) |
Typecasts a pointer to an Ewl_Seeker pointer.
#define EWL_SEEKER_IS | ( | w | ) | (ewl_widget_type_is(EWL_WIDGET(w), EWL_SEEKER_TYPE)) |
Returns TRUE if the widget is an Ewl_Seeker, FALSE otherwise
#define EWL_SEEKER_TYPE "seeker" |
The type name for the Ewl_Seeker widget
Typedef Documentation
typedef struct Ewl_Seeker Ewl_Seeker |
The Ewl_Seeker provides a means to select a value from a range using a draggable button.
Function Documentation
Ewl_Widget* ewl_hseeker_new | ( | void | ) |
Allocate and initialize a new seeker with horizontal orientation.
- Returns:
- Returns NULL on failure, or a pointer to the new seeker on success.
int ewl_seeker_autohide_get | ( | Ewl_Seeker * | s | ) |
Retrieves the current autohide setting on a seeker.
- Parameters:
-
s,: the seeker to retrieve autohide value
- Returns:
- Returns TRUE if autohide set, otherwise FALSE.
void ewl_seeker_autohide_set | ( | Ewl_Seeker * | s, | |
int | v | |||
) |
Changes the autohide setting on the seeker to v.
- Parameters:
-
s,: the seeker to change autohide v,: the new boolean value for autohiding
- Returns:
- Returns no value.
void ewl_seeker_cb_button_mouse_down | ( | Ewl_Widget * | w, | |
void * | ev_data, | |||
void * | user_data | |||
) |
void ewl_seeker_cb_button_mouse_up | ( | Ewl_Widget * | w, | |
void * | ev_data, | |||
void * | user_data | |||
) |
void ewl_seeker_cb_child_show | ( | Ewl_Container * | p, | |
Ewl_Widget * | w | |||
) |
void ewl_seeker_cb_configure | ( | Ewl_Widget * | w, | |
void * | ev_data, | |||
void * | user_data | |||
) |
void ewl_seeker_cb_key_down | ( | Ewl_Widget * | w, | |
void * | ev_data, | |||
void * | user_data | |||
) |
void ewl_seeker_cb_mouse_down | ( | Ewl_Widget * | w, | |
void * | ev_data, | |||
void * | user_data | |||
) |
void ewl_seeker_cb_mouse_move | ( | Ewl_Widget * | w, | |
void * | ev_data, | |||
void * | user_data | |||
) |
void ewl_seeker_cb_mouse_up | ( | Ewl_Widget * | w, | |
void * | ev_data, | |||
void * | user_data | |||
) |
int ewl_seeker_init | ( | Ewl_Seeker * | s | ) |
Initialize the seeker to some sane starting values.
- Parameters:
-
s,: the seeker to be initialized
- Returns:
- Returns no value.
Ewl_Widget* ewl_seeker_new | ( | void | ) |
Allocate and initialize a new seeker with default orientation.
- Returns:
- Returns NULL on failure, or a pointer to the new seeker on success.
Ewl_Orientation ewl_seeker_orientation_get | ( | Ewl_Seeker * | s | ) |
This will retrieve the current orientation set on the seeker.
- Parameters:
-
s,: The seeker to get the orientation from
- Returns:
- Returns the orientation set on the seeker
void ewl_seeker_orientation_set | ( | Ewl_Seeker * | s, | |
Ewl_Orientation | o | |||
) |
Changes the orientation of the given seeker.
- Parameters:
-
s,: the seeker to change orientation o,: the new orientation for the seeker
- Returns:
- Returns no value.
Ewl_Widget* ewl_vseeker_new | ( | void | ) |
Allocate and initialize a new seeker with vertical orientation.
- Returns:
- Returns NULL on failure, or a pointer to the new seeker on success.