| 1 | package HTML::Barcode::1D; | ||
| 2 | use Any::Moose; | ||
| 3 | extends 'HTML::Barcode'; | ||
| 4 | |||
| 5 | =head1 NAME | ||
| 6 | |||
| 7 | HTML::Barcode::1D - A base class for HTML representations of 1D barcodes | ||
| 8 | |||
| 9 | =head1 DESCRIPTION | ||
| 10 | |||
| 11 | This is a base class for creating HTML representations of one-dimensional barcodes. Do not use it directly. | ||
| 12 | |||
| 13 | If you are looking to generate a barcode, please see one of the following | ||
| 14 | modules instead: | ||
| 15 | |||
| 16 | =head2 Known Types | ||
| 17 | |||
| 18 | Here are some of the types of barcodes you can scan with the modules in | ||
| 19 | this distribution. Others may exist, so try searching CPAN. | ||
| 20 | |||
| 21 | =over 4 | ||
| 22 | |||
| 23 | =item L<HTML::Barcode::QRCode> - Two dimensional QR codes. | ||
| 24 | |||
| 25 | =item L<HTML::Barcode::Code93> - Code 93 barcodes. | ||
| 26 | |||
| 27 | =item L<HTML::Barcode::Code128> - Code 128 barcodes. | ||
| 28 | |||
| 29 | =back | ||
| 30 | |||
| 31 | =head2 Subclassing | ||
| 32 | |||
| 33 | =head3 barcode_data | ||
| 34 | |||
| 35 | You need to either override this, or override the C<render_barcode> method | ||
| 36 | so it does not use this. | ||
| 37 | |||
| 38 | This return an arrayref of true and false values (for "on" and "off"). | ||
| 39 | |||
| 40 | It is not recommended to publish this method in your API. | ||
| 41 | |||
| 42 | =head1 AUTHOR | ||
| 43 | |||
| 44 | Mark A. Stratman, C<< <stratman@gmail.com> >> | ||
| 45 | |||
| 46 | =head1 SOURCE REPOSITORY | ||
| 47 | |||
| 48 | L<http://github.com/mstratman/HTML-Barcode> | ||
| 49 | |||
| 50 | =head1 SEE ALSO | ||
| 51 | |||
| 52 | L<HTML::Barcode> | ||
| 53 | |||
| 54 | =head1 LICENSE AND COPYRIGHT | ||
| 55 | |||
| 56 | Copyright 2011 Mark A. Stratman. | ||
| 57 | |||
| 58 | This program is free software; you can redistribute it and/or modify it | ||
| 59 | under the terms of either: the GNU General Public License as published | ||
| 60 | by the Free Software Foundation; or the Artistic License. | ||
| 61 | |||
| 62 | See http://dev.perl.org/licenses/ for more information. | ||
| 63 | |||
| 64 | |||
| 65 | =cut | ||
| 66 | |||
| 67 | no Any::Moose; | ||
| 68 | 1; # End of HTML::Barcode |