Download

Support

X Window Parent Functions

Functions that retrieve or changes the parent window of a window. More...

Functions

EAPI void ecore_x_pointer_xy_get_prefetch (Ecore_X_Window window)
 Sends the QueryPointer request.
EAPI void ecore_x_pointer_xy_get_fetch (void)
 Gets the reply of the QueryPointer request sent by ecore_x_query_pointer_prefetch().
EAPI void ecore_x_pointer_xy_get (Ecore_X_Window window __UNUSED__, int *x, int *y)
 Retrieves the coordinates of the pointer.
EAPI void ecore_x_query_tree_prefetch (Ecore_X_Window window)
 Sends the QueryTree request.
EAPI void ecore_x_query_tree_fetch (void)
 Gets the reply of the QueryTree request sent by ecore_x_query_tree_prefetch().
EAPI Ecore_X_Window ecore_x_window_parent_get (Ecore_X_Window window __UNUSED__)
 Retrieves the parent window of the given window.
EAPI Ecore_X_Window * ecore_x_window_children_get (Ecore_X_Window window __UNUSED__, int *num)
 Retrieves the children windows of the given window.
EAPI void ecore_x_window_reparent (Ecore_X_Window win, Ecore_X_Window new_parent, int x, int y)
 Moves a window to within another window at a given position.
EAPI Ecore_X_Window ecore_x_window_parent_get (Ecore_X_Window win)
 Retrieves the parent window of the given window.

Detailed Description

Functions that retrieve or changes the parent window of a window.


Function Documentation

EAPI void ecore_x_pointer_xy_get ( Ecore_X_Window window  __UNUSED__,
int *  x,
int *  y 
)

Retrieves the coordinates of the pointer.

Parameters:
window Unused.
x The X coordinate of the pointer.
y The Y coordinate of the pointer.
Retrieves the coordinates of the pointer. If the window used in ecore_x_query_pointer_prefetch() is not on the same screen than the root window or if an error occured, x and y are set to 0. Otherwise, they are respectively set to the X and Y coordinates of the pointer.

To use this function, you must call before, and in order, ecore_x_query_pointer_prefetch(), which sends the QueryPointer request, then ecore_x_query_pointer_fetch(), which gets the reply.

EAPI Ecore_X_Window* ecore_x_window_children_get ( Ecore_X_Window window  __UNUSED__,
int *  num 
)

Retrieves the children windows of the given window.

Parameters:
window Unused.
num children windows count.
Returns:
The children windows.
Retrieves the children windows of the given window. If an error occured, 0 is returned.

To use this function, you must call before, and in order, ecore_x_query_tree_prefetch(), which sends the QueryTree request, then ecore_x_query_tree_fetch(), which gets the reply.

EAPI Ecore_X_Window ecore_x_window_parent_get ( Ecore_X_Window  win  ) 

Retrieves the parent window of the given window.

Parameters:
win The given window.
Returns:
The parent window of win.

EAPI Ecore_X_Window ecore_x_window_parent_get ( Ecore_X_Window window  __UNUSED__  ) 

Retrieves the parent window of the given window.

Parameters:
window Unused.
Returns:
The parent window of window.
Retrieves the parent window of the given window. If an error occured, 0 is returned.

To use this function, you must call before, and in order, ecore_x_query_tree_prefetch(), which sends the QueryTree request, then ecore_x_query_tree_fetch(), which gets the reply.

EAPI void ecore_x_window_reparent ( Ecore_X_Window  win,
Ecore_X_Window  new_parent,
int  x,
int  y 
)

Moves a window to within another window at a given position.

Parameters:
win The window to reparent.
new_parent The new parent window.
x X position within new parent window.
y Y position within new parent window.


Copyright © Enlightenment.org

Ecore Documentation Generated: Thu Sep 25 12:27:25 2008