1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220
|
// qpagesize.sip generated by MetaSIP
//
// This file is part of the QtGui Python extension module.
//
// Copyright (c) 2018 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of PyQt5.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%If (Qt_5_3_0 -)
class QPageSize
{
%TypeHeaderCode
#include <qpagesize.h>
%End
public:
enum PageSizeId
{
A4,
B5,
Letter,
Legal,
Executive,
A0,
A1,
A2,
A3,
A5,
A6,
A7,
A8,
A9,
B0,
B1,
B10,
B2,
B3,
B4,
B6,
B7,
B8,
B9,
C5E,
Comm10E,
DLE,
Folio,
Ledger,
Tabloid,
Custom,
A10,
A3Extra,
A4Extra,
A4Plus,
A4Small,
A5Extra,
B5Extra,
JisB0,
JisB1,
JisB2,
JisB3,
JisB4,
JisB5,
JisB6,
JisB7,
JisB8,
JisB9,
JisB10,
AnsiC,
AnsiD,
AnsiE,
LegalExtra,
LetterExtra,
LetterPlus,
LetterSmall,
TabloidExtra,
ArchA,
ArchB,
ArchC,
ArchD,
ArchE,
Imperial7x9,
Imperial8x10,
Imperial9x11,
Imperial9x12,
Imperial10x11,
Imperial10x13,
Imperial10x14,
Imperial12x11,
Imperial15x11,
ExecutiveStandard,
Note,
Quarto,
Statement,
SuperA,
SuperB,
Postcard,
DoublePostcard,
Prc16K,
Prc32K,
Prc32KBig,
FanFoldUS,
FanFoldGerman,
FanFoldGermanLegal,
EnvelopeB4,
EnvelopeB5,
EnvelopeB6,
EnvelopeC0,
EnvelopeC1,
EnvelopeC2,
EnvelopeC3,
EnvelopeC4,
EnvelopeC6,
EnvelopeC65,
EnvelopeC7,
Envelope9,
Envelope11,
Envelope12,
Envelope14,
EnvelopeMonarch,
EnvelopePersonal,
EnvelopeChou3,
EnvelopeChou4,
EnvelopeInvite,
EnvelopeItalian,
EnvelopeKaku2,
EnvelopeKaku3,
EnvelopePrc1,
EnvelopePrc2,
EnvelopePrc3,
EnvelopePrc4,
EnvelopePrc5,
EnvelopePrc6,
EnvelopePrc7,
EnvelopePrc8,
EnvelopePrc9,
EnvelopePrc10,
EnvelopeYou4,
NPageSize,
NPaperSize,
AnsiA,
AnsiB,
EnvelopeC5,
EnvelopeDL,
Envelope10,
LastPageSize,
};
enum Unit
{
Millimeter,
Point,
Inch,
Pica,
Didot,
Cicero,
};
enum SizeMatchPolicy
{
FuzzyMatch,
FuzzyOrientationMatch,
ExactMatch,
};
QPageSize();
explicit QPageSize(QPageSize::PageSizeId pageSizeId);
QPageSize(const QSize &pointSize, const QString &name = QString(), QPageSize::SizeMatchPolicy matchPolicy = QPageSize::FuzzyMatch);
QPageSize(const QSizeF &size, QPageSize::Unit units, const QString &name = QString(), QPageSize::SizeMatchPolicy matchPolicy = QPageSize::FuzzyMatch);
QPageSize(const QPageSize &other);
~QPageSize();
void swap(QPageSize &other /Constrained/);
bool isEquivalentTo(const QPageSize &other) const;
bool isValid() const;
QString key() const;
QString name() const;
QPageSize::PageSizeId id() const;
int windowsId() const;
QSizeF definitionSize() const;
QPageSize::Unit definitionUnits() const;
QSizeF size(QPageSize::Unit units) const;
QSize sizePoints() const;
QSize sizePixels(int resolution) const;
QRectF rect(QPageSize::Unit units) const;
QRect rectPoints() const;
QRect rectPixels(int resolution) const;
static QString key(QPageSize::PageSizeId pageSizeId);
static QString name(QPageSize::PageSizeId pageSizeId);
static QPageSize::PageSizeId id(const QSize &pointSize, QPageSize::SizeMatchPolicy matchPolicy = QPageSize::FuzzyMatch);
static QPageSize::PageSizeId id(const QSizeF &size, QPageSize::Unit units, QPageSize::SizeMatchPolicy matchPolicy = QPageSize::FuzzyMatch);
static QPageSize::PageSizeId id(int windowsId);
static int windowsId(QPageSize::PageSizeId pageSizeId);
static QSizeF definitionSize(QPageSize::PageSizeId pageSizeId);
static QPageSize::Unit definitionUnits(QPageSize::PageSizeId pageSizeId);
static QSizeF size(QPageSize::PageSizeId pageSizeId, QPageSize::Unit units);
static QSize sizePoints(QPageSize::PageSizeId pageSizeId);
static QSize sizePixels(QPageSize::PageSizeId pageSizeId, int resolution);
};
%End
%If (Qt_5_3_0 -)
bool operator==(const QPageSize &lhs, const QPageSize &rhs);
%End
%If (Qt_5_3_0 -)
bool operator!=(const QPageSize &lhs, const QPageSize &rhs);
%End
|