File Coverage

blib/lib/Protocol/Star/Linemode/Generated.pm
Criterion Covered Total %
statement 6 144 4.1
branch n/a
condition n/a
subroutine 2 48 4.1
pod 0 47 0.0
total 8 239 3.3


line stmt bran cond sub pod time code
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 .
19             package Protocol::Star::Linemode::Generated;
20 1     1   19442 use Moo::Role;
  1         2  
  1         8  
21             sub command_initialization {
22 0     0 0 0 my ($self, ) = @_;
23 0         0 $self->append_pack("CC", 0x1B, 0x40, );
24 0         0 return;
25             }
26              
27             sub select_font {
28 1     1 0 13 my ($self, $arg0) = @_;
29 1         7 $self->append_pack("CCCC", 0x1B, 0x1E, 0x46, $arg0);
30 1         3 return;
31             }
32              
33             sub select_code_page {
34 0     0 0   my ($self, $arg0) = @_;
35 0           $self->append_pack("CCCC", 0x1B, 0x1D, 0x74, $arg0);
36 0           return;
37             }
38              
39             sub set_slash_zero {
40 0     0 0   my ($self, $arg0) = @_;
41 0           $self->append_pack("CCC", 0x1B, 0x27, $arg0);
42 0           return;
43             }
44              
45             sub specify_international_charset {
46 0     0 0   my ($self, $arg0) = @_;
47 0           $self->append_pack("CCC", 0x1B, 0x52, $arg0);
48 0           return;
49             }
50              
51             sub specify_12_dot_pitch {
52 0     0 0   my ($self, ) = @_;
53 0           $self->append_pack("CC", 0x1B, 0x4D, );
54 0           return;
55             }
56              
57             sub specify_15_dot_pitch {
58 0     0 0   my ($self, ) = @_;
59 0           $self->append_pack("CC", 0x1B, 0x50, );
60 0           return;
61             }
62              
63             sub specify_16_dot_pitch {
64 0     0 0   my ($self, ) = @_;
65 0           $self->append_pack("CC", 0x1B, 0x3A, );
66 0           return;
67             }
68              
69             sub specify_14_dot_pitch {
70 0     0 0   my ($self, ) = @_;
71 0           $self->append_pack("CC", 0x1B, 0x67, );
72 0           return;
73             }
74              
75             sub set_expanded_width_height {
76 0     0 0   my ($self, $arg0, $arg1) = @_;
77 0           $self->append_pack("CCCC", 0x1B, 0x69, $arg0, $arg1);
78 0           return;
79             }
80              
81             sub set_expanded_width {
82 0     0 0   my ($self, $arg0) = @_;
83 0           $self->append_pack("CCC", 0x1B, 0x57, $arg0);
84 0           return;
85             }
86              
87             sub set_expanded_height {
88 0     0 0   my ($self, $arg0) = @_;
89 0           $self->append_pack("CCC", 0x1B, 0x68, $arg0);
90 0           return;
91             }
92              
93             sub set_double_high {
94 0     0 0   my ($self, ) = @_;
95 0           $self->append_pack("CC", 0x1B, 0x0E, );
96 0           return;
97             }
98              
99             sub cancel_double_high {
100 0     0 0   my ($self, ) = @_;
101 0           $self->append_pack("CC", 0x1B, 0x14, );
102 0           return;
103             }
104              
105             sub set_emphasized_printing {
106 0     0 0   my ($self, ) = @_;
107 0           $self->append_pack("CC", 0x1B, 0x45, );
108 0           return;
109             }
110              
111             sub cancel_emphasized_printing {
112 0     0 0   my ($self, ) = @_;
113 0           $self->append_pack("CC", 0x1B, 0x46, );
114 0           return;
115             }
116              
117             sub select_underline_mode {
118 0     0 0   my ($self, $arg0) = @_;
119 0           $self->append_pack("CCC", 0x1B, 0x2D, $arg0);
120 0           return;
121             }
122              
123             sub select_upperline_mode {
124 0     0 0   my ($self, $arg0) = @_;
125 0           $self->append_pack("CCC", 0x1B, 0x5F, $arg0);
126 0           return;
127             }
128              
129             sub select_inverse {
130 0     0 0   my ($self, ) = @_;
131 0           $self->append_pack("CC", 0x1B, 0x34, );
132 0           return;
133             }
134              
135             sub cancel_inverse {
136 0     0 0   my ($self, ) = @_;
137 0           $self->append_pack("CC", 0x1B, 0x35, );
138 0           return;
139             }
140              
141             sub feed_n_lines {
142 0     0 0   my ($self, $arg0) = @_;
143 0           $self->append_pack("CCC", 0x1B, 0x61, $arg0);
144 0           return;
145             }
146              
147             sub set_page_length {
148 0     0 0   my ($self, $arg0) = @_;
149 0           $self->append_pack("CCC", 0x1B, 0x43, $arg0);
150 0           return;
151             }
152              
153             sub set_page_length_in_24mm_units {
154 0     0 0   my ($self, $arg0) = @_;
155 0           $self->append_pack("CCCC", 0x1B, 0x43, 0x00, $arg0);
156 0           return;
157             }
158              
159             sub set_left_margin {
160 0     0 0   my ($self, $arg0) = @_;
161 0           $self->append_pack("CCC", 0x1B, 0x6C, $arg0);
162 0           return;
163             }
164              
165             sub set_right_margin {
166 0     0 0   my ($self, $arg0) = @_;
167 0           $self->append_pack("CCC", 0x1B, 0x51, $arg0);
168 0           return;
169             }
170              
171             sub skip_lines {
172 0     0 0   my ($self, $arg0) = @_;
173 0           $self->append_pack("CCC", 0x1B, 0x61, $arg0);
174 0           return;
175             }
176              
177             sub cut {
178 0     0 0   my ($self, ) = @_;
179 0           $self->append_pack("CCC", 0x1B, 0x64, 0x33, );
180 0           return;
181             }
182              
183             sub barcode_ean13 {
184 0     0 0   my ($self, $arg0) = @_;
185 0           $self->append_pack("CCCCCC", 0x1B, 0x62, 0x03, 0x02, 0x01, $arg0);
186 0           return;
187             }
188              
189             sub barcode_code128 {
190 0     0 0   my ($self, $arg0) = @_;
191 0           $self->append_pack("CCCCCC", 0x1B, 0x62, 0x06, 0x02, 0x01, $arg0);
192 0           return;
193             }
194              
195             sub move_absolute_position {
196 0     0 0   my ($self, $arg0, $arg1) = @_;
197 0           $self->append_pack("CCCCC", 0x1B, 0x1D, 0x41, $arg0, $arg1);
198 0           return;
199             }
200              
201             sub move_relative_position {
202 0     0 0   my ($self, $arg0, $arg1) = @_;
203 0           $self->append_pack("CCCCC", 0x1B, 0x1D, 0x52, $arg0, $arg1);
204 0           return;
205             }
206              
207             sub specify_alignment {
208 0     0 0   my ($self, $arg0) = @_;
209 0           $self->append_pack("CCCC", 0x1B, 0x1D, 0x61, $arg0);
210 0           return;
211             }
212              
213             sub align_left {
214 0     0 0   my ($self, ) = @_;
215 0           $self->append_pack("CCCC", 0x1B, 0x1D, 0x61, 0x00, );
216 0           return;
217             }
218              
219             sub align_center {
220 0     0 0   my ($self, ) = @_;
221 0           $self->append_pack("CCCC", 0x1B, 0x1D, 0x61, 0x01, );
222 0           return;
223             }
224              
225             sub align_right {
226 0     0 0   my ($self, ) = @_;
227 0           $self->append_pack("CCCC", 0x1B, 0x1D, 0x61, 0x02, );
228 0           return;
229             }
230              
231             sub set_double_wide {
232 0     0 0   my ($self, $arg0) = @_;
233 0           $self->append_pack("CC", 0x0E, $arg0);
234 0           return;
235             }
236              
237             sub cancel_double_wide {
238 0     0 0   my ($self, $arg0) = @_;
239 0           $self->append_pack("CC", 0x14, $arg0);
240 0           return;
241             }
242              
243             sub select_upside_down {
244 0     0 0   my ($self, ) = @_;
245 0           $self->append_pack("C", 0x0F, );
246 0           return;
247             }
248              
249             sub cancel_upside_down {
250 0     0 0   my ($self, ) = @_;
251 0           $self->append_pack("C", 0x12, );
252 0           return;
253             }
254              
255             sub lf {
256 0     0 0   my ($self, ) = @_;
257 0           $self->append_pack("C", 0x0A, );
258 0           return;
259             }
260              
261             sub cr {
262 0     0 0   my ($self, ) = @_;
263 0           $self->append_pack("C", 0x13, );
264 0           return;
265             }
266              
267             sub crlf {
268 0     0 0   my ($self, ) = @_;
269 0           $self->append_pack("CC", 0x13, 0x0A, );
270 0           return;
271             }
272              
273             sub form_feed {
274 0     0 0   my ($self, ) = @_;
275 0           $self->append_pack("C", 0x0C, );
276 0           return;
277             }
278              
279             sub vertical_tab {
280 0     0 0   my ($self, ) = @_;
281 0           $self->append_pack("C", 0x0B, );
282 0           return;
283             }
284              
285             sub horizontal_tab {
286 0     0 0   my ($self, ) = @_;
287 0           $self->append_pack("C", 0x09, );
288 0           return;
289             }
290              
291             sub data_end {
292 0     0 0   my ($self, ) = @_;
293 0           $self->append_pack("C", 0x1E, );
294 0           return;
295             }
296              
297             sub bell {
298 0     0 0   my ($self, ) = @_;
299 0           $self->append_pack("C", 0x07, );
300 0           return;
301             }
302              
303             1;
304