Widget.addOnDestroy

Signals that all holders of a reference to the widget should release the reference that they hold. May result in finalization of the widget if all references are released.

This signal is not suitable for saving widget state.

class Widget
gulong
addOnDestroy
(
void delegate dlg
,
ConnectFlags connectFlags = cast(ConnectFlags)0
)