setCanShrink

open fun setCanShrink(canShrink: Boolean)

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.

Parameters

canShrink

if @self can be made smaller than its contents