Picture.setCanShrink

If set to %TRUE, the @self can be made smaller than its contents.

The contents will then be scaled down when rendering.

If you want to still force a minimum size manually, consider using [method@Gtk.Widget.set_size_request].

Also of note is that a similar function for growing does not exist because the grow behavior can be controlled via [method@Gtk.Widget.set_halign] and [method@Gtk.Widget.set_valign].

class Picture
void
setCanShrink
()

Parameters

canShrink bool

if @self can be made smaller than its contents

Meta