XRandR/Types.pm

filter: Statementstmt 100% 30 / 30 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 36 / 36 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« XRandR/Screen.pm ↑ Summary XRandR/XRRModeInfo.pm »
1 package X11::XRandR::Types;
2  
3 # ABSTRACT: Types
4  
5 10 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 10 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 10 ▶use Type::Utils -all;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 10 ▶use Types::Standard -types;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 10 ▶use Types::Common::Numeric qw[ PositiveOrZeroInt ];
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 10 our $VERSION = '0.01';
13  
14 use Type::Library
15 10 ▶ -base,
Subroutine BEGIN: called CC=1 SCAR=0.0
16 -declare => qw(
17 Filter
18 Capability
19 Connection
20 Direction
21 Reflection
22 Relation
23 SubPixelOrder
24 ModeFlag
25 XFixed
26 XTransform
27 XID
28 10 );
29  
30 #pod =type Filter
31 #pod
32 #pod C<bilinear>, C<nearest>.
33 #pod
34 #pod =cut
35  
36 10 declare Filter,
37 as Enum [qw( bilinear nearest )];
38  
39 #pod =type Direction
40 #pod
41 #pod C<normal>, C<left>, C<inverted>, C<right>.
42 #pod
43 #pod =cut
44  
45 10 declare Direction, as Enum [qw( normal left inverted right )];
46  
47 #pod =type Reflection
48 #pod
49 #pod C<normal>, C<x>, C<y>, C<xy>.
50 #pod
51 #pod =cut
52  
53 10 declare Reflection, as Enum [qw( normal x y xy )];
54  
55 #pod =type SubPixelOrder
56 #pod
57 #pod One of C<unknown>, C<horizontal rgb>, C<horizontal bgr>, C<vertical rgb>, C<vertical bgr>, C<no subpixels>.
58 #pod
59 #pod =cut
60  
61 10 declare SubPixelOrder,
62 as Enum [
63 "unknown",
64 "horizontal rgb",
65 "horizontal bgr",
66 "vertical rgb",
67 "vertical bgr",
68 "no subpixels",
69 ];
70  
71 #pod =type ModeFlag
72 #pod
73 #pod Video Mode Flags:
74 #pod
75 #pod C<+HSync>, C<-HSync>, C<+VSync>, C<-VSync>, C<Interlace>, C<DoubleScan>, C<CSync>, C<+CSync>, C<-CSync>,
76 #pod
77 #pod =cut
78  
79 10 declare ModeFlag,
80 as Enum [
81 "+HSync", "-HSync", "+VSync", "-VSync",
82 "Interlace", "DoubleScan", "CSync", "+CSync",
83 "-CSync",
84 ];
85  
86 #pod =attr Capability
87 #pod
88 #pod C<Source Output>, C<Sink Output>, C<Source Offload>, C<Sink Offload>
89 #pod
90 #pod =cut
91  
92 10 declare Capability,
93 as Enum [ "Source Output", "Sink Output", "Source Offload", "Sink Offload", ];
94  
95 #pod =type Connection
96 #pod
97 #pod One of C<connected>, C<disconnected>, C<unknown connection>.
98 #pod
99 #pod =cut
100  
101 10 declare Connection,
102 as Enum [ "connected", "disconnected", "unknown connection" ];
103  
104 10 declare Relation, as Enum [qw( left_of right_of above below same_as )];
105  
106 #pod =type XTransform
107 #pod
108 #pod A transformation matrix. Nested arrays:
109 #pod
110 #pod [
111 #pod [ Num, Num, Num ],
112 #pod [ Num, Num, Num ],
113 #pod [ Num, Num, Num ],
114 #pod ];
115 #pod
116 #pod =cut
117  
118 10 declare XTransform,
119 as Tuple[
120 Tuple[ Num, Num, Num ],
121 Tuple[ Num, Num, Num ],
122 Tuple[ Num, Num, Num ],
123 ];
124  
125 10 1;
126  
127 #pod =type XID
128 #pod
129 #pod =cut
130  
131 10 declare XID, as PositiveOrZeroInt;
132  
133  
134 #
135 # This file is part of X11-XRandR
136 #
137 # This software is Copyright (c) 2018 by Diab Jerius.
138 #
139 # This is free software, licensed under:
140 #
141 # The GNU General Public License, Version 3, June 2007
142 #
143  
144 __END__
« XRandR/Screen.pm ↑ Summary XRandR/XRRModeInfo.pm »