gui2.slotwidget

A widget acting as a pluggable slot in a widget tree.

class SlotWidget: gui2.widget.Widget;

A widget that can contain a RootWidget.

A SlotWidget is a slot in the widget tree where different widget trees might be inserted.

this(ref Node yaml);

Load a SlotWidget from YAML.

Do not call directly.

const pure nothrow @property bool free();

Is the SlotWidget free (i.e. no RootWidget is connected) ?

void connect(RootWidget child);

Connect a RootWidget.

void disconnect(RootWidget child);

Disconnect a RootWidget. The RootWidget passed must be the connected RootWidget.