set_enabled


Description:

public void set_enabled (bool enabled)

Sets whether this is enabled.

Note:

See [the migration guide](migrating-to-breakpoints.html#replace-adwsqueezer)

If a child is disabled, it will be ignored when looking for the child fitting the available size best.

This allows to programmatically and prematurely hide a child even if it fits in the available space.

This can be used e.g. to ensure a certain child is hidden below a certain window width, or any other constraint you find suitable.

Parameters:

this

a squeezer page

enabled

whether this is enabled