File indexing completed on 2024-05-12 15:49:08

0001 /*
0002     SPDX-FileCopyrightText: 2011 Geoffry Song <goffrie@gmail.com>
0003 
0004     SPDX-License-Identifier: MIT
0005 */
0006 
0007 #ifndef PRISON_CODE39BARCODE_H
0008 #define PRISON_CODE39BARCODE_H
0009 
0010 #include "abstractbarcode.h"
0011 
0012 namespace Prison
0013 {
0014 /**
0015  * Code 39 Barcode generator
0016  */
0017 class Code39Barcode : public Prison::AbstractBarcode
0018 {
0019 public:
0020     /**
0021      * creates a Code 39 generator
0022      */
0023     Code39Barcode();
0024     ~Code39Barcode() override;
0025 
0026 protected:
0027     /**
0028      * This function generates the barcode
0029      * @return QImage containing a barcode, trying to approximate the requested sizes, or a null QImage if it can't be painted within requested size
0030      * @param size
0031      */
0032     QImage paintImage(const QSizeF &size) override;
0033 };
0034 } // namespace
0035 
0036 #endif // PRISON_CODE39BARCODE_H