Constructor
GdkX11X11Windowforeign_new_for_display
since: 2.24
Declaration [src]
GdkWindow*
gdk_x11_window_foreign_new_for_display (
GdkDisplay* display,
Window window
)
Description [src]
Wraps a native window in a GdkWindow
. The function will try to
look up the window using gdk_x11_window_lookup_for_display()
first.
If it does not find it there, it will create a new window.
This may fail if the window has been destroyed. If the window
was already known to GDK, a new reference to the existing
GdkWindow
is returned.
Available since: 2.24
Parameters
display
-
Type:
GdkX11Display
The
GdkDisplay
where the window handle comes from.The data is owned by the caller of the function. window
-
Type:
Window
An Xlib Window.
Return value
Type: GdkWindow
A GdkWindow
wrapper for the native
window, or NULL
if the window has been destroyed. The wrapper
will be newly created, if one doesn’t exist already.
The caller of the function takes ownership of the data, and is responsible for freeing it. |