6 has
'font' => ( is
=> 'rw',
11 has
'print_width' => ( is
=> 'rw',
15 has
'label_length' => ( is
=> 'rw',
19 has
'command_list' => ( is
=> 'rw',
30 my $label_length = $self->label_length();
31 my $print_width = $self->print_width();
32 $self->add("^LL$label_length^PW$print_width");
37 my ($type, $x, $y, $size, $value) = @_;
45 if (exists $dispatcher{$type}) {
46 $dispatcher{$type}( $self, $x, $y, $size, $value);
52 my ($x, $y, $size, $value) = @_;
53 my $height = $size * 25;
54 $self->add("^FO$x,$y^BCN,$height,N,N,N^FD $value^FS");
59 my ($x, $y, $size, $value) = @_;
60 $y = $y - 10; #adjust for 10 dot offset
61 $self->add("^FO$x,$y^BQ,,$size^FDMA,$value^FS");
66 my ($x, $y, $size, $value) = @_;
67 my $font = $self->font();
68 $self->add("^FO$x,$y^$font,$size^FD$value^FS");
79 my $command_list = $self->command_list();
80 push @
$command_list, $command;
81 $self->command_list($command_list);
87 foreach my $c (@
{$self->command_list()}) {