Scroll to navigation

Tickit::Widgets(3pm) User Contributed Perl Documentation Tickit::Widgets(3pm)

NAME

"Tickit::Widgets" - load several Tickit::Widget classes at once

SYNOPSIS

   use Tickit::Widgets qw( Static VBox HBox );

Equivalent to

   use Tickit::Widget::Static;
   use Tickit::Widget::VBox;
   use Tickit::Widget::HBox;

DESCRIPTION

This module provides an "import" utility to simplify code that uses many different Tickit::Widget subclasses. Instead of a "use" line per module, you can simply "use" this module and pass it the base name of each class. It will "require" each of the modules.

Note that because each Widget module should be a pure object class with no exports, this utility does not run the "import" method of the used classes.

An optional version check may be supplied using a "=" sign:

   use Tickit::Widgets qw( HBox=0.48 VBox=0.48 );

AUTHOR

Paul Evans <leonerd@leonerd.org.uk>

2020-11-04 perl v5.30.3