DOKK / manpages / debian 10 / libtickit-widgets-perl / Tickit::SingleChildWidget.3pm.en
Tickit::SingleChildWidget(3pm) User Contributed Perl Documentation Tickit::SingleChildWidget(3pm)

"Tickit::SingleChildWidget" - abstract base class for widgets that contain a single other widget

 TODO

This subclass of Tickit::ContainerWidget acts as an abstract base class for widgets that contain exactly one other widget. It enforces that only one child widget may be contained at any one time, and provides a convenient accessor to obtain it.

   $widget = Tickit::SingleChildWidget->new( %args )

Constructs a new "Tickit::SingleChildWidget" object. If passed an argument called "child" this will be added as the contained child widget.

   $child = $widget->child

Returns the contained child widget.

   $widget->set_child( $child )

Sets the child widget, or "undef" to remove.

Paul Evans <leonerd@leonerd.org.uk>

2018-07-30 perl v5.26.2