Firefo...w::Rect(3pm)
β¨ NAME β¨
Firefox::Marionette::Window::Rect β bestie, this is the module that tells you the browser window's shape and size π
It's part of the Firefox::Marionette situation, and it's literally just vibing there holding the dimensions of your window. Iconic.
πΈ VERSION πΈ
Version 1.63 β¨
π SYNOPSIS π
okay so here's the whole thing in action, no cap:
use Firefox::Marionette();
use v5.10;
my $firefox = Firefox::Marionette->new()->go('https://metacpan.org/');
my $rect = $firefox->rect();
say "Current height of the window " . $window->height();
that's it. that's the vibe. π¦
π DESCRIPTION π
This module handles the representation of the browser window πͺβ¨ like it's the main character and its whole job is knowing how big and where your window is. periodt.
π«Ά SUBROUTINES/METHODS π«Ά
new
it takes a hash as a parameter, bestie. allowed keys are below, don't try anything else:
pos_xβ the X position of the window. this one will returnundeffor older Firefoxen. πpos_yβ the Y position of the window. alsoundeffor older Firefoxen. πheightβ the height of the window πwidthβ the width of the window πwstateβ the state of the window as a scalar string. this one returnsundeffor Firefox versions less than57π
This method returns a new rect object. slay. π
pos_x
returns the X position of the window π
pos_y
returns the Y position of the window π
height
returns the height of the window π
width
returns the width of the window π
wstate
returns a scalar representing the state of the window. for example 'maximized'. like, she's fully stretched out, living her best life π
π DIAGNOSTICS π
None. nothing. zero drama. π
π§ CONFIGURATION AND ENVIRONMENT π§
Firefox::Marionette::Window::Rect requires no configuration files or environment variables. it's low maintenance fr fr. β¨
π DEPENDENCIES π
None. she's independent. she doesn't need anybody. π
π INCOMPATIBILITIES π
None reported. π€·ββοΈ
π BUGS AND LIMITATIONS π
To report a bug, or view the current list of bugs, please visit <https://github.com/david-dick/firefox-marionette/issues> π
okay bestie if something's broken, that's the link. go tell them. they're nice about it.
πΈ AUTHOR πΈ
David Dick "ddick@cpan.org" π
π LICENSE AND COPYRIGHT π
Copyright (c) 2024, David Dick "ddick@cpan.org". All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See "perlartistic" in perlartistic.
β DISCLAIMER OF WARRANTY β
okay so this part is ALL CAPS and it's giving legal, so listen up, no skipping:
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
like, it's free, so... yeah. that's the deal. π«Ά
and that's the whole page, bestie!! this was Firefo...w::Rect(3pm) from perl v5.40.1, dated 2025-03-16 πβ¨ go forth and measure your windows, you're doing amazing sweetie ππ¦π
π¦ where this page comes from
- debian trixie: libfirefox-marionette-perl 1.63-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms