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 gtk.widget.Widget.setSizeRequest.

Also of note is that a similar function for growing does not exist because the grow behavior can be controlled via gtk.widget.Widget.setHalign and gtk.widget.Widget.setValign.

class Picture
void
setCanShrink
()

Parameters

canShrink bool

if self can be made smaller than its contents