get_keep_aspect_ratio


Description:

[ Version ( deprecated = true , deprecated_since = "4.8" ) ]
public bool get_keep_aspect_ratio ()

Warning: get_keep_aspect_ratio is deprecated since 4.8.

Returns whether the `GtkPicture` preserves its contents aspect ratio.

Note:

Use [method@Gtk.Picture.get_content_fit] instead. This will now return `FALSE` only if [property@Gtk.Picture:content-fit] is `GTK_CONTENT_FIT_FILL`. Returns `TRUE` otherwise.

Parameters:

this

a `GtkPicture`

Returns:

true if the self tries to keep the contents' aspect ratio