Tickit...dWidget(3pm)

πŸ’– Tickit::SingleChildWidget πŸ’–

okay bestie, so this one is from the User Contributed Perl Documentation section, and it's called Tickit::SingleChildWidget β€” an abstract base class for widgets that contain a single other widget. yes, exactly one. no more, no less. it's giving only-child energy and honestly? iconic. πŸŽ€


✨ NAME ✨

Tickit::SingleChildWidget β€” abstract base class for widgets that contain a single other widget πŸ’…


🌸 SYNOPSIS 🌸

TODO

no like literally, that's what it says. the synopsis is a TODO. bestie the docs said "figure it out" and moved on. 😭 we respect the honesty tho.


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so listen. Tickit::SingleChildWidget is a subclass of Tickit::ContainerWidget, and it acts as an abstract base class for widgets that contain exactly one other widget. one. singular. a single child. πŸ‘‘

it enforces that only one child widget may be contained at any one time β€” so if you were thinking about sneaking a second one in there, the vibe check says no. 🚫✨

and then, because it's a generous queen, it also provides a convenient accessor so you can actually get to that one child widget. periodt. πŸ’–


πŸ‘‘ CONSTRUCTOR πŸ‘‘

πŸŽ€ new

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

Constructs a new Tickit::SingleChildWidget object. that's it. that's the whole thing. build your widget, give it %args, and let it be the main character it was born to be. ✨🫢


🌈 AUTHOR 🌈

Paul Evans <leonerd@leonerd.org.uk>

shoutout to Paul, fr fr. πŸ«‘πŸ’œ


okay that's the whole page bestie, no cap. this was documented as perl v5.40.0 on 2024-09-16 β€” go forth and contain exactly one child widget, it's the law πŸ’…πŸŒΈ

πŸ“¦ where this page comes from