set_can_shrink


Description:

public void set_can_shrink (bool can_shrink)

If set to true, the this 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 [[email protected]_size_request].

Also of note is that a similar function for growing does not exist because the grow behavior can be controlled via [ [email protected]_halign] and [[email protected]_valign].

Parameters:

this

a `GtkPicture`

can_shrink

if this can be made smaller than its contents




2022 vala-language.org