java.lang.Object
io.qt.QtObject
io.qt.printsupport.QPrinter
- All Implemented Interfaces:
QPagedPaintDevice
,QPaintDevice
,QtObjectInterface
Paint device that paints on a printer
Java wrapper for Qt class QPrinter
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQPrinter::ColorMode
static enum
Java wrapper for Qt enumQPrinter::DuplexMode
static enum
Java wrapper for Qt enumQPrinter::Orientation
static enum
Java wrapper for Qt enumQPrinter::OutputFormat
static enum
Java wrapper for Qt enumQPrinter::PageOrder
static enum
Java wrapper for Qt enumQPrinter::PaperSource
static enum
Java wrapper for Qt enumQPrinter::PrinterMode
static enum
Java wrapper for Qt enumQPrinter::PrinterState
static enum
Java wrapper for Qt enumQPrinter::PrintRange
static enum
Java wrapper for Qt enumQPrinter::Unit
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
Nested classes/interfaces inherited from interface io.qt.gui.QPagedPaintDevice
QPagedPaintDevice.Margins, QPagedPaintDevice.PageSize, QPagedPaintDevice.PdfVersion
Nested classes/interfaces inherited from interface io.qt.gui.QPaintDevice
QPaintDevice.PaintDeviceMetric
-
Constructor Summary
ConstructorDescriptionQPrinter()
Overloaded constructor forQPrinter(io.qt.printsupport.QPrinter.PrinterMode)
withmode = io.qt.printsupport.QPrinter.PrinterMode.ScreenResolution
.QPrinter
(QPrinter.PrinterMode mode) QPrinter
(QPrinterInfo printer) Overloaded constructor forQPrinter(io.qt.printsupport.QPrinterInfo, io.qt.printsupport.QPrinter.PrinterMode)
withmode = io.qt.printsupport.QPrinter.PrinterMode.ScreenResolution
.QPrinter
(QPrinterInfo printer, QPrinter.PrinterMode mode) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
abort()
final int
final boolean
final int
final QPrinter.ColorMode
final int
final String
creator()
final int
depth()
protected final QPageLayout
SeeQPagedPaintDevice::
devicePageLayout()const final double
final double
static double
SeeQPaintDevice::
devicePixelRatioFScale() final String
docName()
final boolean
final QPrinter.DuplexMode
duplex()
final boolean
final int
fromPage()
final boolean
fullPage()
final QMarginsF
getPageMargins
(QPrinter.Unit unit) final int
height()
final int
heightMM()
protected void
initPainter
(QPainter painter) SeeQPaintDevice::
initPainter(QPainter*)const final boolean
isValid()
final int
final int
margins()
protected int
metric
(QPaintDevice.PaintDeviceMetric arg__1) boolean
newPage()
final int
final QPrinter.Orientation
final String
final QPrinter.OutputFormat
final QPageLayout
final QPrinter.PageOrder
final QRect
pageRect()
final QRectF
pageRect
(QPrinter.Unit arg__1) pageSize()
final QSizeF
final boolean
final String
final QRect
final QRectF
paperRect
(QPrinter.Unit arg__1) final QSizeF
paperSize
(QPrinter.Unit unit) final QPrinter.PaperSource
final int
final int
final QPrintEngine
final String
final String
final QPrinter.PrinterState
final String
final QPrinter.PrintRange
protected QPaintDevice
redirected
(QPoint offset) SeeQPaintDevice::
redirected(QPoint*)const final int
final void
setCollateCopies
(boolean collate) final void
setColorMode
(QPrinter.ColorMode arg__1) final void
setCopyCount
(int arg__1) final void
setCreator
(String arg__1) final void
setDocName
(String arg__1) final void
setDoubleSidedPrinting
(boolean enable) final void
setDuplex
(QPrinter.DuplexMode duplex) protected final void
setEngines
(QPrintEngine printEngine, QPaintEngine paintEngine) final void
setFontEmbeddingEnabled
(boolean enable) final void
setFromTo
(int fromPage, int toPage) final void
setFullPage
(boolean arg__1) void
final void
setNumCopies
(int arg__1) final void
setOrientation
(QPrinter.Orientation arg__1) final void
setOutputFileName
(String arg__1) final void
setOutputFormat
(QPrinter.OutputFormat format) final boolean
setPageLayout
(QPageLayout pageLayout) final void
setPageMargins
(double left, double top, double right, double bottom, QPrinter.Unit unit) final boolean
setPageMargins
(QMarginsF margins) final boolean
setPageMargins
(QMarginsF margins, QPageLayout.Unit units) final void
setPageOrder
(QPrinter.PageOrder arg__1) final boolean
setPageOrientation
(QPageLayout.Orientation orientation) void
final boolean
setPageSize
(QPageSize pageSize) void
setPageSizeMM
(QSizeF size) final void
setPaperName
(String paperName) final void
setPaperSize
(QSizeF paperSize, QPrinter.Unit unit) final void
final void
setPaperSource
(QPrinter.PaperSource arg__1) final void
final void
setPrinterName
(String arg__1) final void
setPrinterSelectionOption
(String arg__1) final void
setPrintProgram
(String arg__1) final void
setPrintRange
(QPrinter.PrintRange range) final void
setResolution
(int arg__1) final void
setWinPageSize
(int winPageSize) protected QPainter
SeeQPaintDevice::
sharedPainter()const final QList<@QtPrimitiveType Integer>
final boolean
final int
toPage()
final int
width()
final int
widthMM()
final int
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.qt.QtObjectInterface
dispose, isDisposed
-
Constructor Details
-
QPrinter
public QPrinter()Overloaded constructor for
QPrinter(io.qt.printsupport.QPrinter.PrinterMode)
withmode = io.qt.printsupport.QPrinter.PrinterMode.ScreenResolution
. -
QPrinter
-
QPrinter
Overloaded constructor for
QPrinter(io.qt.printsupport.QPrinterInfo, io.qt.printsupport.QPrinter.PrinterMode)
withmode = io.qt.printsupport.QPrinter.PrinterMode.ScreenResolution
. -
QPrinter
-
-
Method Details
-
abort
-
actualNumCopies
-
collateCopies
-
colorCount
- Specified by:
colorCount
in interfaceQPaintDevice
-
colorMode
-
copyCount
-
creator
-
depth
- Specified by:
depth
in interfaceQPaintDevice
-
devicePageLayout
See
QPagedPaintDevice::
devicePageLayout()const -
devicePixelRatio
- Specified by:
devicePixelRatio
in interfaceQPaintDevice
-
devicePixelRatioF
- Specified by:
devicePixelRatioF
in interfaceQPaintDevice
-
docName
-
doubleSidedPrinting
-
duplex
-
fontEmbeddingEnabled
-
fromPage
-
fullPage
-
getPageMargins
-
height
- Specified by:
height
in interfaceQPaintDevice
-
heightMM
- Specified by:
heightMM
in interfaceQPaintDevice
-
isValid
-
logicalDpiX
- Specified by:
logicalDpiX
in interfaceQPaintDevice
-
logicalDpiY
- Specified by:
logicalDpiY
in interfaceQPaintDevice
-
margins
- Specified by:
margins
in interfaceQPagedPaintDevice
-
numCopies
-
orientation
-
outputFileName
-
outputFormat
-
pageLayout
- Specified by:
pageLayout
in interfaceQPagedPaintDevice
-
pageOrder
-
pageRect
-
pageRect
-
pageSize
- Specified by:
pageSize
in interfaceQPagedPaintDevice
-
pageSizeMM
- Specified by:
pageSizeMM
in interfaceQPagedPaintDevice
-
paintingActive
- Specified by:
paintingActive
in interfaceQPaintDevice
-
paperName
-
paperRect
-
paperRect
-
paperSize
-
paperSize
-
paperSource
-
pdfVersion
-
physicalDpiX
- Specified by:
physicalDpiX
in interfaceQPaintDevice
-
physicalDpiY
- Specified by:
physicalDpiY
in interfaceQPaintDevice
-
printEngine
-
printProgram
-
printRange
-
printerName
-
printerSelectionOption
-
printerState
-
resolution
-
setCollateCopies
-
setColorMode
-
setCopyCount
-
setCreator
-
setDocName
-
setDoubleSidedPrinting
-
setDuplex
-
setEngines
-
setFontEmbeddingEnabled
-
setFromTo
-
setFullPage
-
setNumCopies
-
setOrientation
-
setOutputFileName
-
setOutputFormat
-
setPageLayout
- Specified by:
setPageLayout
in interfaceQPagedPaintDevice
-
setPageMargins
- Specified by:
setPageMargins
in interfaceQPagedPaintDevice
-
setPageMargins
- Specified by:
setPageMargins
in interfaceQPagedPaintDevice
-
setPageMargins
@QtUninvokable public final void setPageMargins(double left, double top, double right, double bottom, QPrinter.Unit unit) -
setPageOrder
-
setPageOrientation
- Specified by:
setPageOrientation
in interfaceQPagedPaintDevice
-
setPageSize
- Specified by:
setPageSize
in interfaceQPagedPaintDevice
-
setPaperName
-
setPaperSize
-
setPaperSize
-
setPaperSource
-
setPdfVersion
-
setPrintProgram
-
setPrintRange
-
setPrinterName
-
setPrinterSelectionOption
-
setResolution
-
setWinPageSize
-
supportedResolutions
-
supportsMultipleCopies
-
toPage
-
width
- Specified by:
width
in interfaceQPaintDevice
-
widthMM
- Specified by:
widthMM
in interfaceQPaintDevice
-
winPageSize
-
initPainter
See
QPaintDevice::
initPainter(QPainter*)const -
metric
-
newPage
- Specified by:
newPage
in interfaceQPagedPaintDevice
-
paintEngine
- Specified by:
paintEngine
in interfaceQPagedPaintDevice
- Specified by:
paintEngine
in interfaceQPaintDevice
-
redirected
See
QPaintDevice::
redirected(QPoint*)const -
setMargins
- Specified by:
setMargins
in interfaceQPagedPaintDevice
-
setPageSize
- Specified by:
setPageSize
in interfaceQPagedPaintDevice
-
setPageSizeMM
- Specified by:
setPageSizeMM
in interfaceQPagedPaintDevice
-
devicePixelRatioFScale
public static double devicePixelRatioFScale()See
QPaintDevice::
devicePixelRatioFScale()
-