Commit c02379df authored by Sam Spilsbury's avatar Sam Spilsbury Committed by Georges Basile Stavracas Neto
Browse files

window: Add meta_window_get_minimum_size

This just returns the current minimum size according to the size
hints of the window.
parent 4821956e
Pipeline #230431 passed with stages
in 12 minutes and 10 seconds
......@@ -5969,6 +5969,24 @@ meta_window_titlebar_is_onscreen (MetaWindow *window)
return is_onscreen;
}
/**
* meta_window_get_minimum_size_hints:
* @window: A #MetaWindow
* @width: (out): A location to write the minimum width of the window.
* @height: (out): A location to write the minimum height of the window.
*
* Get the minimum size for this #MetaWindow based on its size hints.
*
*/
void
meta_window_get_minimum_size_hints (MetaWindow *window,
unsigned int *width,
unsigned int *height)
{
*width = window->size_hints.min_width;
*height = window->size_hints.min_height;
}
/**
* meta_window_expand_allocated_geometry:
* @window: A #MetaWindow
......
......@@ -446,6 +446,11 @@ uint64_t meta_window_get_id (MetaWindow *window);
META_EXPORT
MetaWindowClientType meta_window_get_client_type (MetaWindow *window);
META_EXPORT
void meta_window_get_minimum_size_hints (MetaWindow *window,
unsigned int *width,
unsigned int *height);
META_EXPORT
void meta_window_expand_allocated_geometry (MetaWindow *window,
int width,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment