21 Oct 2021 06:32:51 UTC
- Distribution: X11-Xlib
- Module version: 0.23
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (137 / 0 / 0)
- KwaliteeBus factor: 1
- % Coverage
- License: perl_5
- Download (137.71KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
- COPYRIGHT AND LICENSE
X11::Xlib::Screen - Convenience wrapper around Display+ScreenID
In ancient history, a
Screenrepresented one physical graphics device + monitor. Now days there tends to be only one per system, with multiple monitors or displays aggregated into a single screen using Xinerama or XRandR. This was mostly caused by the annoying restriction that graphic resources (i.e. windows) are bound to a single screen.
The short of that story is that
$screen->widthetc don't do what a person might expect them to do. If you want to know about the boundaries of physical monitors you'll need the yet-unwritten
X11::Xlib::Monitorobjects provided by a future wrapper around Xinerama or XRandR.
Reference to X11::Xlib::Display
The integer identifying this screen.
Width in pixels
Height in pixels
Physical width in millimeters.
Physical height in millimeters.
Color depth of the RootWindow of this screen.
The XID of the root window of this screen
The X11::Xlib::Window object for the root window of this screen
The default visual of this screen
my $vinfo= $screen->visual_info(); # uses defualt visual for this screen my $vinfo= $screen->visual_info($visual); my $vinfo= $screen->visual_info($visual_id);
Shortcut to "visual_info" in X11::Xlib::Display, but using this screen's default visual when no argument is given.
my $vinfo= $screen->match_visual_info($depth, $class);
Like "match_visual_info" in X11::Xlib::Display but with an implied
Olivier Thauvin, <firstname.lastname@example.org>
Michael Conrad, <email@example.com>
Copyright (C) 2009-2010 by Olivier Thauvin
Copyright (C) 2017-2021 by Michael Conrad
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.
|s||Focus search bar|
|?||Bring up this help dialog|
|g p||Go to pull requests|
|g i||go to github issues (only if github is preferred repository)|
|g a||Go to author|
|g c||Go to changes|
|g i||Go to issues|
|g d||Go to dist|
|g r||Go to repository/SCM|
|g s||Go to source|
|g b||Go to file browse|