Firefo...w::Rect(3pm)

πŸ“¦
version 1.63 Β· 3 versions
, in debian trixie

✨ 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 return undef for older Firefoxen. πŸ’€
  • pos_y β€” the Y position of the window. also undef for 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 returns undef for Firefox versions less than 57 πŸ™ˆ

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" πŸ’–


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