X11::XCB::Rect(3pm)

πŸ’– X11::XCB::Rect β€” the manual page, bestie edition πŸ’–

okay so, quick vibe check: this is the X11::XCB::Rect page, from the User Contributed Perl Documentation collection. it's giving "tiny module, big main character energy" ✨

✨ NAME ✨

X11::XCB::Rect β€” bestie, it literally just represents a rectangle πŸŽ€ that's it, that's the whole job, and it does it flawlessly, no cap.

🌸 SYNOPSIS 🌸

you wanna make a rect with your own two hands? bet, here's how:

my $rect = X11::XCB::Rect->new(x => 0, y => 0, width => 300, height => 400);

so slay, you pass x, y, width and height as named args and it hands you back a fresh little rectangle 🫢 iconic behaviour, honestly.

but lowkey? most of the time you don't even need to do all that πŸ’… because you should be able to coerce a rect from an arrayref, and honestly that's the move:

my $window = $x->root->create_child(
  rect => [0, 0, 300, 300],
  class => WINDOW_CLASS_INPUT_OUTPUT,
);

see that? you just hand over a plain arrayref β€” [0, 0, 300, 300] β€” and it gets coerced into a rect for you 🀸 like, the module is doing the most so you can do the least. obsessed.


🌈 reminder, bestie: the arrayref gives you the four numbers, and coercion turns them into a proper X11::XCB::Rect. no extra steps, no drama, just vibes. ✨

and that's the whole page, fr fr β€” short, sweet, and exactly what it says on the tin πŸ“ no extra lore, no hidden flags, no surprises πŸ’€

this little baddie of a page came to you from perl v5.42.3, dated 2026-08-22, filed under X11::XCB::Rect(3pm). take care of her, she's an icon πŸ‘‘ πŸ’œ

πŸ“¦ where this page comes from