Etk
Main Page Object Hierarchy Data Structures Related Pages
Etk

etk_window.h File Reference


Detailed Description


Data Structures

struct  Etk_Window
 [Widget] The most common toplevel-widget More...

Defines

#define ETK_WINDOW_TYPE   (etk_window_type_get())
#define ETK_WINDOW(obj)   (ETK_OBJECT_CAST((obj), ETK_WINDOW_TYPE, Etk_Window))
#define ETK_IS_WINDOW(obj)   (ETK_OBJECT_CHECK_TYPE((obj), ETK_WINDOW_TYPE))

Enumerations

enum  Etk_Window_Stacking {
  ETK_WINDOW_NORMAL,
  ETK_WINDOW_ABOVE,
  ETK_WINDOW_BELOW
}
 Describes how the window is stacked. More...

Functions

Etk_Widget * etk_window_new (void)
 Creates a new window.
void etk_window_delete_request (Etk_Window *window)
 Emits a delete-request on the window: it will call all the callbacks connected to the "delete-event" signal and if all these callbacks return ETK_TRUE, the window will be destroyed. It has the same effect as if the user had clicked on the "close" button of the window.
void etk_window_title_set (Etk_Window *window, const char *title)
 Sets the title of the window.
const char * etk_window_title_get (Etk_Window *window)
 Gets the title of the window.
void etk_window_wmclass_set (Etk_Window *window, const char *window_name, const char *window_class)
 Sets the window name and the window class of a window.
void etk_window_move (Etk_Window *window, int x, int y)
 Moves the window to the position (x, y).
void etk_window_resize (Etk_Window *window, int w, int h)
 Resizes the window.
void etk_window_geometry_get (Etk_Window *window, int *x, int *y, int *w, int *h)
 Gets the geometry of the window.
void etk_window_center_on_window (Etk_Window *window_to_center, Etk_Window *window)
 Centers a window on another window.
void etk_window_move_to_mouse (Etk_Window *window)
 Moves the window at the mouse position.
void etk_window_modal_for_window (Etk_Window *window_to_modal, Etk_Window *window)
 Makes a window modal for another window.
void etk_window_raise (Etk_Window *window)
 Raises the window.
void etk_window_lower (Etk_Window *window)
 Lowers the window.
void etk_window_stacking_set (Etk_Window *window, Etk_Window_Stacking stacking)
 Sets the stacking layer of the window (normal, "always on top" or "always below").
Etk_Window_Stacking etk_window_stacking_get (Etk_Window *window)
 Gets the stacking layer of the window.
void etk_window_iconified_set (Etk_Window *window, Etk_Bool iconified)
 Sets whether or not the window is iconified (i.e. minimized).
Etk_Bool etk_window_iconified_get (Etk_Window *window)
 Gets whether the window is iconified.
void etk_window_maximized_set (Etk_Window *window, Etk_Bool maximized)
 Sets whether or not the window is maximized.
Etk_Bool etk_window_maximized_get (Etk_Window *window)
 Gets whether the window is maximized.
void etk_window_fullscreen_set (Etk_Window *window, Etk_Bool fullscreen)
 Places the window in the fullscreen state.
Etk_Bool etk_window_fullscreen_get (Etk_Window *window)
 Gets whether the window is in the fullscreen state.
void etk_window_focused_set (Etk_Window *window, Etk_Bool focused)
 Sets whether or not the window is focused.
Etk_Bool etk_window_focused_get (Etk_Window *window)
 Gets whether the window is focused.
void etk_window_sticky_set (Etk_Window *window, Etk_Bool sticky)
 Sticks / unsticks the window: it will appear / disappear on all the virtual desktops.
Etk_Bool etk_window_sticky_get (Etk_Window *window)
 Gets whether the window is sticky (i.e. if it appears on all the virtual desktops).
void etk_window_decorated_set (Etk_Window *window, Etk_Bool decorated)
 Sets wheter the window is decorated.
Etk_Bool etk_window_decorated_get (Etk_Window *window)
 Gets whether the window is decorated (i.e. whether the border of the window is shown).
void etk_window_shaped_set (Etk_Window *window, Etk_Bool shaped)
 Sets wheter the window is shaped.
Etk_Bool etk_window_shaped_get (Etk_Window *window)
 Gets whether the window is shaped.
void etk_window_has_alpha_set (Etk_Window *window, Etk_Bool has_alpha)
 Sets wheter the window has an alpha channel (supports translucency).
Etk_Bool etk_window_has_alpha_get (Etk_Window *window)
 Gets whether the window has an alpha channel (supports translucency).
void etk_window_skip_taskbar_hint_set (Etk_Window *window, Etk_Bool skip_taskbar_hint)
 Sets whether the window should not be shown in the taskbar.
Etk_Bool etk_window_skip_taskbar_hint_get (Etk_Window *window)
 Gets whether the window should not be shown in the taskbar.
void etk_window_skip_pager_hint_set (Etk_Window *window, Etk_Bool skip_pager_hint)
 Sets whether the window should not be shown in the pager.
Etk_Bool etk_window_skip_pager_hint_get (Etk_Window *window)
 Gets whether the window should not be shown in the pager.
Etk_Bool etk_window_hide_on_delete (Etk_Object *window, void *data)
 A utility function to use as a callback for the "delete-event" signal. It will hide the window and return ETK_FALSE to prevent the program from quitting.