Ewl_Overlay: A Container for Displaying on a canvas
Detailed Description
Defines the Ewl_Overlay class to provide EWL with the ability to work with an evas.
- Remarks:
- Inherits from Ewl_Container.
Data Structures | |
struct | Ewl_Overlay |
The class inheriting from Ewl_Container that acts as a top level widget for interacting with the evas. More... | |
Defines | |
#define | EWL_OVERLAY(widget) ((Ewl_Overlay *) widget) |
Typecast a pointer to an Ewl_Overlay pointer. | |
#define | EWL_OVERLAY_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_OVERLAY_TYPE)) |
#define | EWL_OVERLAY_TYPE "overlay" |
Typedefs | |
typedef struct Ewl_Overlay | Ewl_Overlay |
Functions | |
void | ewl_overlay_cb_child_resize (Ewl_Container *c, Ewl_Widget *w, int size, Ewl_Orientation o) |
void | ewl_overlay_cb_child_show (Ewl_Container *emb, Ewl_Widget *child) |
void | ewl_overlay_cb_configure (Ewl_Widget *w, void *ev_data, void *user_data) |
int | ewl_overlay_init (Ewl_Overlay *win) |
initialize a overlay to default values and callbacks | |
Ewl_Widget * | ewl_overlay_new (void) |
Allocate and initialize a new overlay container. |
Define Documentation
#define EWL_OVERLAY | ( | widget | ) | ((Ewl_Overlay *) widget) |
#define EWL_OVERLAY_IS | ( | w | ) | (ewl_widget_type_is(EWL_WIDGET(w), EWL_OVERLAY_TYPE)) |
Returns TRUE if the widget is an Ewl_Overlay, FALSE otherwise
#define EWL_OVERLAY_TYPE "overlay" |
- Widget Theme Keys:
- /overlay/file
- Widget Theme Keys:
- /overlay/group
Referenced by ewl_overlay_cb_child_resize(), ewl_overlay_cb_child_show(), ewl_overlay_cb_configure(), and ewl_overlay_init().
Typedef Documentation
typedef struct Ewl_Overlay Ewl_Overlay |
The overlay structure is mostly a container for holding widgets and a wrapper evas smart object.
Function Documentation
void ewl_overlay_cb_child_resize | ( | Ewl_Container * | c, | |
Ewl_Widget * | w, | |||
int | size, | |||
Ewl_Orientation | o | |||
) |
References CURRENT_X, CURRENT_Y, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_CONTAINER, EWL_OBJECT, ewl_object_current_h_get(), ewl_object_current_w_get(), ewl_object_current_x_get(), ewl_object_current_y_get(), ewl_object_preferred_h_get(), ewl_object_preferred_inner_size_set(), ewl_object_preferred_w_get(), ewl_object_size_request(), ewl_object_x_request(), ewl_object_y_request(), EWL_OVERLAY, EWL_OVERLAY_TYPE, and EWL_WIDGET_TYPE.
Referenced by ewl_overlay_init().
void ewl_overlay_cb_child_show | ( | Ewl_Container * | emb, | |
Ewl_Widget * | child | |||
) |
References CURRENT_X, CURRENT_Y, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_OBJECT, ewl_object_current_x_get(), ewl_object_current_y_get(), ewl_object_preferred_h_get(), ewl_object_preferred_inner_h_set(), ewl_object_preferred_inner_w_set(), ewl_object_preferred_w_get(), EWL_OVERLAY_TYPE, EWL_WIDGET_TYPE, PREFERRED_H, and PREFERRED_W.
Referenced by ewl_overlay_init().
void ewl_overlay_cb_configure | ( | Ewl_Widget * | w, | |
void * | ev_data, | |||
void * | user_data | |||
) |
References CURRENT_H, CURRENT_W, CURRENT_X, CURRENT_Y, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_CONTAINER, EWL_OBJECT, ewl_object_current_x_get(), ewl_object_current_y_get(), ewl_object_size_request(), EWL_OVERLAY_TYPE, and UNMANAGED.
Referenced by ewl_overlay_init().
int ewl_overlay_init | ( | Ewl_Overlay * | w | ) |
initialize a overlay to default values and callbacks
- Parameters:
-
w,: the overlay to be initialized to default values and callbacks
- Returns:
- Returns TRUE or FALSE depending on if initialization succeeds. Sets the values and callbacks of a overlay w to their defaults.
References DCHECK_PARAM_PTR_RET, DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_INT, EWL_CALLBACK_CONFIGURE, ewl_callback_prepend(), EWL_CONTAINER, ewl_container_init(), ewl_container_resize_notify_set(), ewl_container_show_notify_set(), EWL_FLAG_FILL_NONE, EWL_OBJECT, ewl_object_fill_policy_set(), ewl_overlay_cb_child_resize(), ewl_overlay_cb_child_show(), ewl_overlay_cb_configure(), EWL_OVERLAY_TYPE, EWL_WIDGET, ewl_widget_appearance_set(), and ewl_widget_inherit().
Referenced by ewl_overlay_new().
Ewl_Widget* ewl_overlay_new | ( | void | ) |
Allocate and initialize a new overlay container.
- Returns:
- Returns a new overlay container on success, or NULL on failure.
References DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_PTR, ewl_overlay_init(), EWL_WIDGET, ewl_widget_destroy(), and NEW.
Referenced by ewl_scrollpane_init().