Squeezer.setChildEnabled

Make @self enable or disable @child. 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 of @self 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.

class Squeezer
void
setChildEnabled
(
Widget child
,
bool enabled
)

Parameters

child
Type: Widget

a child of @self

enabled
Type: bool

%TRUE to enable the child, %FALSE to disable it

Meta