| 1 | package X11::XRandR::Property; | ||
| 2 | |||
| 3 | # ABSTRACT: An output property | ||
| 4 | |||
| 5 | 2 | ▶ | use Types::Standard qw[ ArrayRef InstanceOf Str ]; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 2 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 2 | ▶ | use namespace::clean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 2 | ▶ | use MooX::StrictConstructor; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 2 | our $VERSION = '0.01'; | |
| 12 | |||
| 13 | 2 | ▶ | use overload '""' => \&to_string; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | |||
| 15 | #pod =attr name | ||
| 16 | #pod | ||
| 17 | #pod =cut | ||
| 18 | |||
| 19 | 2 | has name => ( | |
| 20 | is => 'ro', | ||
| 21 | isa => Str, | ||
| 22 | required => 1, | ||
| 23 | ); | ||
| 24 | |||
| 25 | #pod =attr value | ||
| 26 | #pod | ||
| 27 | #pod =cut | ||
| 28 | |||
| 29 | 2 | has value => ( | |
| 30 | is => 'ro', | ||
| 31 | isa => Str, | ||
| 32 | required => 1, | ||
| 33 | ); | ||
| 34 | |||
| 35 | #pod =attr supported | ||
| 36 | #pod | ||
| 37 | #pod A list of supported values. Optional. | ||
| 38 | #pod | ||
| 39 | #pod =method has_supported | ||
| 40 | #pod | ||
| 41 | #pod I<Boolean> True if C<supported> was specified | ||
| 42 | #pod | ||
| 43 | #pod =cut | ||
| 44 | |||
| 45 | 2 | has supported => ( | |
| 46 | is => 'ro', | ||
| 47 | isa => ArrayRef [Str], | ||
| 48 | predicate => 1, | ||
| 49 | ); | ||
| 50 | |||
| 51 | #pod =method to_string | ||
| 52 | #pod | ||
| 53 | #pod Return a string rendition of the object just as B<xrandr> would. | ||
| 54 | #pod | ||
| 55 | #pod =cut | ||
| 56 | |||
| 57 | |||
| 58 | 2 | 1; | |
| 59 | |||
| 60 | # | ||
| 61 | # This file is part of X11-XRandR | ||
| 62 | # | ||
| 63 | # This software is Copyright (c) 2018 by Diab Jerius. | ||
| 64 | # | ||
| 65 | # This is free software, licensed under: | ||
| 66 | # | ||
| 67 | # The GNU General Public License, Version 3, June 2007 | ||
| 68 | # | ||
| 69 | |||
| 70 | __END__ | ||