Linemode/Generated.pm

filter: Statementstmt 4.8% 7 / 145 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 4.1% 2 / 48 Podpod 0.0% 0 / 47 totaltotal 3.7% 9 / 240 CC 1 SCAR 6.7
CC
1
Cov
5%
command_initialization
2.0
select_code_page
2.0
set_slash_zero
2.0
CRAP 2.0
↑ Summary Linemode.pm »
1 # Generated file - do not modify
2 # Copyright (c) 2013 Peter Stuifzand
3 # Copyright (c) 2013 Other contributors as noted in the AUTHORS file
4 #
5 # Protocol::Star::Linemode::Generated is part of Protocol::Star::Linemode
6 #
7 # Protocol::Star::Linemode is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU Lesser General Public License as
9 # published by the Free Software Foundation; either version 3 of the License,
10 # or (at your option) any later version.
11 #
12 # Protocol::Star::Linemode is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
15 # General Public License for more details.
16 #
17 # You should have received a copy of the GNU Lesser General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 package Protocol::Star::Linemode::Generated;
20 1 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
21 0 ▶sub command_initialization {
Subroutine command_initialization: not called CC=1 SCAR=6.9
Pod undocumented
22 0 my ($self, ) = @_;
23 0 $self->append_pack("CC", 0x1B, 0x40, );
24 0 return;
25 }
26  
27 1 ▶sub select_font {
Subroutine select_font: called CC=1 SCAR=0.0
Pod undocumented
28 1 my ($self, $arg0) = @_;
29 1 $self->append_pack("CCCC", 0x1B, 0x1E, 0x46, $arg0);
30 1 return;
31 }
32  
33 0 ▶sub select_code_page {
Subroutine select_code_page: not called CC=1 SCAR=6.9
Pod undocumented
34 0 my ($self, $arg0) = @_;
35 0 $self->append_pack("CCCC", 0x1B, 0x1D, 0x74, $arg0);
36 0 return;
37 }
38  
39 0 ▶sub set_slash_zero {
Subroutine set_slash_zero: not called CC=1 SCAR=6.9
Pod undocumented
40 0 my ($self, $arg0) = @_;
41 0 $self->append_pack("CCC", 0x1B, 0x27, $arg0);
42 0 return;
43 }
44  
45 0 ▶sub specify_international_charset {
Subroutine specify_international_charset: not called CC=1 SCAR=6.9
Pod undocumented
46 0 my ($self, $arg0) = @_;
47 0 $self->append_pack("CCC", 0x1B, 0x52, $arg0);
48 0 return;
49 }
50  
51 0 ▶sub specify_12_dot_pitch {
Subroutine specify_12_dot_pitch: not called CC=1 SCAR=6.9
Pod undocumented
52 0 my ($self, ) = @_;
53 0 $self->append_pack("CC", 0x1B, 0x4D, );
54 0 return;
55 }
56  
57 0 ▶sub specify_15_dot_pitch {
Subroutine specify_15_dot_pitch: not called CC=1 SCAR=6.9
Pod undocumented
58 0 my ($self, ) = @_;
59 0 $self->append_pack("CC", 0x1B, 0x50, );
60 0 return;
61 }
62  
63 0 ▶sub specify_16_dot_pitch {
Subroutine specify_16_dot_pitch: not called CC=1 SCAR=6.9
Pod undocumented
64 0 my ($self, ) = @_;
65 0 $self->append_pack("CC", 0x1B, 0x3A, );
66 0 return;
67 }
68  
69 0 ▶sub specify_14_dot_pitch {
Subroutine specify_14_dot_pitch: not called CC=1 SCAR=6.9
Pod undocumented
70 0 my ($self, ) = @_;
71 0 $self->append_pack("CC", 0x1B, 0x67, );
72 0 return;
73 }
74  
75 0 ▶sub set_expanded_width_height {
Subroutine set_expanded_width_height: not called CC=1 SCAR=6.9
Pod undocumented
76 0 my ($self, $arg0, $arg1) = @_;
77 0 $self->append_pack("CCCC", 0x1B, 0x69, $arg0, $arg1);
78 0 return;
79 }
80  
81 0 ▶sub set_expanded_width {
Subroutine set_expanded_width: not called CC=1 SCAR=6.9
Pod undocumented
82 0 my ($self, $arg0) = @_;
83 0 $self->append_pack("CCC", 0x1B, 0x57, $arg0);
84 0 return;
85 }
86  
87 0 ▶sub set_expanded_height {
Subroutine set_expanded_height: not called CC=1 SCAR=6.9
Pod undocumented
88 0 my ($self, $arg0) = @_;
89 0 $self->append_pack("CCC", 0x1B, 0x68, $arg0);
90 0 return;
91 }
92  
93 0 ▶sub set_double_high {
Subroutine set_double_high: not called CC=1 SCAR=6.9
Pod undocumented
94 0 my ($self, ) = @_;
95 0 $self->append_pack("CC", 0x1B, 0x0E, );
96 0 return;
97 }
98  
99 0 ▶sub cancel_double_high {
Subroutine cancel_double_high: not called CC=1 SCAR=6.9
Pod undocumented
100 0 my ($self, ) = @_;
101 0 $self->append_pack("CC", 0x1B, 0x14, );
102 0 return;
103 }
104  
105 0 ▶sub set_emphasized_printing {
Subroutine set_emphasized_printing: not called CC=1 SCAR=6.9
Pod undocumented
106 0 my ($self, ) = @_;
107 0 $self->append_pack("CC", 0x1B, 0x45, );
108 0 return;
109 }
110  
111 0 ▶sub cancel_emphasized_printing {
Subroutine cancel_emphasized_printing: not called CC=1 SCAR=6.9
Pod undocumented
112 0 my ($self, ) = @_;
113 0 $self->append_pack("CC", 0x1B, 0x46, );
114 0 return;
115 }
116  
117 0 ▶sub select_underline_mode {
Subroutine select_underline_mode: not called CC=1 SCAR=6.9
Pod undocumented
118 0 my ($self, $arg0) = @_;
119 0 $self->append_pack("CCC", 0x1B, 0x2D, $arg0);
120 0 return;
121 }
122  
123 0 ▶sub select_upperline_mode {
Subroutine select_upperline_mode: not called CC=1 SCAR=6.9
Pod undocumented
124 0 my ($self, $arg0) = @_;
125 0 $self->append_pack("CCC", 0x1B, 0x5F, $arg0);
126 0 return;
127 }
128  
129 0 ▶sub select_inverse {
Subroutine select_inverse: not called CC=1 SCAR=6.9
Pod undocumented
130 0 my ($self, ) = @_;
131 0 $self->append_pack("CC", 0x1B, 0x34, );
132 0 return;
133 }
134  
135 0 ▶sub cancel_inverse {
Subroutine cancel_inverse: not called CC=1 SCAR=6.9
Pod undocumented
136 0 my ($self, ) = @_;
137 0 $self->append_pack("CC", 0x1B, 0x35, );
138 0 return;
139 }
140  
141 0 ▶sub feed_n_lines {
Subroutine feed_n_lines: not called CC=1 SCAR=6.9
Pod undocumented
142 0 my ($self, $arg0) = @_;
143 0 $self->append_pack("CCC", 0x1B, 0x61, $arg0);
144 0 return;
145 }
146  
147 0 ▶sub set_page_length {
Subroutine set_page_length: not called CC=1 SCAR=6.9
Pod undocumented
148 0 my ($self, $arg0) = @_;
149 0 $self->append_pack("CCC", 0x1B, 0x43, $arg0);
150 0 return;
151 }
152  
153 0 ▶sub set_page_length_in_24mm_units {
Subroutine set_page_length_in_24mm_units: not called CC=1 SCAR=6.9
Pod undocumented
154 0 my ($self, $arg0) = @_;
155 0 $self->append_pack("CCCC", 0x1B, 0x43, 0x00, $arg0);
156 0 return;
157 }
158  
159 0 ▶sub set_left_margin {
Subroutine set_left_margin: not called CC=1 SCAR=6.9
Pod undocumented
160 0 my ($self, $arg0) = @_;
161 0 $self->append_pack("CCC", 0x1B, 0x6C, $arg0);
162 0 return;
163 }
164  
165 0 ▶sub set_right_margin {
Subroutine set_right_margin: not called CC=1 SCAR=6.9
Pod undocumented
166 0 my ($self, $arg0) = @_;
167 0 $self->append_pack("CCC", 0x1B, 0x51, $arg0);
168 0 return;
169 }
170  
171 0 ▶sub skip_lines {
Subroutine skip_lines: not called CC=1 SCAR=6.9
Pod undocumented
172 0 my ($self, $arg0) = @_;
173 0 $self->append_pack("CCC", 0x1B, 0x61, $arg0);
174 0 return;
175 }
176  
177 0 ▶sub cut {
Subroutine cut: not called CC=1 SCAR=6.9
Pod undocumented
178 0 my ($self, ) = @_;
179 0 $self->append_pack("CCC", 0x1B, 0x64, 0x33, );
180 0 return;
181 }
182  
183 0 ▶sub barcode_ean13 {
Subroutine barcode_ean13: not called CC=1 SCAR=6.9
Pod undocumented
184 0 my ($self, $arg0) = @_;
185 0 $self->append_pack("CCCCCC", 0x1B, 0x62, 0x03, 0x02, 0x01, $arg0);
186 0 return;
187 }
188  
189 0 ▶sub barcode_code128 {
Subroutine barcode_code128: not called CC=1 SCAR=6.9
Pod undocumented
190 0 my ($self, $arg0) = @_;
191 0 $self->append_pack("CCCCCC", 0x1B, 0x62, 0x06, 0x02, 0x01, $arg0);
192 0 return;
193 }
194  
195 0 ▶sub move_absolute_position {
Subroutine move_absolute_position: not called CC=1 SCAR=6.9
Pod undocumented
196 0 my ($self, $arg0, $arg1) = @_;
197 0 $self->append_pack("CCCCC", 0x1B, 0x1D, 0x41, $arg0, $arg1);
198 0 return;
199 }
200  
201 0 ▶sub move_relative_position {
Subroutine move_relative_position: not called CC=1 SCAR=6.9
Pod undocumented
202 0 my ($self, $arg0, $arg1) = @_;
203 0 $self->append_pack("CCCCC", 0x1B, 0x1D, 0x52, $arg0, $arg1);
204 0 return;
205 }
206  
207 0 ▶sub specify_alignment {
Subroutine specify_alignment: not called CC=1 SCAR=6.9
Pod undocumented
208 0 my ($self, $arg0) = @_;
209 0 $self->append_pack("CCCC", 0x1B, 0x1D, 0x61, $arg0);
210 0 return;
211 }
212  
213 0 ▶sub align_left {
Subroutine align_left: not called CC=1 SCAR=6.9
Pod undocumented
214 0 my ($self, ) = @_;
215 0 $self->append_pack("CCCC", 0x1B, 0x1D, 0x61, 0x00, );
216 0 return;
217 }
218  
219 0 ▶sub align_center {
Subroutine align_center: not called CC=1 SCAR=6.9
Pod undocumented
220 0 my ($self, ) = @_;
221 0 $self->append_pack("CCCC", 0x1B, 0x1D, 0x61, 0x01, );
222 0 return;
223 }
224  
225 0 ▶sub align_right {
Subroutine align_right: not called CC=1 SCAR=6.9
Pod undocumented
226 0 my ($self, ) = @_;
227 0 $self->append_pack("CCCC", 0x1B, 0x1D, 0x61, 0x02, );
228 0 return;
229 }
230  
231 0 ▶sub set_double_wide {
Subroutine set_double_wide: not called CC=1 SCAR=6.9
Pod undocumented
232 0 my ($self, $arg0) = @_;
233 0 $self->append_pack("CC", 0x0E, $arg0);
234 0 return;
235 }
236  
237 0 ▶sub cancel_double_wide {
Subroutine cancel_double_wide: not called CC=1 SCAR=6.9
Pod undocumented
238 0 my ($self, $arg0) = @_;
239 0 $self->append_pack("CC", 0x14, $arg0);
240 0 return;
241 }
242  
243 0 ▶sub select_upside_down {
Subroutine select_upside_down: not called CC=1 SCAR=6.9
Pod undocumented
244 0 my ($self, ) = @_;
245 0 $self->append_pack("C", 0x0F, );
246 0 return;
247 }
248  
249 0 ▶sub cancel_upside_down {
Subroutine cancel_upside_down: not called CC=1 SCAR=6.9
Pod undocumented
250 0 my ($self, ) = @_;
251 0 $self->append_pack("C", 0x12, );
252 0 return;
253 }
254  
255 0 ▶sub lf {
Subroutine lf: not called CC=1 SCAR=6.9
Pod undocumented
256 0 my ($self, ) = @_;
257 0 $self->append_pack("C", 0x0A, );
258 0 return;
259 }
260  
261 0 ▶sub cr {
Subroutine cr: not called CC=1 SCAR=6.9
Pod undocumented
262 0 my ($self, ) = @_;
263 0 $self->append_pack("C", 0x13, );
264 0 return;
265 }
266  
267 0 ▶sub crlf {
Subroutine crlf: not called CC=1 SCAR=6.9
Pod undocumented
268 0 my ($self, ) = @_;
269 0 $self->append_pack("CC", 0x13, 0x0A, );
270 0 return;
271 }
272  
273 0 ▶sub form_feed {
Subroutine form_feed: not called CC=1 SCAR=6.9
Pod undocumented
274 0 my ($self, ) = @_;
275 0 $self->append_pack("C", 0x0C, );
276 0 return;
277 }
278  
279 0 ▶sub vertical_tab {
Subroutine vertical_tab: not called CC=1 SCAR=6.9
Pod undocumented
280 0 my ($self, ) = @_;
281 0 $self->append_pack("C", 0x0B, );
282 0 return;
283 }
284  
285 0 ▶sub horizontal_tab {
Subroutine horizontal_tab: not called CC=1 SCAR=6.9
Pod undocumented
286 0 my ($self, ) = @_;
287 0 $self->append_pack("C", 0x09, );
288 0 return;
289 }
290  
291 0 ▶sub data_end {
Subroutine data_end: not called CC=1 SCAR=6.9
Pod undocumented
292 0 my ($self, ) = @_;
293 0 $self->append_pack("C", 0x1E, );
294 0 return;
295 }
296  
297 0 ▶sub bell {
Subroutine bell: not called CC=1 SCAR=6.9
Pod undocumented
298 0 my ($self, ) = @_;
299 0 $self->append_pack("C", 0x07, );
300 0 return;
301 }
302  
303 1 1;
304  
↑ Summary Linemode.pm »