All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.printsupport.QPrinter Maven / Gradle / Ivy

package io.qt.printsupport;

import io.qt.*;


/**
 * 

Paint device that paints on a printer

*

Java wrapper for Qt class QPrinter

*/ public class QPrinter extends QtObject implements io.qt.gui.QPagedPaintDevice, io.qt.gui.QPaintDevice { static { QtJambi_LibraryUtilities.initialize(); } @QtPropertyMember(enabled=false) private Object __rcPaintEngine; @QtPropertyMember(enabled=false) private Object __rcPrintEngine; /** *

Java wrapper for Qt enum QPrinter::ColorMode

*/ public enum ColorMode implements QtEnumerator { /** *

Representing QPrinter::GrayScale

*/ GrayScale(0), /** *

Representing QPrinter::Color

*/ Color(1); static { QtJambi_LibraryUtilities.initialize(); } private ColorMode(int value) { this.value = value; } /** * {@inheritDoc} */ @Override public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull ColorMode resolve(int value) { switch (value) { case 0: return GrayScale; case 1: return Color; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QPrinter::DuplexMode

*/ public enum DuplexMode implements QtEnumerator { /** *

Representing QPrinter::DuplexNone

*/ DuplexNone(0), /** *

Representing QPrinter::DuplexAuto

*/ DuplexAuto(1), /** *

Representing QPrinter::DuplexLongSide

*/ DuplexLongSide(2), /** *

Representing QPrinter::DuplexShortSide

*/ DuplexShortSide(3); static { QtJambi_LibraryUtilities.initialize(); } private DuplexMode(int value) { this.value = value; } /** * {@inheritDoc} */ @Override public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull DuplexMode resolve(int value) { switch (value) { case 0: return DuplexNone; case 1: return DuplexAuto; case 2: return DuplexLongSide; case 3: return DuplexShortSide; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QPrinter::OutputFormat

*/ public enum OutputFormat implements QtEnumerator { /** *

Representing QPrinter::NativeFormat

*/ NativeFormat(0), /** *

Representing QPrinter::PdfFormat

*/ PdfFormat(1); static { QtJambi_LibraryUtilities.initialize(); } private OutputFormat(int value) { this.value = value; } /** * {@inheritDoc} */ @Override public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull OutputFormat resolve(int value) { switch (value) { case 0: return NativeFormat; case 1: return PdfFormat; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QPrinter::PageOrder

*/ public enum PageOrder implements QtEnumerator { /** *

Representing QPrinter::FirstPageFirst

*/ FirstPageFirst(0), /** *

Representing QPrinter::LastPageFirst

*/ LastPageFirst(1); static { QtJambi_LibraryUtilities.initialize(); } private PageOrder(int value) { this.value = value; } /** * {@inheritDoc} */ @Override public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull PageOrder resolve(int value) { switch (value) { case 0: return FirstPageFirst; case 1: return LastPageFirst; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QPrinter::PaperSource

*/ @QtRejectedEntries({"LastPaperSource", "Upper"}) public enum PaperSource implements QtEnumerator { /** *

Representing QPrinter::OnlyOne

*/ OnlyOne(0), /** *

Representing QPrinter::Lower

*/ Lower(1), /** *

Representing QPrinter::Middle

*/ Middle(2), /** *

Representing QPrinter::Manual

*/ Manual(3), /** *

Representing QPrinter::Envelope

*/ Envelope(4), /** *

Representing QPrinter::EnvelopeManual

*/ EnvelopeManual(5), /** *

Representing QPrinter::Auto

*/ Auto(6), /** *

Representing QPrinter::Tractor

*/ Tractor(7), /** *

Representing QPrinter::SmallFormat

*/ SmallFormat(8), /** *

Representing QPrinter::LargeFormat

*/ LargeFormat(9), /** *

Representing QPrinter::LargeCapacity

*/ LargeCapacity(10), /** *

Representing QPrinter::Cassette

*/ Cassette(11), /** *

Representing QPrinter::FormSource

*/ FormSource(12), /** *

Representing QPrinter::MaxPageSource

*/ MaxPageSource(13), /** *

Representing QPrinter::CustomSource

*/ CustomSource(14), /** *

Representing QPrinter::LastPaperSource

*/ LastPaperSource(14), /** *

Representing QPrinter::Upper

*/ Upper(0); static { QtJambi_LibraryUtilities.initialize(); } private PaperSource(int value) { this.value = value; } /** * {@inheritDoc} */ @Override public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull PaperSource resolve(int value) { switch (value) { case 0: return OnlyOne; case 1: return Lower; case 2: return Middle; case 3: return Manual; case 4: return Envelope; case 5: return EnvelopeManual; case 6: return Auto; case 7: return Tractor; case 8: return SmallFormat; case 9: return LargeFormat; case 10: return LargeCapacity; case 11: return Cassette; case 12: return FormSource; case 13: return MaxPageSource; case 14: return CustomSource; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QPrinter::PrintRange

*/ public enum PrintRange implements QtEnumerator { /** *

Representing QPrinter::AllPages

*/ AllPages(0), /** *

Representing QPrinter::Selection

*/ Selection(1), /** *

Representing QPrinter::PageRange

*/ PageRange(2), /** *

Representing QPrinter::CurrentPage

*/ CurrentPage(3); static { QtJambi_LibraryUtilities.initialize(); } private PrintRange(int value) { this.value = value; } /** * {@inheritDoc} */ @Override public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull PrintRange resolve(int value) { switch (value) { case 0: return AllPages; case 1: return Selection; case 2: return PageRange; case 3: return CurrentPage; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QPrinter::PrinterMode

*/ public enum PrinterMode implements QtEnumerator { /** *

Representing QPrinter::ScreenResolution

*/ ScreenResolution(0), /** *

Representing QPrinter::PrinterResolution

*/ PrinterResolution(1), /** *

Representing QPrinter::HighResolution

*/ HighResolution(2); static { QtJambi_LibraryUtilities.initialize(); } private PrinterMode(int value) { this.value = value; } /** * {@inheritDoc} */ @Override public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull PrinterMode resolve(int value) { switch (value) { case 0: return ScreenResolution; case 1: return PrinterResolution; case 2: return HighResolution; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QPrinter::PrinterState

*/ public enum PrinterState implements QtEnumerator { /** *

Representing QPrinter::Idle

*/ Idle(0), /** *

Representing QPrinter::Active

*/ Active(1), /** *

Representing QPrinter::Aborted

*/ Aborted(2), /** *

Representing QPrinter::Error

*/ Error(3); static { QtJambi_LibraryUtilities.initialize(); } private PrinterState(int value) { this.value = value; } /** * {@inheritDoc} */ @Override public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull PrinterState resolve(int value) { switch (value) { case 0: return Idle; case 1: return Active; case 2: return Aborted; case 3: return Error; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QPrinter::Unit

*/ public enum Unit implements QtEnumerator { /** *

Representing QPrinter::Millimeter

*/ Millimeter(0), /** *

Representing QPrinter::Point

*/ Point(1), /** *

Representing QPrinter::Inch

*/ Inch(2), /** *

Representing QPrinter::Pica

*/ Pica(3), /** *

Representing QPrinter::Didot

*/ Didot(4), /** *

Representing QPrinter::Cicero

*/ Cicero(5), /** *

Representing QPrinter::DevicePixel

*/ DevicePixel(6); static { QtJambi_LibraryUtilities.initialize(); } private Unit(int value) { this.value = value; } /** * {@inheritDoc} */ @Override public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull Unit resolve(int value) { switch (value) { case 0: return Millimeter; case 1: return Point; case 2: return Inch; case 3: return Pica; case 4: return Didot; case 5: return Cicero; case 6: return DevicePixel; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See QPrinter::QPrinter(QPrinter::PrinterMode)

* @param mode */ public QPrinter(io.qt.printsupport.QPrinter.@NonNull PrinterMode mode){ super((QPrivateConstructor)null); if(io.qt.core.QCoreApplication.instance()==null) throw new IllegalStateException("Cannot create QPrinter before initializing QCoreApplication."); initialize_native(this, mode); } private native static void initialize_native(QPrinter instance, io.qt.printsupport.QPrinter.PrinterMode mode); /** *

See QPrinter::QPrinter(QPrinterInfo,QPrinter::PrinterMode)

* @param printer * @param mode */ public QPrinter(io.qt.printsupport.@NonNull QPrinterInfo printer, io.qt.printsupport.QPrinter.@NonNull PrinterMode mode){ super((QPrivateConstructor)null); if(io.qt.core.QCoreApplication.instance()==null) throw new IllegalStateException("Cannot create QPrinter before initializing QCoreApplication."); initialize_native(this, printer, mode); } private native static void initialize_native(QPrinter instance, io.qt.printsupport.QPrinterInfo printer, io.qt.printsupport.QPrinter.PrinterMode mode); /** *

See QPrinter::abort()

* @return */ @QtUninvokable public final boolean abort(){ return abort_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean abort_native(long __this__nativeId); /** *

See QPrinter::collateCopies()const

* @return */ @QtUninvokable public final boolean collateCopies(){ return collateCopies_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean collateCopies_native_constfct(long __this__nativeId); /** *

See QPaintDevice::colorCount()const

* @return */ @QtUninvokable public final int colorCount(){ return colorCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static int colorCount_native_constfct(long __this__nativeId); /** *

See QPrinter::colorMode()const

* @return */ @QtUninvokable public final io.qt.printsupport.QPrinter.@NonNull ColorMode colorMode(){ return io.qt.printsupport.QPrinter.ColorMode.resolve(colorMode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int colorMode_native_constfct(long __this__nativeId); /** *

See QPrinter::copyCount()const

* @return */ @QtUninvokable public final int copyCount(){ return copyCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int copyCount_native_constfct(long __this__nativeId); /** *

See QPrinter::creator()const

* @return */ @QtUninvokable public final java.lang.@NonNull String creator(){ return creator_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.lang.String creator_native_constfct(long __this__nativeId); /** *

See QPaintDevice::depth()const

* @return */ @QtUninvokable public final int depth(){ return depth_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static int depth_native_constfct(long __this__nativeId); /** *

See QPaintDevice::devicePixelRatio()const

* @return */ @QtUninvokable public final double devicePixelRatio(){ return devicePixelRatio_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static double devicePixelRatio_native_constfct(long __this__nativeId); /** *

See QPaintDevice::devicePixelRatioF()const

* @return */ @QtUninvokable public final double devicePixelRatioF(){ return devicePixelRatioF_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static double devicePixelRatioF_native_constfct(long __this__nativeId); /** *

See QPrinter::docName()const

* @return */ @QtUninvokable public final java.lang.@NonNull String docName(){ return docName_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.lang.String docName_native_constfct(long __this__nativeId); /** *

See QPrinter::duplex()const

* @return */ @QtUninvokable public final io.qt.printsupport.QPrinter.@NonNull DuplexMode duplex(){ return io.qt.printsupport.QPrinter.DuplexMode.resolve(duplex_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int duplex_native_constfct(long __this__nativeId); /** *

See QPrinter::fontEmbeddingEnabled()const

* @return */ @QtUninvokable public final boolean fontEmbeddingEnabled(){ return fontEmbeddingEnabled_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean fontEmbeddingEnabled_native_constfct(long __this__nativeId); /** *

See QPrinter::fromPage()const

* @return */ @QtUninvokable public final int fromPage(){ return fromPage_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int fromPage_native_constfct(long __this__nativeId); /** *

See QPrinter::fullPage()const

* @return */ @QtUninvokable public final boolean fullPage(){ return fullPage_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean fullPage_native_constfct(long __this__nativeId); /** *

See QPaintDevice::height()const

* @return */ @QtUninvokable public final int height(){ return height_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static int height_native_constfct(long __this__nativeId); /** *

See QPaintDevice::heightMM()const

* @return */ @QtUninvokable public final int heightMM(){ return heightMM_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static int heightMM_native_constfct(long __this__nativeId); /** *

See QPrinter::isValid()const

* @return */ @QtUninvokable public final boolean isValid(){ return isValid_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isValid_native_constfct(long __this__nativeId); /** *

See QPaintDevice::logicalDpiX()const

* @return */ @QtUninvokable public final int logicalDpiX(){ return logicalDpiX_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static int logicalDpiX_native_constfct(long __this__nativeId); /** *

See QPaintDevice::logicalDpiY()const

* @return */ @QtUninvokable public final int logicalDpiY(){ return logicalDpiY_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static int logicalDpiY_native_constfct(long __this__nativeId); /** *

See QPrinter::outputFileName()const

* @return */ @QtUninvokable public final java.lang.@NonNull String outputFileName(){ return outputFileName_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.lang.String outputFileName_native_constfct(long __this__nativeId); /** *

See QPrinter::outputFormat()const

* @return */ @QtUninvokable public final io.qt.printsupport.QPrinter.@NonNull OutputFormat outputFormat(){ return io.qt.printsupport.QPrinter.OutputFormat.resolve(outputFormat_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int outputFormat_native_constfct(long __this__nativeId); /** *

See QPagedPaintDevice::pageLayout()const

* @return */ @QtUninvokable public final io.qt.gui.@NonNull QPageLayout pageLayout(){ return pageLayout_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static io.qt.gui.QPageLayout pageLayout_native_constfct(long __this__nativeId); /** *

See QPrinter::pageOrder()const

* @return */ @QtUninvokable public final io.qt.printsupport.QPrinter.@NonNull PageOrder pageOrder(){ return io.qt.printsupport.QPrinter.PageOrder.resolve(pageOrder_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int pageOrder_native_constfct(long __this__nativeId); /** *

See QPagedPaintDevice::pageRanges()const

* @since This function was introduced in Qt 6.0. * @return */ @QtUninvokable public final io.qt.gui.@NonNull QPageRanges pageRanges(){ return pageRanges_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static io.qt.gui.QPageRanges pageRanges_native_constfct(long __this__nativeId); /** *

See QPrinter::pageRect(QPrinter::Unit)const

* @param arg__1 * @return */ @QtUninvokable public final io.qt.core.@NonNull QRectF pageRect(io.qt.printsupport.QPrinter.@NonNull Unit arg__1){ return pageRect_native_QPrinter_Unit_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value()); } @QtUninvokable private native io.qt.core.QRectF pageRect_native_QPrinter_Unit_constfct(long __this__nativeId, int arg__1); /** *

See QPaintDevice::paintingActive()const

* @return */ @QtUninvokable public final boolean paintingActive(){ return paintingActive_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static boolean paintingActive_native_constfct(long __this__nativeId); /** *

See QPrinter::paperRect(QPrinter::Unit)const

* @param arg__1 * @return */ @QtUninvokable public final io.qt.core.@NonNull QRectF paperRect(io.qt.printsupport.QPrinter.@NonNull Unit arg__1){ return paperRect_native_QPrinter_Unit_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value()); } @QtUninvokable private native io.qt.core.QRectF paperRect_native_QPrinter_Unit_constfct(long __this__nativeId, int arg__1); /** *

See QPrinter::paperSource()const

* @return */ @QtUninvokable public final io.qt.printsupport.QPrinter.@NonNull PaperSource paperSource(){ return io.qt.printsupport.QPrinter.PaperSource.resolve(paperSource_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int paperSource_native_constfct(long __this__nativeId); /** *

See QPrinter::pdfVersion()const

* @return */ @QtUninvokable public final io.qt.gui.QPagedPaintDevice.@NonNull PdfVersion pdfVersion(){ return io.qt.gui.QPagedPaintDevice.PdfVersion.resolve(pdfVersion_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int pdfVersion_native_constfct(long __this__nativeId); /** *

See QPaintDevice::physicalDpiX()const

* @return */ @QtUninvokable public final int physicalDpiX(){ return physicalDpiX_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static int physicalDpiX_native_constfct(long __this__nativeId); /** *

See QPaintDevice::physicalDpiY()const

* @return */ @QtUninvokable public final int physicalDpiY(){ return physicalDpiY_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static int physicalDpiY_native_constfct(long __this__nativeId); /** *

See QPrinter::printEngine()const

* @return */ @QtUninvokable public final io.qt.printsupport.@Nullable QPrintEngine printEngine(){ return printEngine_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.printsupport.QPrintEngine printEngine_native_constfct(long __this__nativeId); /** *

See QPrinter::printProgram()const

* @return */ @QtUninvokable public final java.lang.@NonNull String printProgram(){ return printProgram_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.lang.String printProgram_native_constfct(long __this__nativeId); /** *

See QPrinter::printRange()const

* @return */ @QtUninvokable public final io.qt.printsupport.QPrinter.@NonNull PrintRange printRange(){ return io.qt.printsupport.QPrinter.PrintRange.resolve(printRange_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int printRange_native_constfct(long __this__nativeId); /** *

See QPrinter::printerName()const

* @return */ @QtUninvokable public final java.lang.@NonNull String printerName(){ return printerName_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.lang.String printerName_native_constfct(long __this__nativeId); /** *

See QPrinter::printerSelectionOption()const

* @return */ @QtUninvokable public final java.lang.@NonNull String printerSelectionOption(){ return printerSelectionOption_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.lang.String printerSelectionOption_native_constfct(long __this__nativeId); /** *

See QPrinter::printerState()const

* @return */ @QtUninvokable public final io.qt.printsupport.QPrinter.@NonNull PrinterState printerState(){ return io.qt.printsupport.QPrinter.PrinterState.resolve(printerState_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int printerState_native_constfct(long __this__nativeId); /** *

See QPrinter::resolution()const

* @return */ @QtUninvokable public final int resolution(){ return resolution_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int resolution_native_constfct(long __this__nativeId); /** *

See QPrinter::setCollateCopies(bool)

* @param collate */ @QtUninvokable public final void setCollateCopies(boolean collate){ setCollateCopies_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), collate); } @QtUninvokable private native void setCollateCopies_native_bool(long __this__nativeId, boolean collate); /** *

See QPrinter::setColorMode(QPrinter::ColorMode)

* @param arg__1 */ @QtUninvokable public final void setColorMode(io.qt.printsupport.QPrinter.@NonNull ColorMode arg__1){ setColorMode_native_QPrinter_ColorMode(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value()); } @QtUninvokable private native void setColorMode_native_QPrinter_ColorMode(long __this__nativeId, int arg__1); /** *

See QPrinter::setCopyCount(int)

* @param arg__1 */ @QtUninvokable public final void setCopyCount(int arg__1){ setCopyCount_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @QtUninvokable private native void setCopyCount_native_int(long __this__nativeId, int arg__1); /** *

See QPrinter::setCreator(QString)

* @param arg__1 */ @QtUninvokable public final void setCreator(java.lang.@NonNull String arg__1){ setCreator_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @QtUninvokable private native void setCreator_native_cref_QString(long __this__nativeId, java.lang.String arg__1); /** *

See QPrinter::setDocName(QString)

* @param arg__1 */ @QtUninvokable public final void setDocName(java.lang.@NonNull String arg__1){ setDocName_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @QtUninvokable private native void setDocName_native_cref_QString(long __this__nativeId, java.lang.String arg__1); /** *

See QPrinter::setDuplex(QPrinter::DuplexMode)

* @param duplex */ @QtUninvokable public final void setDuplex(io.qt.printsupport.QPrinter.@NonNull DuplexMode duplex){ setDuplex_native_QPrinter_DuplexMode(QtJambi_LibraryUtilities.internal.nativeId(this), duplex.value()); } @QtUninvokable private native void setDuplex_native_QPrinter_DuplexMode(long __this__nativeId, int duplex); /** *

See QPrinter::setEngines(QPrintEngine*,QPaintEngine*)

* @param printEngine * @param paintEngine */ @QtUninvokable protected final void setEngines(io.qt.printsupport.@Nullable QPrintEngine printEngine, io.qt.gui.@Nullable QPaintEngine paintEngine){ InternalAccess.NativeIdInfo __printEngine__NativeIdInfo = QtJambi_LibraryUtilities.internal.checkedNativeIdInfo(printEngine); InternalAccess.NativeIdInfo __paintEngine__NativeIdInfo = QtJambi_LibraryUtilities.internal.checkedNativeIdInfo(paintEngine); setEngines_native_QPrintEngine_ptr_QPaintEngine_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), __printEngine__NativeIdInfo.nativeId(), __paintEngine__NativeIdInfo.nativeId()); if (__printEngine__NativeIdInfo.needsReferenceCounting()) { __rcPrintEngine = printEngine; }else{ __rcPrintEngine = null; } if (__paintEngine__NativeIdInfo.needsReferenceCounting()) { __rcPaintEngine = paintEngine; }else{ __rcPaintEngine = null; } } @QtUninvokable private native void setEngines_native_QPrintEngine_ptr_QPaintEngine_ptr(long __this__nativeId, long printEngine, long paintEngine); /** *

See QPrinter::setFontEmbeddingEnabled(bool)

* @param enable */ @QtUninvokable public final void setFontEmbeddingEnabled(boolean enable){ setFontEmbeddingEnabled_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), enable); } @QtUninvokable private native void setFontEmbeddingEnabled_native_bool(long __this__nativeId, boolean enable); /** *

See QPrinter::setFromTo(int,int)

* @param fromPage * @param toPage */ @QtUninvokable public final void setFromTo(int fromPage, int toPage){ setFromTo_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), fromPage, toPage); } @QtUninvokable private native void setFromTo_native_int_int(long __this__nativeId, int fromPage, int toPage); /** *

See QPrinter::setFullPage(bool)

* @param arg__1 */ @QtUninvokable public final void setFullPage(boolean arg__1){ setFullPage_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @QtUninvokable private native void setFullPage_native_bool(long __this__nativeId, boolean arg__1); /** *

See QPrinter::setOutputFileName(QString)

* @param arg__1 */ @QtUninvokable public final void setOutputFileName(java.lang.@NonNull String arg__1){ setOutputFileName_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @QtUninvokable private native void setOutputFileName_native_cref_QString(long __this__nativeId, java.lang.String arg__1); /** *

See QPrinter::setOutputFormat(QPrinter::OutputFormat)

* @param format */ @QtUninvokable public final void setOutputFormat(io.qt.printsupport.QPrinter.@NonNull OutputFormat format){ setOutputFormat_native_QPrinter_OutputFormat(QtJambi_LibraryUtilities.internal.nativeId(this), format.value()); } @QtUninvokable private native void setOutputFormat_native_QPrinter_OutputFormat(long __this__nativeId, int format); /** *

See QPrinter::setPageOrder(QPrinter::PageOrder)

* @param arg__1 */ @QtUninvokable public final void setPageOrder(io.qt.printsupport.QPrinter.@NonNull PageOrder arg__1){ setPageOrder_native_QPrinter_PageOrder(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value()); } @QtUninvokable private native void setPageOrder_native_QPrinter_PageOrder(long __this__nativeId, int arg__1); /** *

See QPrinter::setPaperSource(QPrinter::PaperSource)

* @param arg__1 */ @QtUninvokable public final void setPaperSource(io.qt.printsupport.QPrinter.@NonNull PaperSource arg__1){ setPaperSource_native_QPrinter_PaperSource(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value()); } @QtUninvokable private native void setPaperSource_native_QPrinter_PaperSource(long __this__nativeId, int arg__1); /** *

See QPrinter::setPdfVersion(QPagedPaintDevice::PdfVersion)

* @param version */ @QtUninvokable public final void setPdfVersion(io.qt.gui.QPagedPaintDevice.@NonNull PdfVersion version){ setPdfVersion_native_QPagedPaintDevice_PdfVersion(QtJambi_LibraryUtilities.internal.nativeId(this), version.value()); } @QtUninvokable private native void setPdfVersion_native_QPagedPaintDevice_PdfVersion(long __this__nativeId, int version); /** *

See QPrinter::setPrintProgram(QString)

* @param arg__1 */ @QtUninvokable public final void setPrintProgram(java.lang.@NonNull String arg__1){ setPrintProgram_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @QtUninvokable private native void setPrintProgram_native_cref_QString(long __this__nativeId, java.lang.String arg__1); /** *

See QPrinter::setPrintRange(QPrinter::PrintRange)

* @param range */ @QtUninvokable public final void setPrintRange(io.qt.printsupport.QPrinter.@NonNull PrintRange range){ setPrintRange_native_QPrinter_PrintRange(QtJambi_LibraryUtilities.internal.nativeId(this), range.value()); } @QtUninvokable private native void setPrintRange_native_QPrinter_PrintRange(long __this__nativeId, int range); /** *

See QPrinter::setPrinterName(QString)

* @param arg__1 */ @QtUninvokable public final void setPrinterName(java.lang.@NonNull String arg__1){ setPrinterName_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @QtUninvokable private native void setPrinterName_native_cref_QString(long __this__nativeId, java.lang.String arg__1); /** *

See QPrinter::setPrinterSelectionOption(QString)

* @param arg__1 */ @QtUninvokable public final void setPrinterSelectionOption(java.lang.@NonNull String arg__1){ setPrinterSelectionOption_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @QtUninvokable private native void setPrinterSelectionOption_native_cref_QString(long __this__nativeId, java.lang.String arg__1); /** *

See QPrinter::setResolution(int)

* @param arg__1 */ @QtUninvokable public final void setResolution(int arg__1){ setResolution_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @QtUninvokable private native void setResolution_native_int(long __this__nativeId, int arg__1); /** *

See QPrinter::supportedResolutions()const

* @return */ @QtUninvokable public final io.qt.core.@NonNull QList supportedResolutions(){ return supportedResolutions_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QList supportedResolutions_native_constfct(long __this__nativeId); /** *

See QPrinter::supportsMultipleCopies()const

* @return */ @QtUninvokable public final boolean supportsMultipleCopies(){ return supportsMultipleCopies_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean supportsMultipleCopies_native_constfct(long __this__nativeId); /** *

See QPrinter::toPage()const

* @return */ @QtUninvokable public final int toPage(){ return toPage_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int toPage_native_constfct(long __this__nativeId); /** *

See QPaintDevice::width()const

* @return */ @QtUninvokable public final int width(){ return width_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static int width_native_constfct(long __this__nativeId); /** *

See QPaintDevice::widthMM()const

* @return */ @QtUninvokable public final int widthMM(){ return widthMM_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static int widthMM_native_constfct(long __this__nativeId); /** *

See QPaintDevice::initPainter(QPainter*)const

* @param painter */ @QtUninvokable protected void initPainter(io.qt.gui.@Nullable QPainter painter){ initPainter_native_QPainter_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(painter)); } private native static void initPainter_native_QPainter_ptr_constfct(long __this__nativeId, long painter); /** *

See QPaintDevice::metric(QPaintDevice::PaintDeviceMetric)const

* @param arg__1 * @return */ @QtUninvokable protected int metric(io.qt.gui.QPaintDevice.@NonNull PaintDeviceMetric arg__1){ return metric_native_QPaintDevice_PaintDeviceMetric_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value()); } private native static int metric_native_QPaintDevice_PaintDeviceMetric_constfct(long __this__nativeId, int arg__1); /** *

See QPagedPaintDevice::newPage()

* @return */ @QtUninvokable @Override public boolean newPage(){ return newPage_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static boolean newPage_native(long __this__nativeId); /** *

See QPaintDevice::paintEngine()const

* @return */ @QtUninvokable @Override public io.qt.gui.@Nullable QPaintEngine paintEngine(){ return paintEngine_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static io.qt.gui.QPaintEngine paintEngine_native_constfct(long __this__nativeId); /** *

See QPaintDevice::redirected(QPoint*)const

* @param offset * @return */ @QtUninvokable protected io.qt.gui.@Nullable QPaintDevice redirected(io.qt.core.@Nullable QPoint offset){ return redirected_native_QPoint_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(offset)); } private native static io.qt.gui.QPaintDevice redirected_native_QPoint_ptr_constfct(long __this__nativeId, long offset); /** *

See QPagedPaintDevice::setPageLayout(QPageLayout)

* @param pageLayout * @return */ @QtUninvokable public boolean setPageLayout(io.qt.gui.@NonNull QPageLayout pageLayout){ return setPageLayout_native_cref_QPageLayout(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pageLayout)); } private native static boolean setPageLayout_native_cref_QPageLayout(long __this__nativeId, long pageLayout); /** *

See QPagedPaintDevice::setPageMargins(QMarginsF,QPageLayout::Unit)

* @param margins * @param units * @return */ @QtUninvokable public boolean setPageMargins(io.qt.core.@NonNull QMarginsF margins, io.qt.gui.QPageLayout.@NonNull Unit units){ return setPageMargins_native_cref_QMarginsF_QPageLayout_Unit(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(margins), units.value()); } private native static boolean setPageMargins_native_cref_QMarginsF_QPageLayout_Unit(long __this__nativeId, long margins, int units); /** *

See QPagedPaintDevice::setPageOrientation(QPageLayout::Orientation)

* @param orientation * @return */ @QtUninvokable public boolean setPageOrientation(io.qt.gui.QPageLayout.@NonNull Orientation orientation){ return setPageOrientation_native_QPageLayout_Orientation(QtJambi_LibraryUtilities.internal.nativeId(this), orientation.value()); } private native static boolean setPageOrientation_native_QPageLayout_Orientation(long __this__nativeId, int orientation); /** *

See QPagedPaintDevice::setPageRanges(QPageRanges)

* @since This function was introduced in Qt 6.0. * @param ranges */ @QtUninvokable public void setPageRanges(io.qt.gui.@NonNull QPageRanges ranges){ setPageRanges_native_cref_QPageRanges(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(ranges)); } private native static void setPageRanges_native_cref_QPageRanges(long __this__nativeId, long ranges); /** *

See QPagedPaintDevice::setPageSize(QPageSize)

* @param pageSize * @return */ @QtUninvokable public boolean setPageSize(io.qt.gui.@NonNull QPageSize pageSize){ return setPageSize_native_cref_QPageSize(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pageSize)); } private native static boolean setPageSize_native_cref_QPageSize(long __this__nativeId, long pageSize); /** *

See QPaintDevice::sharedPainter()const

* @return */ @QtUninvokable protected io.qt.gui.@Nullable QPainter sharedPainter(){ return sharedPainter_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static io.qt.gui.QPainter sharedPainter_native_constfct(long __this__nativeId); /** *

See QPaintDevice::devicePixelRatioFScale()

* @return */ public native static double devicePixelRatioFScale(); /** *

See QPaintDevice::encodeMetricF(QPaintDevice::PaintDeviceMetric,double)

* @param metric * @param value * @return */ public static int encodeMetricF(io.qt.gui.QPaintDevice.@NonNull PaintDeviceMetric metric, double value){ return encodeMetricF_native_QPaintDevice_PaintDeviceMetric_double(metric.value(), value); } private native static int encodeMetricF_native_QPaintDevice_PaintDeviceMetric_double(int metric, double value); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QPrinter(QPrivateConstructor p) { super(p); } /** *

Overloaded constructor for {@link #QPrinter(io.qt.printsupport.QPrinter.PrinterMode)} * with mode = io.qt.printsupport.QPrinter.PrinterMode.ScreenResolution.

*/ public QPrinter() { this(io.qt.printsupport.QPrinter.PrinterMode.ScreenResolution); } /** *

Overloaded constructor for {@link #QPrinter(io.qt.printsupport.QPrinterInfo, io.qt.printsupport.QPrinter.PrinterMode)} * with mode = io.qt.printsupport.QPrinter.PrinterMode.ScreenResolution.

*/ public QPrinter(io.qt.printsupport.@NonNull QPrinterInfo printer) { this(printer, io.qt.printsupport.QPrinter.PrinterMode.ScreenResolution); } /** *

Overloaded function for {@link #setPageMargins(io.qt.core.QMarginsF, io.qt.gui.QPageLayout.Unit)} * with units = io.qt.gui.QPageLayout.Unit.Millimeter.

*/ @QtUninvokable public final boolean setPageMargins(io.qt.core.@NonNull QMarginsF margins) { return setPageMargins(margins, io.qt.gui.QPageLayout.Unit.Millimeter); } /** *

Overloaded function for {@link #setPageMargins(io.qt.core.QMargins, io.qt.gui.QPageLayout.Unit)} * with units = io.qt.gui.QPageLayout.Unit.Millimeter.

*/ @QtUninvokable public final boolean setPageMargins(io.qt.core.@NonNull QMargins margins) { return setPageMargins(margins, io.qt.gui.QPageLayout.Unit.Millimeter); } /** *

Overloaded function for {@link #setPageMargins(io.qt.core.QMarginsF, io.qt.gui.QPageLayout.Unit)}.

*/ @QtUninvokable public final boolean setPageMargins(io.qt.core.@NonNull QMargins margins, io.qt.gui.QPageLayout.@NonNull Unit units) { return setPageMargins(new io.qt.core.QMarginsF(margins), units); } /** *

Overloaded function for {@link #setPageSize(io.qt.gui.QPageSize)}.

*/ @QtUninvokable public final boolean setPageSize(io.qt.gui.QPageSize.@NonNull PageSizeId pageSize) { return setPageSize(new io.qt.gui.QPageSize(pageSize)); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy