mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-23 20:30:15 +00:00
API: Add gdk_window_get_display()
This commit is contained in:
parent
0f13411cb0
commit
7f486231ac
@ -360,6 +360,7 @@ GdkWindowAttributesType
|
||||
gdk_window_new
|
||||
gdk_window_destroy
|
||||
gdk_window_get_window_type
|
||||
gdk_window_get_display
|
||||
gdk_window_get_screen
|
||||
gdk_window_get_visual
|
||||
gdk_window_at_pointer
|
||||
|
@ -571,6 +571,7 @@ gdk_window_get_accept_focus
|
||||
gdk_window_get_background_pattern
|
||||
gdk_window_get_composited
|
||||
gdk_window_get_cursor
|
||||
gdk_window_get_display
|
||||
gdk_window_get_focus_on_map
|
||||
gdk_window_get_geometry
|
||||
gdk_window_get_modal_hint
|
||||
|
@ -2206,6 +2206,25 @@ gdk_window_get_screen (GdkWindow *window)
|
||||
return gdk_visual_get_screen (private->visual);
|
||||
}
|
||||
|
||||
/**
|
||||
* gdk_window_get_display:
|
||||
* @window: a #GdkWindow
|
||||
*
|
||||
* Gets the #GdkDisplay associated with a #GdkWindow.
|
||||
*
|
||||
* Return value: the #GdkDisplay associated with @window
|
||||
**/
|
||||
GdkDisplay *
|
||||
gdk_window_get_display (GdkWindow *window)
|
||||
{
|
||||
GdkWindowObject *private;
|
||||
|
||||
g_return_val_if_fail (GDK_IS_WINDOW (window), NULL);
|
||||
|
||||
private = (GdkWindowObject *) window;
|
||||
|
||||
return gdk_screen_get_display (gdk_visual_get_screen (private->visual));
|
||||
}
|
||||
/**
|
||||
* gdk_window_is_destroyed:
|
||||
* @window: a #GdkWindow
|
||||
|
@ -507,6 +507,7 @@ gboolean gdk_window_is_destroyed (GdkWindow *window);
|
||||
|
||||
GdkVisual * gdk_window_get_visual (GdkWindow *window);
|
||||
GdkScreen * gdk_window_get_screen (GdkWindow *window);
|
||||
GdkDisplay * gdk_window_get_display (GdkWindow *window);
|
||||
#ifndef GDK_MULTIDEVICE_SAFE
|
||||
GdkWindow* gdk_window_at_pointer (gint *win_x,
|
||||
gint *win_y);
|
||||
|
Loading…
Reference in New Issue
Block a user