Ewl_Embed: A Container for Displaying on an canvas
Detailed Description
Defines the Ewl_Embed class to provide EWL with the ability to work with a canvas.
- Remarks:
- Inherits from Ewl_Cell.
Tutorial
The embed allows for overriding the engine used for rendering and display so that an application can have multiple target engines. This is most commonly used through the window layer as the embed itself does not create windows in the display system. The reason it is not implemented at the window level is that the embed will need the correct engine information in order to interact with menus, tooltips and similar widgets.
Ewl_Widget *window; window = ewl_window_new(); ewl_embed_engine_name_set(EWL_EMBED(window), "evas_buffer"); ewl_widget_show(window);
The code above demonstrates how to setup an embed to render to an ARGB data buffer. When the window is realized it will create a data buffer and store that as the window information on the embed.
Data Structures | |
struct | Ewl_Embed |
Inherits from Ewl_Cell that acts as a top level widget for interacting with the canvas. More... | |
Defines | |
#define | EWL_EMBED(widget) ((Ewl_Embed *) widget) |
Typecast a pointer to an Ewl_Embed pointer. | |
#define | EWL_EMBED_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_EMBED_TYPE)) |
#define | EWL_EMBED_TYPE "embed" |
#define | EWL_EMBED_WINDOW(window) ((Ewl_Embed_Window *)window) |
Typecast a pointer to an canvas window. | |
Typedefs | |
typedef struct Ewl_Embed | Ewl_Embed |
typedef void * | Ewl_Embed_Window |
Functions | |
Ewl_Embed * | ewl_embed_active_embed_get (void) |
Returns the currently active embed widget. | |
void | ewl_embed_active_set (Ewl_Embed *embed, unsigned int act) |
Sets if the given embed embed is active or not. | |
void | ewl_embed_cache_cleanup (Ewl_Embed *emb) |
This will destroy the object cache associated with the embed object. | |
void * | ewl_embed_canvas_set (Ewl_Embed *emb, void *canvas, Ewl_Embed_Window *canvas_window) |
Change the canvas used by the embedded container. | |
Ewl_Embed * | ewl_embed_canvas_window_find (Ewl_Embed_Window *win) |
Find an ewl embed by its evas window. | |
void | ewl_embed_cb_configure (Ewl_Widget *w, void *ev_data, void *user_data) |
void | ewl_embed_cb_destroy (Ewl_Widget *w, void *ev_data, void *user_data) |
void | ewl_embed_cb_focus_out (Ewl_Widget *w, void *ev_data, void *user_data) |
void | ewl_embed_cb_realize (Ewl_Widget *w, void *ev_data, void *user_data) |
void | ewl_embed_cb_unrealize (Ewl_Widget *w, void *ev_data, void *user_data) |
void | ewl_embed_coord_to_screen (Ewl_Embed *e, int xx, int yy, int *x, int *y) |
Maps coordinates from the Evas to screen coordinates. | |
void | ewl_embed_desktop_size_get (Ewl_Embed *e, int *w, int *y) |
Retrieve the size of the root window. | |
void | ewl_embed_dnd_aware_remove (Ewl_Embed *embed) |
Cancels an embed as being DND aware. | |
void | ewl_embed_dnd_aware_set (Ewl_Embed *embed) |
Set an embed as being DND aware. | |
void | ewl_embed_dnd_data_received_feed (Ewl_Embed *embed, char *type, void *data, unsigned int len, unsigned int format) |
Sends the event for selection data received into an embed. | |
void | ewl_embed_dnd_data_request_feed (Ewl_Embed *embed, void *handle, char *type) |
Sends the request event for selection data received into an embed. | |
const char * | ewl_embed_dnd_drop_feed (Ewl_Embed *embed, int x, int y, int internal) |
Sends the event for a DND drop into an embed. | |
const char * | ewl_embed_dnd_position_feed (Ewl_Embed *embed, int x, int y, int *, int *, int *, int *) |
Sends the event for a DND position into an embed. | |
const char * | ewl_embed_engine_name_get (Ewl_Embed *embed) |
Get the current engine on an embed. | |
int | ewl_embed_engine_name_set (Ewl_Embed *embed, const char *engine) |
Changes the current engine on an embed to the specified engine. | |
int | ewl_embed_focus_get (Ewl_Embed *embed) |
Retrieve the boolean value that indicates if the emebd takes focus. | |
void | ewl_embed_focus_set (Ewl_Embed *embed, int f) |
Sets the boolean flag in the embed to determine if it takes focus. | |
Ewl_Widget * | ewl_embed_focused_widget_get (Ewl_Embed *e) |
Get the current focused widget in the embed. | |
void | ewl_embed_focused_widget_set (Ewl_Embed *e, Ewl_Widget *w) |
Set the current focused widget in the embed. | |
void | ewl_embed_font_path_add (char *path) |
Add a font path to all embeds after realized. | |
void | ewl_embed_freeze (Ewl_Embed *e) |
Freeze redraws and events on the specified embed. | |
void | ewl_embed_info_widgets_cleanup (Ewl_Embed *e, Ewl_Widget *w) |
This will check to see if the given widget is one of the last selected, clicked, mouse_in or the drag-n-drop widget and if so, set them to NULL. | |
int | ewl_embed_init (Ewl_Embed *emb) |
initialize a embed to default values and callbacks | |
void | ewl_embed_key_down_feed (Ewl_Embed *embed, const char *keyname, unsigned int modifiers) |
Sends the event for a key press into an embed. | |
void | ewl_embed_key_up_feed (Ewl_Embed *embed, const char *keyname, unsigned int modifiers) |
Sends the event for a key release into an embed. | |
void | ewl_embed_last_mouse_position_get (int *x, int *y) |
Get the last tracked mouse position. | |
void | ewl_embed_mouse_cursor_set (Ewl_Widget *w) |
This will retrieve the attached cursor off of the given widget and display it. If there is no widget on the widget it will use the default cursor. | |
void | ewl_embed_mouse_down_feed (Ewl_Embed *embed, int b, int clicks, int x, int y, unsigned int modifiers) |
Sends the event for a mouse button press into an embed. | |
void | ewl_embed_mouse_move_feed (Ewl_Embed *embed, int x, int y, unsigned int modifiers) |
Sends the event for a mouse button release into an embed. | |
void | ewl_embed_mouse_out_feed (Ewl_Embed *embed, int x, int y, unsigned int modifiers) |
Sends a mouse out event to the last focused widget. | |
void | ewl_embed_mouse_up_feed (Ewl_Embed *embed, int b, int x, int y, unsigned int modifiers) |
Sends the event for a mouse button release into an embed. | |
void | ewl_embed_mouse_wheel_feed (Ewl_Embed *embed, int x, int y, int z, int dir, unsigned int mods) |
Sends a mouse out event to the last focused widget. | |
Ewl_Widget * | ewl_embed_new (void) |
Allocate and initialize a new embed. | |
void | ewl_embed_object_cache (Ewl_Embed *e, void *obj) |
Caches the specified object for later reuse. | |
void * | ewl_embed_object_request (Ewl_Embed *e, char *type) |
Retrieves an object of type type from the embed cache, or NULL if none found. | |
void | ewl_embed_position_get (Ewl_Embed *e, int *x, int *y) |
Retrieve the position of the embed. | |
void | ewl_embed_selection_text_set (Ewl_Embed *emb, const char *txt) |
This will set the given txt as the selection text on the window or clear the text if txt is NULL. | |
void | ewl_embed_shutdown (void) |
void | ewl_embed_tab_order_append (Ewl_Embed *e, Ewl_Widget *w) |
Moves the widget w to the end of the tab order. | |
void | ewl_embed_tab_order_insert (Ewl_Embed *e, Ewl_Widget *w, unsigned int idx) |
Moves the given widget w to the position idx. | |
void | ewl_embed_tab_order_insert_after (Ewl_Embed *e, Ewl_Widget *w, Ewl_Widget *after) |
Inserts the w widget into the tab order after the after widget. | |
void | ewl_embed_tab_order_insert_before (Ewl_Embed *e, Ewl_Widget *w, Ewl_Widget *before) |
Inserts the w widget into the tab order before the before widget. | |
void | ewl_embed_tab_order_next (Ewl_Embed *e) |
Changes focus to the next widget in the circular tab order list. | |
void | ewl_embed_tab_order_prepend (Ewl_Embed *e, Ewl_Widget *w) |
Moves the widget w to the front of the tab order list. | |
void | ewl_embed_tab_order_previous (Ewl_Embed *e) |
Changes focus to the next widget in the circular tab order list. | |
void | ewl_embed_tab_order_remove (Ewl_Embed *e, Ewl_Widget *w) |
Removes the widget w from the tab order list for e. | |
void | ewl_embed_thaw (Ewl_Embed *e) |
Thaw redraws and events on the specified embed. | |
Ewl_Embed * | ewl_embed_widget_find (Ewl_Widget *w) |
Find an ewl embed by a widget inside. | |
void | ewl_embed_window_position_get (Ewl_Embed *e, int *x, int *y) |
Retrieve the position of the window. |
Define Documentation
#define EWL_EMBED | ( | widget | ) | ((Ewl_Embed *) widget) |
Typecast a pointer to an Ewl_Embed pointer.
Referenced by ewl_configure_request(), ewl_context_menu_cb_mouse_down(), ewl_context_menu_cb_mouse_move(), ewl_cursor_init(), ewl_datepicker_cb_window_mouse_down(), ewl_embed_cb_configure(), ewl_embed_cb_destroy(), ewl_embed_cb_focus_out(), ewl_embed_cb_realize(), ewl_embed_cb_unrealize(), ewl_embed_widget_find(), ewl_engine_canvas_setup(), ewl_engine_desktop_size_get(), ewl_engine_embed_dnd_aware_set(), ewl_engine_embed_dnd_drag_data_send(), ewl_engine_embed_dnd_drag_drop(), ewl_engine_embed_dnd_drag_start(), ewl_engine_embed_dnd_drag_types_set(), ewl_engine_embed_selection_text_set(), ewl_engine_keyboard_grab(), ewl_engine_keyboard_ungrab(), ewl_engine_pointer_grab(), ewl_engine_pointer_ungrab(), ewl_engine_theme_object_move(), ewl_engine_window_borderless_set(), ewl_engine_window_destroy(), ewl_engine_window_dialog_set(), ewl_engine_window_geometry_get(), ewl_engine_window_hide(), ewl_engine_window_hints_set(), ewl_engine_window_leader_set(), ewl_engine_window_lower(), ewl_engine_window_min_max_size_set(), ewl_engine_window_move(), ewl_engine_window_name_class_set(), ewl_engine_window_new(), ewl_engine_window_raise(), ewl_engine_window_resize(), ewl_engine_window_show(), ewl_engine_window_states_set(), ewl_engine_window_title_set(), ewl_engine_window_transient_for(), ewl_menu_mouse_feed(), ewl_widget_cb_mouse_move(), ewl_window_cb_configure(), ewl_window_cb_realize(), ewl_window_cb_unrealize(), ewl_window_init(), and ewl_window_move().
#define EWL_EMBED_IS | ( | w | ) | (ewl_widget_type_is(EWL_WIDGET(w), EWL_EMBED_TYPE)) |
Returns TRUE if the widget is an Ewl_Embed, FALSE otherwise
#define EWL_EMBED_TYPE "embed" |
- Widget Theme Keys:
- /embed/file
- Widget Theme Keys:
- /embed/group
Referenced by ewl_datepicker_cb_window_mouse_down(), ewl_embed_active_set(), ewl_embed_cache_cleanup(), ewl_embed_canvas_set(), ewl_embed_cb_configure(), ewl_embed_cb_destroy(), ewl_embed_cb_focus_out(), ewl_embed_cb_realize(), ewl_embed_cb_unrealize(), ewl_embed_coord_to_screen(), ewl_embed_desktop_size_get(), ewl_embed_dnd_aware_remove(), ewl_embed_dnd_aware_set(), ewl_embed_dnd_data_received_feed(), ewl_embed_dnd_data_request_feed(), ewl_embed_dnd_drop_feed(), ewl_embed_dnd_position_feed(), ewl_embed_engine_name_get(), ewl_embed_engine_name_set(), ewl_embed_focus_get(), ewl_embed_focus_set(), ewl_embed_focused_widget_get(), ewl_embed_focused_widget_set(), ewl_embed_freeze(), ewl_embed_info_widgets_cleanup(), ewl_embed_init(), ewl_embed_key_down_feed(), ewl_embed_key_up_feed(), ewl_embed_mouse_down_feed(), ewl_embed_mouse_move_feed(), ewl_embed_mouse_out_feed(), ewl_embed_mouse_up_feed(), ewl_embed_mouse_wheel_feed(), ewl_embed_object_cache(), ewl_embed_object_request(), ewl_embed_position_get(), ewl_embed_selection_text_set(), ewl_embed_tab_order_append(), ewl_embed_tab_order_insert(), ewl_embed_tab_order_insert_after(), ewl_embed_tab_order_insert_before(), ewl_embed_tab_order_next(), ewl_embed_tab_order_prepend(), ewl_embed_tab_order_previous(), ewl_embed_tab_order_remove(), ewl_embed_thaw(), ewl_embed_window_position_get(), ewl_engine_canvas_damage_add(), ewl_engine_canvas_freeze(), ewl_engine_canvas_output_set(), ewl_engine_canvas_render(), ewl_engine_canvas_thaw(), ewl_engine_desktop_size_get(), ewl_engine_embed_dnd_aware_set(), ewl_engine_embed_dnd_drag_data_send(), ewl_engine_embed_dnd_drag_drop(), ewl_engine_embed_dnd_drag_start(), ewl_engine_embed_dnd_drag_types_set(), ewl_engine_embed_selection_text_set(), ewl_engine_pointer_data_new(), ewl_engine_pointer_free(), ewl_engine_pointer_get(), ewl_engine_pointer_set(), ewl_engine_theme_freeze(), ewl_engine_theme_object_add(), ewl_engine_theme_object_clip_set(), ewl_engine_theme_object_clip_unset(), ewl_engine_theme_object_del(), ewl_engine_theme_object_file_set(), ewl_engine_theme_object_hide(), ewl_engine_theme_object_move(), ewl_engine_theme_object_show(), and ewl_engine_theme_thaw().
#define EWL_EMBED_WINDOW | ( | window | ) | ((Ewl_Embed_Window *)window) |
Typecast a pointer to an canvas window.
Typedef Documentation
The embed structure is mostly a container for holding widgets and a wrapper canvas smart object.
typedef void* Ewl_Embed_Window |
Typedef and abstract out embedded canvas windows
Function Documentation
Ewl_Embed* ewl_embed_active_embed_get | ( | void | ) |
Returns the currently active embed widget.
- Returns:
- Returns the currently active embed
References DENTER_FUNCTION, DLEVEL_STABLE, and DRETURN_PTR.
Referenced by ewl_context_menu_cb_mouse_move(), and ewl_widget_focused_get().
void ewl_embed_active_set | ( | Ewl_Embed * | embed, | |
unsigned int | act | |||
) |
Sets if the given embed embed
is active or not.
- Parameters:
-
embed,: The embed to set the active value on act,: The active value to set
- Returns:
- Returns no value.
References clicked, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DISABLED, DLEAVE_FUNCTION, DLEVEL_STABLE, DRETURN, ewl_callback_call(), EWL_CALLBACK_FOCUS_OUT, ewl_embed_focus_set(), EWL_EMBED_TYPE, EWL_FLAG_STATE_FOCUSED, EWL_FLAG_STATE_PRESSED, EWL_OBJECT, ewl_object_state_remove, last, and Ewl_Widget::parent.
Referenced by ewl_context_menu_cb_mouse_move(), ewl_embed_dnd_drop_feed(), ewl_embed_dnd_position_feed(), ewl_embed_mouse_down_feed(), ewl_embed_mouse_move_feed(), ewl_embed_mouse_out_feed(), ewl_embed_mouse_up_feed(), ewl_embed_mouse_wheel_feed(), and ewl_widget_focus_send().
void ewl_embed_cache_cleanup | ( | Ewl_Embed * | emb | ) |
This will destroy the object cache associated with the embed object.
- Parameters:
-
emb,: The embed to work with
- Returns:
- Returns no value
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, DRETURN, ewl_canvas_object_destroy(), EWL_EMBED_TYPE, IF_FREE_HASH, IF_FREE_LIST, and obj_cache.
Referenced by ewl_embed_cb_destroy(), and ewl_window_cb_unrealize().
void* ewl_embed_canvas_set | ( | Ewl_Embed * | emb, | |
void * | canvas, | |||
Ewl_Embed_Window * | canvas_window | |||
) |
Change the canvas used by the embedded container.
- Parameters:
-
emb,: the embedded container to change the target canvas canvas,: the new canvas to draw the container and it's contents canvas_window,: the window containing the canvas, for event dispatching
- Returns:
- Returns an canvas object on success, NULL on failure. The returned smart object can be used to manipulate the area used by EWL through standard canvas functions.
References canvas, canvas_window, DCHECK_PARAM_PTR_RET, DCHECK_TYPE_RET, DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_PTR, ewl_canvas_object_destroy(), EWL_EMBED_TYPE, ewl_realize_request(), ewl_theme_font_path_get(), EWL_WIDGET, smart, and VISIBLE.
Ewl_Embed* ewl_embed_canvas_window_find | ( | Ewl_Embed_Window * | window | ) |
Find an ewl embed by its evas window.
- Parameters:
-
window,: the evas window to search for on the list of embeds
- Returns:
- Returns the found embed on success, NULL on failure.
References canvas_window, DCHECK_PARAM_PTR_RET, DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_PTR, and ewl_embed_list.
void ewl_embed_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, ev_clip, EWL_EMBED, and EWL_EMBED_TYPE.
Referenced by ewl_embed_init().
void ewl_embed_cb_destroy | ( | Ewl_Widget * | w, | |
void * | ev_data, | |||
void * | user_data | |||
) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_EMBED, ewl_embed_cache_cleanup(), ewl_embed_list, EWL_EMBED_TYPE, and tab_order.
Referenced by ewl_embed_init().
void ewl_embed_cb_focus_out | ( | Ewl_Widget * | w, | |
void * | ev_data, | |||
void * | user_data | |||
) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, DRETURN, EWL_EMBED, ewl_embed_mouse_up_feed(), EWL_EMBED_TYPE, ewl_ev_modifiers_get(), EWL_FLAG_STATE_PRESSED, EWL_OBJECT, ewl_object_state_has, focused, and last.
Referenced by ewl_embed_init().
void ewl_embed_cb_realize | ( | Ewl_Widget * | w, | |
void * | ev_data, | |||
void * | user_data | |||
) |
References canvas, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, dnd_count, ev_clip, EWL_EMBED, ewl_embed_freeze(), ewl_embed_object_request(), EWL_EMBED_TYPE, ewl_engine_embed_dnd_aware_set(), focus, and smart.
Referenced by ewl_embed_init().
void ewl_embed_cb_unrealize | ( | Ewl_Widget * | w, | |
void * | ev_data, | |||
void * | user_data | |||
) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, ev_clip, ewl_canvas_object_destroy(), EWL_EMBED, EWL_EMBED_TYPE, and smart.
Referenced by ewl_embed_init().
void ewl_embed_coord_to_screen | ( | Ewl_Embed * | e, | |
int | xx, | |||
int | yy, | |||
int * | x, | |||
int * | y | |||
) |
Maps coordinates from the Evas to screen coordinates.
- Parameters:
-
e,: the embed to retrieve coord screen position xx,: the x coord to map to a screen position yy,: the y coord to map to a screen position x,: storage for the mapped screen x position y,: storage for the mapped screen y position
- Returns:
- Returns no value.
References canvas, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, and EWL_EMBED_TYPE.
void ewl_embed_desktop_size_get | ( | Ewl_Embed * | e, | |
int * | w, | |||
int * | h | |||
) |
Retrieve the size of the root window.
- Parameters:
-
e,: the embed to query for window-position w,: a pointer to the integer that should receive the width h,: a pointer to the integer that should receive the height
- Returns:
- Returns no value. Stores the root window size into the parameters w and h.
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_EMBED_TYPE, and ewl_engine_desktop_size_get().
void ewl_embed_dnd_aware_remove | ( | Ewl_Embed * | embed | ) |
Cancels an embed as being DND aware.
- Parameters:
-
embed,: the embed to remove dnd aware
- Returns:
- Returns no value.
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, dnd_count, and EWL_EMBED_TYPE.
Referenced by ewl_dnd_accepted_types_set(), and ewl_widget_cb_obscure().
void ewl_embed_dnd_aware_set | ( | Ewl_Embed * | embed | ) |
Set an embed as being DND aware.
- Parameters:
-
embed,: the embed to set dnd aware
- Returns:
- Returns no value.
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, dnd_count, EWL_EMBED_TYPE, ewl_engine_embed_dnd_aware_set(), and REALIZED.
Referenced by ewl_dnd_accepted_types_set(), and ewl_widget_cb_reveal().
void ewl_embed_dnd_data_received_feed | ( | Ewl_Embed * | embed, | |
char * | type, | |||
void * | data, | |||
unsigned int | len, | |||
unsigned int | format | |||
) |
Sends the event for selection data received into an embed.
- Parameters:
-
embed,: the embed where the selection data event is to occur type,: The type to feed. data,: a pointer to the data received that generated the event len,: length of the data that generated the event format,: The bit format of the data
- Returns:
- Returns no value.
References Ewl_Event_Dnd_Data_Received::data, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, drop_widget, ewl_callback_call_with_event_data(), EWL_CALLBACK_DND_DATA_RECEIVED, ewl_dnd_accepted_types_contains(), EWL_EMBED_TYPE, Ewl_Event_Dnd_Data_Received::format, last, Ewl_Event_Dnd_Data_Received::len, and Ewl_Event_Dnd_Data_Received::type.
void ewl_embed_dnd_data_request_feed | ( | Ewl_Embed * | embed, | |
void * | handle, | |||
char * | type | |||
) |
Sends the request event for selection data received into an embed.
- Parameters:
-
embed,: the embed where the selection data request event is to occur handle,: The DND handle to work with type,: The type to feed
- Returns:
- Returns no value.
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, drag_widget, ewl_callback_call_with_event_data(), EWL_CALLBACK_DND_DATA_REQUEST, ewl_dnd_provided_types_contains(), EWL_EMBED_TYPE, Ewl_Event_Dnd_Data_Request::handle, last, and Ewl_Event_Dnd_Data_Request::type.
const char* ewl_embed_dnd_drop_feed | ( | Ewl_Embed * | embed, | |
int | x, | |||
int | y, | |||
int | internal | |||
) |
Sends the event for a DND drop into an embed.
- Parameters:
-
embed,: the embed where the DND drop event is to occur x,: the x coordinate of the mouse drop y,: the y coordinate of the mouse drop internal,: Is this an internal drop?
- Returns:
- Returns the DND drop data type.
References Ewl_Event_Dnd_Drop::data, DCHECK_PARAM_PTR_RET, DCHECK_TYPE_RET, DENTER_FUNCTION, DLEVEL_STABLE, dnd_types, DRETURN_PTR, drop_widget, ewl_callback_call_with_event_data(), EWL_CALLBACK_DND_DROP, EWL_CONTAINER, ewl_container_child_at_recursive_get(), ewl_dnd_accepted_types_contains(), ewl_dnd_drag_widget_clear(), ewl_embed_active_set(), EWL_EMBED_TYPE, EWL_FLAG_PROPERTY_DND_TARGET, EWL_FLAGS_PROPERTY_MASK, EWL_OBJECT, ewl_object_flags_has, last, Ewl_Dnd_Types::num_types, Ewl_Widget::parent, Ewl_Dnd_Types::types, Ewl_Event_Dnd_Drop::x, and Ewl_Event_Dnd_Drop::y.
const char* ewl_embed_dnd_position_feed | ( | Ewl_Embed * | embed, | |
int | x, | |||
int | y, | |||
int * | px, | |||
int * | py, | |||
int * | pw, | |||
int * | ph | |||
) |
Sends the event for a DND position into an embed.
- Parameters:
-
embed,: the embed where the DND position event is to occur x,: the x coordinate of the mouse move y,: the y coordinate of the mouse move px,: Where to store the position x value py,: Where to store the position y value pw,: Where to store the position width ph,: Where to store the position height
- Returns:
- Returns the type of the DND data
References CURRENT_H, CURRENT_W, CURRENT_X, CURRENT_Y, DCHECK_PARAM_PTR_RET, DCHECK_TYPE_RET, DENTER_FUNCTION, DLEVEL_STABLE, dnd_last_position, dnd_types, DRETURN_PTR, drop_widget, DWARNING, ewl_callback_call_with_event_data(), EWL_CALLBACK_DND_ENTER, EWL_CALLBACK_DND_LEAVE, EWL_CALLBACK_DND_POSITION, EWL_CONTAINER, ewl_container_child_at_recursive_get(), ewl_dnd_accepted_types_contains(), ewl_embed_active_set(), EWL_EMBED_TYPE, EWL_FLAG_PROPERTY_DND_TARGET, EWL_FLAGS_PROPERTY_MASK, EWL_OBJECT, ewl_object_flags_has, last, Ewl_Dnd_Types::num_types, Ewl_Widget::parent, Ewl_Dnd_Types::types, Ewl_Event_Dnd_Position::x, and Ewl_Event_Dnd_Position::y.
Referenced by ewl_widget_cb_mouse_move().
const char* ewl_embed_engine_name_get | ( | Ewl_Embed * | embed | ) |
Get the current engine on an embed.
- Parameters:
-
embed,: Embed to get engine name
- Returns:
- Returns the name of the engine to use for the embed.
References DCHECK_PARAM_PTR_RET, DCHECK_TYPE_RET, DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_PTR, engine_name, and EWL_EMBED_TYPE.
int ewl_embed_engine_name_set | ( | Ewl_Embed * | embed, | |
const char * | engine | |||
) |
Changes the current engine on an embed to the specified engine.
- Parameters:
-
embed,: Embed to change engines engine,: Name of the new engine to use for the embed.
- Returns:
- Returns TRUE on success, FALSE on failure.
References DCHECK_PARAM_PTR_RET, DCHECK_TYPE_RET, DENTER_FUNCTION, DERROR, DLEVEL_STABLE, DRETURN_INT, engine, engine_name, EWL_EMBED_TYPE, ewl_engine_new(), EWL_WIDGET, ewl_widget_realize(), ewl_widget_unrealize(), IF_RELEASE, and REALIZED.
Referenced by ewl_cursor_init(), and ewl_embed_init().
int ewl_embed_focus_get | ( | Ewl_Embed * | embed | ) |
Retrieve the boolean value that indicates if the emebd takes focus.
- Parameters:
-
embed,: the embed to indicate if it takes focus
- Returns:
- Returns a boolean indicating if the embed takes focus.
References DCHECK_PARAM_PTR_RET, DCHECK_TYPE_RET, DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_INT, EWL_EMBED_TYPE, and focus.
void ewl_embed_focus_set | ( | Ewl_Embed * | embed, | |
int | f | |||
) |
Sets the boolean flag in the embed to determine if it takes focus.
- Parameters:
-
embed,: the embed to inidicate if it takes focus f,: boolean to determine if the embed takes focus
- Returns:
- Returns no value.
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_EMBED_TYPE, focus, and smart.
Referenced by ewl_embed_active_set().
Ewl_Widget* ewl_embed_focused_widget_get | ( | Ewl_Embed * | embed | ) |
Get the current focused widget in the embed.
- Parameters:
-
embed,: The embed to get the curerntly focused widget
- Returns:
- Returns the currently focused widget
References DCHECK_PARAM_PTR_RET, DCHECK_TYPE_RET, DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_PTR, EWL_EMBED_TYPE, focused, and last.
Referenced by ewl_context_menu_cb_mouse_down(), ewl_datepicker_cb_window_mouse_down(), ewl_scrollpane_cb_focus_jump(), and ewl_widget_focused_get().
void ewl_embed_focused_widget_set | ( | Ewl_Embed * | embed, | |
Ewl_Widget * | w | |||
) |
Set the current focused widget in the embed.
- Parameters:
-
embed,: The embed to set the focused widget too w,: The widget to set as having focus, NULL is valid value and signifies that no widget has the focus.
- Returns:
- Returns no value.
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, ewl_callback_call(), ewl_callback_call_with_event_data(), EWL_CALLBACK_FOCUS_IN, EWL_CALLBACK_FOCUS_OUT, EWL_EMBED_TYPE, EWL_WIDGET_TYPE, focused, and last.
Referenced by ewl_embed_key_down_feed(), and ewl_widget_focus_send().
void ewl_embed_font_path_add | ( | char * | path | ) |
Add a font path to all embeds after realized.
- Parameters:
-
path,: the font path to add to the embeds
- Returns:
- Returns no value. Adds the search path to the evases created in the embeds. Using ewl_theme_font_path_add is preferred.
References canvas, DCHECK_PARAM_PTR, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, ewl_embed_list, ewl_theme_font_path_get(), and REALIZED.
Referenced by ewl_theme_font_path_add().
void ewl_embed_freeze | ( | Ewl_Embed * | e | ) |
Freeze redraws and events on the specified embed.
- Parameters:
-
e,: the embed to freeze redraws and canvas events
- Returns:
- Returns no value.
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_EMBED_TYPE, ewl_engine_canvas_freeze(), and ewl_engine_theme_freeze().
Referenced by ewl_embed_cb_realize().
void ewl_embed_info_widgets_cleanup | ( | Ewl_Embed * | e, | |
Ewl_Widget * | w | |||
) |
This will check to see if the given widget is one of the last selected, clicked, mouse_in or the drag-n-drop widget and if so, set them to NULL.
- Parameters:
-
e,: The embed to cleanup w,: The wiget to check while cleaning up
- Returns:
- Returns no value.
References clicked, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, drag_widget, drop_widget, EWL_EMBED_TYPE, EWL_FLAG_STATE_PRESSED, EWL_OBJECT, ewl_object_state_remove, ewl_widget_parent_of(), EWL_WIDGET_TYPE, focused, last, mouse_in, and RECURSIVE.
Referenced by ewl_widget_cb_hide(), ewl_widget_destroy(), ewl_widget_hide(), and ewl_widget_parent_set().
int ewl_embed_init | ( | Ewl_Embed * | w | ) |
initialize a embed to default values and callbacks
- Parameters:
-
w,: the embed 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 embed w to their defaults.
References DCHECK_PARAM_PTR_RET, DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_INT, ewl_callback_append(), EWL_CALLBACK_CONFIGURE, EWL_CALLBACK_DESTROY, EWL_CALLBACK_FOCUS_IN, EWL_CALLBACK_FOCUS_OUT, ewl_callback_prepend(), EWL_CALLBACK_REALIZE, EWL_CALLBACK_UNREALIZE, EWL_CELL, ewl_cell_init(), ewl_config, EWL_CONFIG_ENGINE_NAME, ewl_config_string_get(), EWL_CONTAINER, ewl_container_callback_nonotify(), ewl_embed_cb_configure(), ewl_embed_cb_destroy(), ewl_embed_cb_focus_out(), ewl_embed_cb_realize(), ewl_embed_cb_unrealize(), ewl_embed_engine_name_set(), ewl_embed_list, EWL_EMBED_TYPE, EWL_FLAG_FILL_NONE, EWL_FLAG_PROPERTY_TOPLEVEL, EWL_OBJECT, ewl_object_fill_policy_set(), ewl_object_toplevel_set, EWL_WIDGET, ewl_widget_appearance_set(), ewl_widget_inherit(), obj_cache, and tab_order.
Referenced by ewl_embed_new(), and ewl_window_init().
void ewl_embed_key_down_feed | ( | Ewl_Embed * | embed, | |
const char * | keyname, | |||
unsigned int | mods | |||
) |
Sends the event for a key press into an embed.
- Parameters:
-
embed,: the embed where the key event is to occur keyname,: the key press to trigger mods,: the mask of key modifiers currently pressed
- Returns:
- Returns no value.
References Ewl_Event_Key_Down::base, clicked, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DISABLED, DLEAVE_FUNCTION, DLEVEL_STABLE, DRETURN, ewl_callback_call_with_event_data(), EWL_CALLBACK_KEY_DOWN, ewl_embed_focused_widget_set(), ewl_embed_tab_order_next(), ewl_embed_tab_order_previous(), EWL_EMBED_TYPE, EWL_KEY_MODIFIER_SHIFT, EWL_WIDGET, ewl_widget_ignore_focus_change_get(), focused, FREE, Ewl_Event_Key::keyname, last, Ewl_Event_Key::modifiers, Ewl_Widget::parent, and tab_order.
void ewl_embed_key_up_feed | ( | Ewl_Embed * | embed, | |
const char * | keyname, | |||
unsigned int | mods | |||
) |
Sends the event for a key release into an embed.
- Parameters:
-
embed,: the embed where the key event is to occur keyname,: the key release to trigger mods,: the mask of key modifiers currently pressed
- Returns:
- Returns no value.
References Ewl_Event_Key_Up::base, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DISABLED, DLEAVE_FUNCTION, DLEVEL_STABLE, DRETURN, ewl_callback_call_with_event_data(), EWL_CALLBACK_KEY_UP, EWL_EMBED_TYPE, ewl_widget_ignore_focus_change_get(), focused, FREE, Ewl_Event_Key::keyname, last, Ewl_Event_Key::modifiers, and Ewl_Widget::parent.
void ewl_embed_last_mouse_position_get | ( | int * | x, | |
int * | y | |||
) |
Get the last tracked mouse position.
- Parameters:
-
x,: a pointer to the location to save the x coordinate y,: a pointer to the location to save the y coordinate
- Returns:
- Returns no value. Get the last tracked mouse position. Ewl only tracks mouse postion, which are recognized by EWL that mean it only gives you the last mouse positon that is recognized inside of an Ewl_Embed.
References DENTER_FUNCTION, DLEAVE_FUNCTION, and DLEVEL_STABLE.
void ewl_embed_mouse_cursor_set | ( | Ewl_Widget * | w | ) |
This will retrieve the attached cursor off of the given widget and display it. If there is no widget on the widget it will use the default cursor.
- Parameters:
-
w,: The Ewl_Widget to get the pointer from
- Returns:
- Returns no value.
References cursor, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, DRETURN, ewl_attach_get(), ewl_attach_mouse_cursor_set, EWL_ATTACH_TYPE_MOUSE_ARGB_CURSOR, EWL_ATTACH_TYPE_MOUSE_CURSOR, ewl_embed_widget_find(), ewl_engine_pointer_set(), EWL_MOUSE_CURSOR_LEFT_PTR, EWL_WIDGET_TYPE, and Ewl_Cursor::handle.
Referenced by ewl_dnd_drag_start(), and ewl_embed_mouse_move_feed().
void ewl_embed_mouse_down_feed | ( | Ewl_Embed * | embed, | |
int | b, | |||
int | clicks, | |||
int | x, | |||
int | y, | |||
unsigned int | mods | |||
) |
Sends the event for a mouse button press into an embed.
- Parameters:
-
embed,: the embed where the mouse event is to occur b,: the number of the button pressed clicks,: the number of times the button was pressed x,: the x coordinate of the mouse press y,: the y coordinate of the mouse press mods,: the mask of key modifiers currently pressed
- Returns:
- Returns no value.
References Ewl_Event_Mouse_Down::base, Ewl_Event_Mouse_Down::button, clicked, Ewl_Event_Mouse_Down::clicks, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DESTROYED, DISABLED, DLEAVE_FUNCTION, DLEVEL_STABLE, ewl_callback_call_with_event_data(), EWL_CALLBACK_CLICKED, EWL_CALLBACK_FOCUS_IN, EWL_CALLBACK_FOCUS_OUT, EWL_CALLBACK_MOUSE_DOWN, EWL_CONTAINER, ewl_container_child_at_recursive_get(), ewl_embed_active_set(), EWL_EMBED_TYPE, EWL_FLAG_STATE_FOCUSED, EWL_FLAG_STATE_PRESSED, EWL_OBJECT, ewl_object_state_add, ewl_object_state_remove, EWL_WIDGET, ewl_widget_internal_is(), ewl_widget_parent_of(), focused, last, Ewl_Event_Mouse::modifiers, Ewl_Widget::parent, Ewl_Event_Mouse::x, x, Ewl_Event_Mouse::y, and y.
void ewl_embed_mouse_move_feed | ( | Ewl_Embed * | embed, | |
int | x, | |||
int | y, | |||
unsigned int | mods | |||
) |
Sends the event for a mouse button release into an embed.
- Parameters:
-
embed,: the embed where the mouse event is to occur x,: the x coordinate of the mouse move y,: the y coordinate of the mouse move mods,: the mask of key modifiers currently release
- Returns:
- Returns no value.
References Ewl_Event_Mouse_Move::base, clicked, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DISABLED, DLEAVE_FUNCTION, DLEVEL_STABLE, drag_widget, ewl_attach_get(), EWL_ATTACH_TYPE_MOUSE_ARGB_CURSOR, EWL_ATTACH_TYPE_MOUSE_CURSOR, ewl_callback_call(), ewl_callback_call_with_event_data(), EWL_CALLBACK_MOUSE_IN, EWL_CALLBACK_MOUSE_MOVE, EWL_CALLBACK_MOUSE_OUT, EWL_CONTAINER, ewl_container_child_at_recursive_get(), ewl_embed_active_set(), ewl_embed_mouse_cursor_set(), EWL_EMBED_TYPE, EWL_FLAG_STATE_DND, EWL_FLAG_STATE_MOUSE_IN, EWL_FLAG_STATE_PRESSED, EWL_OBJECT, ewl_object_state_add, ewl_object_state_has, ewl_object_state_remove, EWL_WIDGET, ewl_widget_parent_of(), last, Ewl_Event_Mouse::modifiers, mouse_in, Ewl_Widget::parent, Ewl_Event_Mouse::x, x, Ewl_Event_Mouse::y, and y.
Referenced by ewl_menu_mouse_feed(), and ewl_widget_cb_mouse_up().
void ewl_embed_mouse_out_feed | ( | Ewl_Embed * | embed, | |
int | x, | |||
int | y, | |||
unsigned int | mods | |||
) |
Sends a mouse out event to the last focused widget.
- Parameters:
-
embed,: the embed where the mouse event is to occur x,: the x coordinate of the mouse out y,: the y coordinate of the mouse out mods,: the mask of key modifiers currently release
- Returns:
- Returns no value.
References Ewl_Event_Mouse_Out::base, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, ewl_callback_call_with_event_data(), EWL_CALLBACK_MOUSE_OUT, ewl_embed_active_set(), EWL_EMBED_TYPE, EWL_FLAG_STATE_MOUSE_IN, EWL_OBJECT, ewl_object_state_remove, last, Ewl_Event_Mouse::modifiers, mouse_in, Ewl_Widget::parent, Ewl_Event_Mouse::x, and Ewl_Event_Mouse::y.
void ewl_embed_mouse_up_feed | ( | Ewl_Embed * | embed, | |
int | b, | |||
int | x, | |||
int | y, | |||
unsigned int | mods | |||
) |
Sends the event for a mouse button release into an embed.
- Parameters:
-
embed,: the embed where the mouse event is to occur b,: the number of the button released x,: the x coordinate of the mouse release y,: the y coordinate of the mouse release mods,: the mask of key modifiers currently release
- Returns:
- Returns no value.
References Ewl_Event_Mouse_Up::base, Ewl_Event_Mouse_Up::button, clicked, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DISABLED, DLEAVE_FUNCTION, DLEVEL_STABLE, ewl_callback_call_with_event_data(), EWL_CALLBACK_MOUSE_UP, ewl_embed_active_set(), EWL_EMBED_TYPE, EWL_FLAG_STATE_PRESSED, EWL_OBJECT, ewl_object_state_remove, last, Ewl_Event_Mouse::modifiers, Ewl_Widget::parent, Ewl_Event_Mouse::x, x, Ewl_Event_Mouse::y, and y.
Referenced by ewl_embed_cb_focus_out().
void ewl_embed_mouse_wheel_feed | ( | Ewl_Embed * | embed, | |
int | x, | |||
int | y, | |||
int | z, | |||
int | dir, | |||
unsigned int | mods | |||
) |
Sends a mouse out event to the last focused widget.
- Parameters:
-
embed,: the embed where the mouse event is to occur x,: the x coordinate of the mouse when the wheel event occurred y,: the y coordinate of the mouse when wheel event occurred z,: the direction the mouse wheel rotated dir,: FIXME, not sure what this does, it's always 0 mods,: the mask of key modifiers currently release
- Returns:
- Returns no value.
References Ewl_Event_Mouse_Wheel::base, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, Ewl_Event_Mouse_Wheel::dir, DLEAVE_FUNCTION, DLEVEL_STABLE, ewl_callback_call_with_event_data(), EWL_CALLBACK_MOUSE_WHEEL, ewl_embed_active_set(), EWL_EMBED_TYPE, EWL_WIDGET, last, Ewl_Event_Mouse::modifiers, mouse_in, Ewl_Widget::parent, Ewl_Event_Mouse::x, Ewl_Event_Mouse::y, and Ewl_Event_Mouse_Wheel::z.
Ewl_Widget* ewl_embed_new | ( | void | ) |
Allocate and initialize a new embed.
- Returns:
- Returns a new embed on success, or NULL on failure.
References DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_PTR, ewl_embed_init(), EWL_WIDGET, ewl_widget_destroy(), and NEW.
void ewl_embed_object_cache | ( | Ewl_Embed * | e, | |
void * | obj | |||
) |
Caches the specified object for later reuse.
- Parameters:
-
e,: embed to cache the specified object obj,: the object to keep cached for reuse
- Returns:
- Returns no value.
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, ewl_canvas_object_destroy(), EWL_EMBED_TYPE, and obj_cache.
Referenced by ewl_container_cb_obscure(), ewl_image_cb_obscure(), ewl_text_cb_obscure(), and ewl_widget_cb_obscure().
void* ewl_embed_object_request | ( | Ewl_Embed * | e, | |
char * | type | |||
) |
Retrieves an object of type type from the embed cache, or NULL if none found.
- Parameters:
-
e,: embed to request a cached object type,: the type of object requested
- Returns:
- Returns an Evas_Object of the specified type on success.
References DCHECK_PARAM_PTR_RET, DCHECK_TYPE_RET, DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_PTR, EWL_EMBED_TYPE, and obj_cache.
Referenced by ewl_container_cb_reveal(), ewl_embed_cb_realize(), ewl_image_cb_reveal(), ewl_text_cb_reveal(), and ewl_widget_cb_reveal().
void ewl_embed_position_get | ( | Ewl_Embed * | e, | |
int * | x, | |||
int * | y | |||
) |
Retrieve the position of the embed.
- Parameters:
-
e,: the embed to query for position x,: a pointer to the integer that should receive the x coordinate y,: a pointer to the integer that should receive the y coordinate
- Returns:
- Returns no value. Stores the embed position into the parameters x and y.
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_EMBED_TYPE, smart, x, and y.
void ewl_embed_selection_text_set | ( | Ewl_Embed * | emb, | |
const char * | txt | |||
) |
This will set the given txt as the selection text on the window or clear the text if txt is NULL.
- Parameters:
-
emb,: The embed to set the selection on txt,: The text to set into the selection
- Returns:
- Returns no value.
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_EMBED_TYPE, and ewl_engine_embed_selection_text_set().
void ewl_embed_shutdown | ( | void | ) |
References DENTER_FUNCTION, DLEAVE_FUNCTION, and DLEVEL_STABLE.
void ewl_embed_tab_order_append | ( | Ewl_Embed * | e, | |
Ewl_Widget * | w | |||
) |
Moves the widget w to the end of the tab order.
- Parameters:
-
e,: The embed that holds the widgets w,: The widget to be append to the tab order
- Returns:
- Returns no value.
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, ewl_embed_tab_order_insert(), EWL_EMBED_TYPE, EWL_WIDGET_TYPE, and tab_order.
Referenced by ewl_embed_tab_order_insert_after(), and ewl_widget_tab_order_append().
void ewl_embed_tab_order_insert | ( | Ewl_Embed * | e, | |
Ewl_Widget * | w, | |||
unsigned int | idx | |||
) |
Moves the given widget w to the position idx.
- Parameters:
-
e,: The embed that holds the widgets w,: The widget to insert into the tab order idx,: The index to insert into
- Returns:
- Returns no value.
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, DRETURN, EWL_EMBED_TYPE, EWL_OBJECT, ewl_object_in_tab_list_get, ewl_object_in_tab_list_set, EWL_WIDGET, ewl_widget_focusable_get(), ewl_widget_parent_of(), EWL_WIDGET_TYPE, and tab_order.
Referenced by ewl_embed_tab_order_append(), ewl_embed_tab_order_insert_after(), ewl_embed_tab_order_insert_before(), ewl_embed_tab_order_prepend(), and ewl_widget_tab_order_insert().
void ewl_embed_tab_order_insert_after | ( | Ewl_Embed * | e, | |
Ewl_Widget * | w, | |||
Ewl_Widget * | after | |||
) |
Inserts the w widget into the tab order after the after widget.
- Parameters:
-
e,: The embed to insert the widget into the tab order w,: The widget ot insert into the tab order after,: The widget to insert after
- Returns:
- Returns no value.
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, DRETURN, ewl_embed_tab_order_append(), ewl_embed_tab_order_insert(), EWL_EMBED_TYPE, EWL_WIDGET_TYPE, and tab_order.
Referenced by ewl_widget_tab_order_insert_after().
void ewl_embed_tab_order_insert_before | ( | Ewl_Embed * | e, | |
Ewl_Widget * | w, | |||
Ewl_Widget * | before | |||
) |
Inserts the w widget into the tab order before the before widget.
- Parameters:
-
e,: The embed to insert the widget into the tab order w,: The widget ot insert into the tab order before,: The widget to insert after
- Returns:
- Returns no value.
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, DRETURN, ewl_embed_tab_order_insert(), ewl_embed_tab_order_prepend(), EWL_EMBED_TYPE, EWL_WIDGET_TYPE, and tab_order.
Referenced by ewl_widget_tab_order_insert_before().
void ewl_embed_tab_order_next | ( | Ewl_Embed * | e | ) |
Changes focus to the next widget in the circular tab order list.
- Parameters:
-
e,: the embed to change focus of it's contained widgets
- Returns:
- Returns no value.
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, and EWL_EMBED_TYPE.
Referenced by ewl_embed_key_down_feed().
void ewl_embed_tab_order_prepend | ( | Ewl_Embed * | e, | |
Ewl_Widget * | w | |||
) |
Moves the widget w to the front of the tab order list.
- Parameters:
-
e,: the embed that holds widgets w,: the widget that will be moved to the front of the tab order list
- Returns:
- Returns no value.
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, ewl_embed_tab_order_insert(), EWL_EMBED_TYPE, and EWL_WIDGET_TYPE.
Referenced by ewl_embed_tab_order_insert_before(), and ewl_widget_tab_order_prepend().
void ewl_embed_tab_order_previous | ( | Ewl_Embed * | e | ) |
Changes focus to the next widget in the circular tab order list.
- Parameters:
-
e,: the embed to change focus of it's contained widgets
- Returns:
- Returns no value.
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, and EWL_EMBED_TYPE.
Referenced by ewl_embed_key_down_feed().
void ewl_embed_tab_order_remove | ( | Ewl_Embed * | e, | |
Ewl_Widget * | w | |||
) |
Removes the widget w from the tab order list for e.
- Parameters:
-
e,: the embed containing a widget to remove from the tab order w,: the widget to remove from the tab order list
- Returns:
- Returns no value.
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_EMBED_TYPE, EWL_OBJECT, ewl_object_in_tab_list_set, EWL_WIDGET_TYPE, and tab_order.
Referenced by ewl_widget_tab_order_remove().
void ewl_embed_thaw | ( | Ewl_Embed * | e | ) |
Thaw redraws and events on the specified embed.
- Parameters:
-
e,: the embed to thaw redraws and canvas events
- Returns:
- Returns no value.
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_EMBED_TYPE, ewl_engine_canvas_thaw(), and ewl_engine_theme_thaw().
Ewl_Embed* ewl_embed_widget_find | ( | Ewl_Widget * | w | ) |
Find an ewl embed by a widget inside.
- Parameters:
-
w,: the widget to search for its embed
- Returns:
- Returns the found embed on success, NULL on failure.
References DCHECK_PARAM_PTR_RET, DCHECK_TYPE_RET, DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_PTR, EWL_EMBED, EWL_OBJECT, ewl_object_toplevel_get, EWL_WIDGET_TYPE, and Ewl_Widget::parent.
Referenced by ewl_container_cb_obscure(), ewl_container_cb_reveal(), ewl_context_menu_attach(), ewl_context_menu_cb_child_add(), ewl_context_menu_cb_child_clicked(), ewl_context_menu_cb_child_mouse_in(), ewl_context_menu_cb_child_remove(), ewl_context_menu_cb_mouse_down(), ewl_context_menu_cb_mouse_move(), ewl_dnd_accepted_types_set(), ewl_dnd_drag_drop(), ewl_dnd_drag_start(), ewl_embed_mouse_cursor_set(), ewl_engine_theme_data_get(), ewl_engine_theme_widget_group(), ewl_image_cb_mouse_down(), ewl_image_cb_mouse_move(), ewl_image_cb_mouse_up(), ewl_image_cb_obscure(), ewl_image_cb_reveal(), ewl_media_cb_realize(), ewl_popup_cb_show(), ewl_scrollpane_cb_focus_jump(), ewl_text_cb_obscure(), ewl_text_cb_reveal(), ewl_widget_cb_hide(), ewl_widget_cb_mouse_move(), ewl_widget_cb_mouse_up(), ewl_widget_cb_obscure(), ewl_widget_cb_realize(), ewl_widget_cb_reveal(), ewl_widget_clipped_set(), ewl_widget_destroy(), ewl_widget_focus_send(), ewl_widget_hide(), ewl_widget_onscreen_is(), ewl_widget_parent_set(), ewl_widget_reveal(), ewl_widget_tab_order_append(), ewl_widget_tab_order_insert(), ewl_widget_tab_order_insert_after(), ewl_widget_tab_order_insert_before(), ewl_widget_tab_order_prepend(), and ewl_widget_tab_order_remove().
void ewl_embed_window_position_get | ( | Ewl_Embed * | e, | |
int * | x, | |||
int * | y | |||
) |
Retrieve the position of the window.
- Parameters:
-
e,: the embed to query for window-position x,: a pointer to the integer that should receive the x coordinate y,: a pointer to the integer that should receive the y coordinate
- Returns:
- Returns no value. Stores the window position into the parameters x and y.
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_EMBED_TYPE, x, and y.
Referenced by ewl_context_menu_cb_mouse_move(), and ewl_menu_mouse_feed().