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 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) |
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 clicks, 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. | |
unsigned int | ewl_embed_render_get (Ewl_Embed *emb) |
Retrieve the boolean value that indicates if the emebd is rendered by ewl. | |
void | ewl_embed_render_set (Ewl_Embed *emb, unsigned int render) |
Sets the boolean flag in the embed to determine if the embed is rendered by ewl. | |
void | ewl_embed_selection_text_clear_feed (void) |
Sends a selection clear event to the widget with the text selection. | |
void | ewl_embed_selection_text_set (Ewl_Embed *emb, Ewl_Widget *w, const char *txt) |
This will set the given txt as the primary 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_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" |
The type name for the Ewl_Embed widget
#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
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.
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
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.
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.
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.
- 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.
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.
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.
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.
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.
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.
const char* ewl_embed_dnd_drop_feed | ( | Ewl_Embed * | embed, | |
int | x, | |||
int | y | |||
) |
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.
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
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.
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.
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.
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.
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
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.
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.
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.
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.
int ewl_embed_init | ( | Ewl_Embed * | emb | ) |
initialize a embed to default values and callbacks
- Parameters:
-
emb,: the embed to be initialized to default values and callbacks
- Returns:
- Returns TRUE or FALSE depending on if initialization succeeds.
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.
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.
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.
The x and y pointer may be NULL.
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.
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.
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.
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.
void ewl_embed_mouse_up_feed | ( | Ewl_Embed * | embed, | |
int | b, | |||
int | clicks, | |||
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.
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.
Ewl_Widget* ewl_embed_new | ( | void | ) |
Allocate and initialize a new embed.
- Returns:
- Returns a new embed on success, or NULL on failure.
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.
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.
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.
unsigned int ewl_embed_render_get | ( | Ewl_Embed * | embed | ) |
Retrieve the boolean value that indicates if the emebd is rendered by ewl.
- Parameters:
-
embed,: the embed
- Returns:
- Returns a boolean indicating if the embed is rendered by ewl
void ewl_embed_render_set | ( | Ewl_Embed * | embed, | |
unsigned int | f | |||
) |
Sets the boolean flag in the embed to determine if the embed is rendered by ewl.
- Parameters:
-
embed,: the embed to inidicate if it is rendered by ewl f,: boolean to determine if the embed is rendered by ewl or not
- Returns:
- Returns no value.
FALSE
by default, because the evas_render() call is done by ecore_evas. For a ewl_window, however, the flag is set to TRUE
by default, so ewl will call the canvas render function.Use this function only if you really know what you are doing. The default setting should work fine in anycase.
void ewl_embed_selection_text_clear_feed | ( | void | ) |
Sends a selection clear event to the widget with the text selection.
- Returns:
- Returns no value.
void ewl_embed_selection_text_set | ( | Ewl_Embed * | emb, | |
Ewl_Widget * | w, | |||
const char * | txt | |||
) |
This will set the given txt as the primary selection text on the window or clear the text if txt is NULL.
- Parameters:
-
emb,: The embed to set the selection on w,: The widget holding the selection txt,: The text to set into the selection
- Returns:
- Returns no value.
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.
- Parameters:
-
e,: The embed that holds the widgets w,: The widget to be append to the tab order
- Returns:
- Returns no value.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.