Ewl_Scrollpane: A Scrollable Viewing Area
Detailed Description
Provides a scrollable area for viewing large sets of widgets in a smaller viewable region.
- Remarks:
- Inherits from Ewl_Container.
Tutorial
Data Structures | |
struct | Ewl_Scrollpane |
Inherits from Ewl_Container and extends it to enclose a single widget in vertical and horizontal scrollbars for panning around displaying different regions of the enclosed widget. More... | |
Defines | |
#define | EWL_SCROLLPANE(scrollpane) ((Ewl_Scrollpane *) scrollpane) |
#define | EWL_SCROLLPANE_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_SCROLLPANE_TYPE)) |
#define | EWL_SCROLLPANE_TYPE "scrollpane" |
Typedefs | |
typedef Ewl_Scrollpane | Ewl_Scrollpane |
Functions | |
void | ewl_scrollpane_cb_configure (Ewl_Widget *w, void *ev_data, void *user_data) |
void | ewl_scrollpane_cb_container_resize (Ewl_Container *p, Ewl_Widget *c, int size, Ewl_Orientation o) |
void | ewl_scrollpane_cb_container_show (Ewl_Container *p, Ewl_Widget *c) |
void | ewl_scrollpane_cb_focus_jump (Ewl_Widget *w, void *ev_data, void *user_data) |
int | ewl_scrollpane_init (Ewl_Scrollpane *s) |
Initialize the fields of a scrollpane. | |
Ewl_Widget * | ewl_scrollpane_new (void) |
Create a new scrollpane. |
Define Documentation
#define EWL_SCROLLPANE | ( | scrollpane | ) | ((Ewl_Scrollpane *) scrollpane) |
Typecasts a pointer to an Ewl_Scrollpane pointer.
#define EWL_SCROLLPANE_IS | ( | w | ) | (ewl_widget_type_is(EWL_WIDGET(w), EWL_SCROLLPANE_TYPE)) |
Returns TRUE if the widget is an Ewl_Scrollpane, FALSE otherwise
#define EWL_SCROLLPANE_TYPE "scrollpane" |
The type name for the Ewl_Scrollpane widget
Typedef Documentation
typedef struct Ewl_Scrollpane Ewl_Scrollpane |
The scrollpane provides a way to pan around large collections of images.
Function Documentation
void ewl_scrollpane_cb_configure | ( | Ewl_Widget * | w, | |
void * | ev_data, | |||
void * | user_data | |||
) |
void ewl_scrollpane_cb_container_resize | ( | Ewl_Container * | p, | |
Ewl_Widget * | c, | |||
int | size, | |||
Ewl_Orientation | o | |||
) |
void ewl_scrollpane_cb_container_show | ( | Ewl_Container * | p, | |
Ewl_Widget * | c | |||
) |
void ewl_scrollpane_cb_focus_jump | ( | Ewl_Widget * | w, | |
void * | ev_data, | |||
void * | user_data | |||
) |
int ewl_scrollpane_init | ( | Ewl_Scrollpane * | s | ) |
Initialize the fields of a scrollpane.
- Parameters:
-
s,: the scrollpane to initialize
- Returns:
- Returns no value.
Ewl_Widget* ewl_scrollpane_new | ( | void | ) |
Create a new scrollpane.
- Returns:
- Returns a new scrollpane on success, NULL on failure.