lib/ewl_window.c File Reference
#include "ewl_base.h"
#include "ewl_private.h"
#include "ewl_macros.h"
#include "ewl_debug.h"
#include <Evas.h>

Functions | |
| void | ewl_window_attention_demand (Ewl_Window *win) |
| Request the WM to pay attention to the window. | |
| unsigned int | ewl_window_borderless_get (Ewl_Window *win) |
| Retrieves the borderless flag for the window. | |
| void | ewl_window_borderless_set (Ewl_Window *win, unsigned int border) |
| Changes the border from the specified window. | |
| void | ewl_window_cb_configure (Ewl_Widget *w, void *ev_data __UNUSED__, void *user_data __UNUSED__) |
| void | ewl_window_cb_destroy (Ewl_Widget *w, void *ev_data __UNUSED__, void *user_data __UNUSED__) |
| void | ewl_window_cb_expose (Ewl_Widget *w, void *ev __UNUSED__, void *user_data __UNUSED__) |
| void | ewl_window_cb_hide (Ewl_Widget *widget, void *ev_data __UNUSED__, void *user_data __UNUSED__) |
| void | ewl_window_cb_postrealize (Ewl_Widget *w, void *ev_data __UNUSED__, void *user_data __UNUSED__) |
| void | ewl_window_cb_realize (Ewl_Widget *w, void *ev_data __UNUSED__, void *user_data __UNUSED__) |
| void | ewl_window_cb_realize_parent (Ewl_Widget *w, void *ev_data __UNUSED__, void *user_data) |
| void | ewl_window_cb_show (Ewl_Widget *w, void *ev_data __UNUSED__, void *user_data __UNUSED__) |
| void | ewl_window_cb_unrealize (Ewl_Widget *w, void *ev_data __UNUSED__, void *user_data __UNUSED__) |
| const char * | ewl_window_class_get (Ewl_Window *win) |
| Retrieve the class of the specified window. | |
| void | ewl_window_class_set (Ewl_Window *win, const char *classname) |
| Set the class of the specified window. | |
| int | ewl_window_dialog_get (Ewl_Window *win) |
| Retrieves the current dialog state on a window. | |
| void | ewl_window_dialog_set (Ewl_Window *win, int dialog) |
| Changes the dialog state on the specified window. | |
| unsigned int | ewl_window_fullscreen_get (Ewl_Window *win) |
| Retrieve the fullscreen setting for the window. | |
| void | ewl_window_fullscreen_set (Ewl_Window *win, unsigned int fullscreen) |
| Sets the fullscreen setting for the window. | |
| int | ewl_window_init (Ewl_Window *w) |
| Initialize a window to default values and callbacks. | |
| int | ewl_window_keyboard_grab_get (Ewl_Window *win) |
| Retrieves the current keyboard grab state on a window. | |
| void | ewl_window_keyboard_grab_set (Ewl_Window *win, int grab) |
| Changes the keyboard grab state on the specified window. | |
| Ewl_Embed_Window * | ewl_window_leader_foreign_get (Ewl_Window *win) |
| Gets the leader of this window. | |
| void | ewl_window_leader_foreign_set (Ewl_Window *win, Ewl_Embed_Window *leader) |
| Sets the window to be client window of the leader. | |
| Ewl_Window * | ewl_window_leader_get (Ewl_Window *win) |
| Gets the leader of this window. | |
| void | ewl_window_leader_set (Ewl_Window *win, Ewl_Window *leader) |
| Sets the window to be client window of the leader. | |
| void | ewl_window_lower (Ewl_Window *win) |
| Lower a window. | |
| int | ewl_window_modal_get (Ewl_Window *win) |
| Gets the boolean flag indicating if win is modal. | |
| void | ewl_window_modal_set (Ewl_Window *win, int modal) |
| Sets the window to modal or non-modal based on modal. | |
| void | ewl_window_move (Ewl_Window *win, int x, int y) |
| Move the specified window to the given position. | |
| const char * | ewl_window_name_get (Ewl_Window *win) |
| Retrieve the name of the specified window. | |
| void | ewl_window_name_set (Ewl_Window *win, const char *name) |
| Set the name of the specified window. | |
| Ewl_Widget * | ewl_window_new (void) |
| Allocate and initialize a new window. | |
| int | ewl_window_override_get (Ewl_Window *win) |
| Retrieves the current override state on a window. | |
| void | ewl_window_override_set (Ewl_Window *win, int override) |
| Changes the override state on the specified window. | |
| int | ewl_window_pointer_grab_get (Ewl_Window *win) |
| Retrieves the current pointer grab state on a window. | |
| void | ewl_window_pointer_grab_set (Ewl_Window *win, int grab) |
| Changes the pointer grab state on the specified window. | |
| void | ewl_window_raise (Ewl_Window *win) |
| Raise a window. | |
| unsigned int | ewl_window_skip_pager_get (Ewl_Window *win) |
| Retrieve the skip pager setting for the window. | |
| void | ewl_window_skip_pager_set (Ewl_Window *win, unsigned int skip) |
| Sets the skip pager setting for the window. | |
| unsigned int | ewl_window_skip_taskbar_get (Ewl_Window *win) |
| Retrieve the skip taskbar setting for the window. | |
| void | ewl_window_skip_taskbar_set (Ewl_Window *win, unsigned int skip) |
| Sets the skip taskbar setting for the window. | |
| const char * | ewl_window_title_get (Ewl_Window *win) |
| Retrieve the title of the specified window. | |
| void | ewl_window_title_set (Ewl_Window *win, const char *title) |
| Set the title of the specified window. | |
| void | ewl_window_transient_for (Ewl_Window *win, Ewl_Window *forwin) |
| Sets a window to be transient for another window. | |
| void | ewl_window_transient_for_foreign (Ewl_Window *win, Ewl_Embed_Window *forwin) |
| Sets a window to be transient for another window. | |
| unsigned int | ewl_window_urgent_get (Ewl_Window *win) |
| Get the window urgent state. | |
| void | ewl_window_urgent_set (Ewl_Window *win, unsigned int urgent) |
| Set the window to be urgent. | |
| Ewl_Window * | ewl_window_window_find (void *window) |
| Find an ewl window by it's X window. | |
Variables | |
| unsigned int | EWL_CALLBACK_DELETE_WINDOW = 0 |
| unsigned int | EWL_CALLBACK_EXPOSE = 0 |
| Ecore_List * | ewl_window_list = NULL |
Function Documentation
| void ewl_window_cb_configure | ( | Ewl_Widget * | w, | |
| void *ev_data | __UNUSED__, | |||
| void *user_data | __UNUSED__ | |||
| ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, DRETURN, EWL_EMBED, ewl_engine_canvas_output_set(), ewl_engine_window_min_max_size_set(), ewl_engine_window_resize(), EWL_OBJECT, ewl_object_current_h_get(), ewl_object_current_w_get(), ewl_object_current_x_get(), ewl_object_current_y_get(), EWL_WINDOW, EWL_WINDOW_TYPE, EWL_WINDOW_USER_CONFIGURE, Ewl_Window::flags, and Ewl_Window::window.
Referenced by ewl_window_init().
| void ewl_window_cb_destroy | ( | Ewl_Widget * | w, | |
| void *ev_data | __UNUSED__, | |||
| void *user_data | __UNUSED__ | |||
| ) |
References Ewl_Window::classname, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_WINDOW, ewl_window_list, EWL_WINDOW_TYPE, IF_FREE, Ewl_Window::name, and Ewl_Window::title.
Referenced by ewl_window_init().
| void ewl_window_cb_expose | ( | Ewl_Widget * | w, | |
| void *ev | __UNUSED__, | |||
| void *user_data | __UNUSED__ | |||
| ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, ewl_engine_keyboard_grab(), ewl_engine_pointer_grab(), EWL_WINDOW, and EWL_WINDOW_TYPE.
Referenced by ewl_window_init().
| void ewl_window_cb_hide | ( | Ewl_Widget * | widget, | |
| void *ev_data | __UNUSED__, | |||
| void *user_data | __UNUSED__ | |||
| ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, ewl_engine_keyboard_ungrab(), ewl_engine_pointer_ungrab(), ewl_engine_window_hide(), EWL_WINDOW, EWL_WINDOW_GRAB_KEYBOARD, EWL_WINDOW_GRAB_POINTER, EWL_WINDOW_TYPE, and Ewl_Window::flags.
Referenced by ewl_window_init().
| void ewl_window_cb_postrealize | ( | Ewl_Widget * | w, | |
| void *ev_data | __UNUSED__, | |||
| void *user_data | __UNUSED__ | |||
| ) |
| void ewl_window_cb_realize | ( | Ewl_Widget * | w, | |
| void *ev_data | __UNUSED__, | |||
| void *user_data | __UNUSED__ | |||
| ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, ewl_config, EWL_CONFIG_DEBUG_EVAS_RENDER, ewl_config_int_get(), EWL_EMBED, ewl_engine_canvas_setup(), ewl_engine_embed_dnd_aware_set(), ewl_engine_window_borderless_set(), ewl_engine_window_dialog_set(), ewl_engine_window_geometry_get(), ewl_engine_window_hints_set(), ewl_engine_window_leader_set(), ewl_engine_window_name_class_set(), ewl_engine_window_new(), ewl_engine_window_states_set(), ewl_engine_window_title_set(), EWL_OBJECT, EWL_OBJECT_MAX_SIZE, ewl_object_maximum_h_get(), ewl_object_maximum_size_set(), ewl_object_maximum_w_get(), EWL_WINDOW, and EWL_WINDOW_TYPE.
Referenced by ewl_window_init().
| void ewl_window_cb_realize_parent | ( | Ewl_Widget * | w, | |
| void *ev_data | __UNUSED__, | |||
| void * | user_data | |||
| ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, Ewl_Window::ewl, ewl_callback_del(), EWL_CALLBACK_REALIZE, EWL_WIDGET, EWL_WINDOW, ewl_window_leader_set(), ewl_window_transient_for(), EWL_WINDOW_TYPE, Ewl_Window::leader, and Ewl_Window::transient.
Referenced by ewl_window_leader_set(), and ewl_window_transient_for().
| void ewl_window_cb_show | ( | Ewl_Widget * | w, | |
| void *ev_data | __UNUSED__, | |||
| void *user_data | __UNUSED__ | |||
| ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, DRETURN, ewl_engine_window_borderless_set(), ewl_engine_window_resize(), ewl_engine_window_show(), ewl_widget_configure(), EWL_WINDOW, EWL_WINDOW_OVERRIDE, EWL_WINDOW_TYPE, EWL_WINDOW_USER_CONFIGURE, Ewl_Window::flags, and Ewl_Window::window.
Referenced by ewl_window_init().
| void ewl_window_cb_unrealize | ( | Ewl_Widget * | w, | |
| void *ev_data | __UNUSED__, | |||
| void *user_data | __UNUSED__ | |||
| ) |
References Ewl_Embed::canvas, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, ewl_canvas_destroy(), EWL_EMBED, ewl_embed_cache_cleanup(), ewl_engine_window_destroy(), ewl_engine_window_hide(), EWL_WINDOW, EWL_WINDOW_TYPE, and REALIZED.
Referenced by ewl_window_init().
Variable Documentation
| Ecore_List* ewl_window_list = NULL |
Referenced by ewl_init(), ewl_shutdown(), ewl_window_cb_destroy(), ewl_window_init(), and ewl_window_window_find().