![]() |
![]()
| ![]() |
![]()
NAMEX11::Resolution - Get information on the current resolution for X. VERSIONVersion 0.0.0 SYNOPSISuse X11::Resolution; my $xres=X11::Resolution->new(); if($xres->{error}){ print "Error:".$xres->{error}.": ".$xres->{errorString}."\n"; } #gets it currently the current screen my ($x, $y)=$xres->getResolution; if($xres->{error}){ print "Error:".$xres->{error}.": ".$xres->{errorString}."\n"; } print "x=".$x."\ny=".$y."\n"; #gets it for screen zero my ($x, $y)=$xres->getResolution(0); if($xres->{error}){ print "Error:".$xres->{error}.": ".$xres->{errorString}."\n"; } print "x=".$x."\ny=".$y."\n"; methodesnewThis initiates the object. my $xres=X11::Resolution->new(); if($xres->{error}){ print "Error:".$xres->{error}.": ".$xres->{errorString}."\n"; } getResolutionThis fetches the resolution for the current or a given screen. #gets it currently the current screen my ($x, $y)=$xres->getResolution; if($xres->{error}){ print "Error:".$xres->{error}.": ".$xres->{errorString}."\n"; } print "x=".$x."\ny=".$y."\n"; #gets it for screen zero my ($x, $y)=$xres->getResolution(0); if($xres->{error}){ print "Error:".$xres->{error}.": ".$xres->{errorString}."\n"; } print "x=".$x."\ny=".$y."\n"; errorBlankThis is a internal function and should not be called. ERROR CODES1No enviromental variable 'DISPLAY' listed. 2None existant display. AUTHORZane C. Bowers, "<vvelox at vvelox.net>" BUGSPlease report any bugs or feature requests to "bug-x11-resolution at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=X11-Resolution>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. SUPPORTYou can find documentation for this module with the perldoc command. perldoc X11::Resolution You can also look for information at:
ACKNOWLEDGEMENTSCOPYRIGHT & LICENSECopyright 2009 Zane C. Bowers, all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|