KReport

ext3of9paint.cpp
1/* This file is part of the KDE project
2 * Copyright (C) 2001-2007 by OpenMFG, LLC (info@openmfg.com)
3 * Copyright (C) 2007-2008 by Adam Pigg (adam@piggz.co.uk)
4 * Copyright (C) 2015 Jarosław Staniek <staniek@kde.org>
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20/*
21 * This file contains the code that will render the extended 3of9 barcode.
22 * This code will parse a string and build a compliant 3of9 string and then
23 * call the 3of9 renderer to do the actual drawing.
24 */
25
26#include <QString>
27#include <QRect>
28#include <QPainter>
29
30#include "barcodepaint.h"
31
32QString convertTo3of9(const QString &str);
33
34void renderExtended3of9(const QRect & r, const QString & str, Qt::Alignment align, QPainter * pPainter)
35{
36 render3of9(r, convertTo3of9(str), align, pPainter);
37}
typedef Alignment
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 13 2024 11:50:02 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.