surface: Add a getter for autohide
This commit is contained in:
@@ -188,6 +188,7 @@ gdk_surface_is_destroyed
|
||||
gdk_surface_is_visible
|
||||
gdk_surface_is_viewable
|
||||
gdk_surface_get_state
|
||||
gdk_surface_get_autohide
|
||||
gdk_surface_minimize
|
||||
gdk_surface_unminimize
|
||||
gdk_surface_stick
|
||||
|
||||
@@ -4183,3 +4183,20 @@ gdk_surface_translate_coordinates (GdkSurface *from,
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/**
|
||||
* gdk_surface_get_autohide:
|
||||
* @surface: a #GdkSurface
|
||||
*
|
||||
* Returns whether this surface is set to hide on outside clicks.
|
||||
*
|
||||
* Returns: %TRUE if @surface will autohide
|
||||
*/
|
||||
gboolean
|
||||
gdk_surface_get_autohide (GdkSurface *surface)
|
||||
{
|
||||
g_return_val_if_fail (GDK_IS_SURFACE (surface), FALSE);
|
||||
|
||||
return surface->autohide;
|
||||
}
|
||||
|
||||
|
||||
@@ -408,6 +408,9 @@ gboolean gdk_surface_is_visible (GdkSurface *surface);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
gboolean gdk_surface_is_viewable (GdkSurface *surface);
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
gboolean gdk_surface_get_autohide (GdkSurface *surface);
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GdkSurfaceState gdk_surface_get_state (GdkSurface *surface);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user