Prison

code39barcode.h
1 /*
2  SPDX-FileCopyrightText: 2011 Geoffry Song <[email protected]>
3 
4  SPDX-License-Identifier: MIT
5 */
6 
7 #ifndef PRISON_CODE39BARCODE_H
8 #define PRISON_CODE39BARCODE_H
9 
10 #include "abstractbarcode.h"
11 
12 namespace Prison
13 {
14 /**
15  * Code 39 Barcode generator
16  */
18 {
19 public:
20  /**
21  * creates a Code 39 generator
22  */
23  Code39Barcode();
24  ~Code39Barcode() override;
25 
26 protected:
27  /**
28  * This function generates the barcode
29  * @return QImage containing a barcode, trying to approximate the requested sizes, or a null QImage if it can't be painted within requested size
30  * @param size
31  */
32  QImage paintImage(const QSizeF &size) override;
33 };
34 } // namespace
35 
36 #endif // PRISON_CODE39BARCODE_H
Code 39 Barcode generator.
Definition: code39barcode.h:17
Code39Barcode()
creates a Code 39 generator
QImage paintImage(const QSizeF &size) override
This function generates the barcode.
base class for barcode generators To add your own barcode generator, subclass this class and reimplem...
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Dec 1 2023 04:09:13 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.