| 1 | package X11::XRandR::Screen; | ||
| 2 | |||
| 3 | # ABSTRACT: A Screen | ||
| 4 | |||
| 5 | 1 | ▶ | use Types::Standard qw[ InstanceOf ]; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 1 | ▶ | use Types::Common::Numeric qw[ PositiveOrZeroInt ]; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 1 | ▶ | use X11::XRandR::Types -types; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 1 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 1 | ▶ | use namespace::clean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | 1 | ▶ | use MooX::StrictConstructor; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | |||
| 14 | 1 | our $VERSION = '0.01'; | |
| 15 | |||
| 16 | #pod =attr id | ||
| 17 | #pod | ||
| 18 | #pod =cut | ||
| 19 | |||
| 20 | 1 | has id => ( | |
| 21 | is => 'ro', | ||
| 22 | isa => PositiveOrZeroInt, | ||
| 23 | required => 1, | ||
| 24 | ); | ||
| 25 | |||
| 26 | #pod =attr min_dim | ||
| 27 | #pod | ||
| 28 | #pod =attr max_dim | ||
| 29 | #pod | ||
| 30 | #pod =attr cur_dim | ||
| 31 | #pod | ||
| 32 | #pod Instances of L<X11::XRandR::Dimension>. | ||
| 33 | #pod | ||
| 34 | #pod =cut | ||
| 35 | |||
| 36 | has $_ => ( | ||
| 37 | is => 'ro', | ||
| 38 | isa => InstanceOf ['X11::XRandR::Dimension'], | ||
| 39 | required => 1, | ||
| 40 | 1 | ) for qw[ min_dim max_dim cur_dim ]; | |
| 41 | |||
| 42 | |||
| 43 | #pod =method to_string | ||
| 44 | #pod | ||
| 45 | #pod Return a string rendition of the object just as B<xrandr> would. | ||
| 46 | #pod | ||
| 47 | #pod =cut | ||
| 48 | |||
| 49 | 1 | 1; | |
| 50 | |||
| 51 | # | ||
| 52 | # This file is part of X11-XRandR | ||
| 53 | # | ||
| 54 | # This software is Copyright (c) 2018 by Diab Jerius. | ||
| 55 | # | ||
| 56 | # This is free software, licensed under: | ||
| 57 | # | ||
| 58 | # The GNU General Public License, Version 3, June 2007 | ||
| 59 | # | ||
| 60 | |||
| 61 | __END__ | ||