Tickit...acegrid(3pm)

πŸ’– Tickit::Widget::Placegrid β€” a placeholder grid display πŸ’–

okay bestie, welcome to the Tickit::Widget::Placegrid page from the User Contributed Perl Documentation (that's the 3pm section, iykyk) πŸŽ€


✨ NAME ✨

Tickit::Widget::Placegrid β€” a placeholder grid display πŸ¦‹


🌸 DESCRIPTION 🌸

So this class hands you a widget that literally just draws a simple grid pattern inside its display area, and then prints the size of the area right in the middle of it. That's it. That's the whole vibe. πŸ’…

It's a placeholder β€” like, the widget equivalent of putting a sticky note on your laptop that says "something goes here later." You use it while your actual widget code is still under development, and it lets a container have a child that can take any size it wants, and it keeps its window area painted the whole time. Which matters way more than it sounds, because it avoids bugs caused by "empty" containers that don't clear their unused child areas. No cap, that's a real bug source and this thing just ✨ prevents it ✨


πŸŽ€ STYLE πŸŽ€

The default style pen is used as the widget pen. Simple. Clean. Iconic.

The following style pen prefixes are also used:

  • grid => PEN β€” the pen used to render the grid lines πŸ“βœ¨

πŸ’œ CONSTRUCTOR πŸ’œ

$placegrid = Tickit::Widget::Placegrid->new( %args )

Constructs a brand new Tickit::Widget::Placegrid object. Main character energy, fr fr. 🌟

It takes the following named arguments:

  • title => STR β€” Optional. If you provide it, it prints an identifying title just above the box dimensions, right there in the centre of the grid. So cute, so informative. πŸ·οΈπŸ’–

πŸ‘‘ AUTHOR πŸ‘‘

  • Original rendering code by Tom Molesworth <cpan@entitymodel.com> 🫢
  • Widget wrapping by Paul Evans <leonerd@leonerd.org.uk> 🫢

πŸ’€ reminder bestie: it's a placeholder. It's meant to be basic. It's doing exactly what it says on the tin and it's slaying at it.

perl v5.40.0 Β· 2024-09-16 β€” that's the version and date this page came from, and that's the whole page!! tysm for reading, go build something gorgeous πŸ§šπŸ’œπŸŒΈ

πŸ“¦ where this page comes from