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

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

package io.qt.printsupport;

import io.qt.*;


/**
 * 

Widget for previewing page layouts for printer output

*

Java wrapper for Qt class QPrintPreviewWidget

*/ public class QPrintPreviewWidget extends io.qt.widgets.QWidget { static { QtJambi_LibraryUtilities.initialize(); } /** * This variable stores the meta-object for the class. */ public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QPrintPreviewWidget.class); /** *

Java wrapper for Qt enum QPrintPreviewWidget::ViewMode

*/ @QtUnlistedEnum public enum ViewMode implements QtEnumerator { /** *

Representing QPrintPreviewWidget::SinglePageView

*/ SinglePageView(0), /** *

Representing QPrintPreviewWidget::FacingPagesView

*/ FacingPagesView(1), /** *

Representing QPrintPreviewWidget::AllPagesView

*/ AllPagesView(2); static { QtJambi_LibraryUtilities.initialize(); } private ViewMode(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 ViewMode resolve(int value) { switch (value) { case 0: return SinglePageView; case 1: return FacingPagesView; case 2: return AllPagesView; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QPrintPreviewWidget::ZoomMode

*/ @QtUnlistedEnum public enum ZoomMode implements QtEnumerator { /** *

Representing QPrintPreviewWidget::CustomZoom

*/ CustomZoom(0), /** *

Representing QPrintPreviewWidget::FitToWidth

*/ FitToWidth(1), /** *

Representing QPrintPreviewWidget::FitInView

*/ FitInView(2); static { QtJambi_LibraryUtilities.initialize(); } private ZoomMode(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 ZoomMode resolve(int value) { switch (value) { case 0: return CustomZoom; case 1: return FitToWidth; case 2: return FitInView; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See QPrintPreviewWidget::paintRequested(QPrinter*)

*/ public final @NonNull Signal1 paintRequested = new Signal1<>(); /** *

See QPrintPreviewWidget::previewChanged()

*/ public final @NonNull Signal0 previewChanged = new Signal0(); /** *

See QPrintPreviewWidget::QPrintPreviewWidget(QPrinter*,QWidget*,Qt::WindowFlags)

* @param printer * @param parent * @param flags */ public QPrintPreviewWidget(io.qt.printsupport.@Nullable QPrinter printer, io.qt.widgets.@Nullable QWidget parent, io.qt.core.Qt.@NonNull WindowFlags flags){ super((QPrivateConstructor)null); initialize_native(this, printer, parent, flags); } private native static void initialize_native(QPrintPreviewWidget instance, io.qt.printsupport.QPrinter printer, io.qt.widgets.QWidget parent, io.qt.core.Qt.WindowFlags flags); /** *

See QPrintPreviewWidget::QPrintPreviewWidget(QWidget*,Qt::WindowFlags)

* @param parent * @param flags */ public QPrintPreviewWidget(io.qt.widgets.@Nullable QWidget parent, io.qt.core.Qt.@NonNull WindowFlags flags){ super((QPrivateConstructor)null); initialize_native(this, parent, flags); } private native static void initialize_native(QPrintPreviewWidget instance, io.qt.widgets.QWidget parent, io.qt.core.Qt.WindowFlags flags); /** *

See QPrintPreviewWidget::currentPage()const

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

See QPrintPreviewWidget::fitInView()

*/ public final void fitInView(){ fitInView_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void fitInView_native(long __this__nativeId); /** *

See QPrintPreviewWidget::fitToWidth()

*/ public final void fitToWidth(){ fitToWidth_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void fitToWidth_native(long __this__nativeId); /** *

See QPrintPreviewWidget::orientation()const

* @return */ @QtUninvokable public final io.qt.gui.QPageLayout.@NonNull Orientation orientation(){ return io.qt.gui.QPageLayout.Orientation.resolve(orientation_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int orientation_native_constfct(long __this__nativeId); /** *

See QPrintPreviewWidget::pageCount()const

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

See QPrintPreviewWidget::print()

*/ public final void print(){ print_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void print_native(long __this__nativeId); /** *

See QPrintPreviewWidget::setAllPagesViewMode()

*/ public final void setAllPagesViewMode(){ setAllPagesViewMode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void setAllPagesViewMode_native(long __this__nativeId); /** *

See QPrintPreviewWidget::setCurrentPage(int)

* @param pageNumber */ public final void setCurrentPage(int pageNumber){ setCurrentPage_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), pageNumber); } private native void setCurrentPage_native_int(long __this__nativeId, int pageNumber); /** *

See QPrintPreviewWidget::setFacingPagesViewMode()

*/ public final void setFacingPagesViewMode(){ setFacingPagesViewMode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void setFacingPagesViewMode_native(long __this__nativeId); /** *

See QPrintPreviewWidget::setLandscapeOrientation()

*/ public final void setLandscapeOrientation(){ setLandscapeOrientation_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void setLandscapeOrientation_native(long __this__nativeId); /** *

See QPrintPreviewWidget::setOrientation(QPageLayout::Orientation)

* @param orientation */ public final void setOrientation(io.qt.gui.QPageLayout.@NonNull Orientation orientation){ setOrientation_native_QPageLayout_Orientation(QtJambi_LibraryUtilities.internal.nativeId(this), orientation.value()); } private native void setOrientation_native_QPageLayout_Orientation(long __this__nativeId, int orientation); /** *

See QPrintPreviewWidget::setPortraitOrientation()

*/ public final void setPortraitOrientation(){ setPortraitOrientation_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void setPortraitOrientation_native(long __this__nativeId); /** *

See QPrintPreviewWidget::setSinglePageViewMode()

*/ public final void setSinglePageViewMode(){ setSinglePageViewMode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void setSinglePageViewMode_native(long __this__nativeId); /** *

See QPrintPreviewWidget::setViewMode(QPrintPreviewWidget::ViewMode)

* @param viewMode */ public final void setViewMode(io.qt.printsupport.QPrintPreviewWidget.@NonNull ViewMode viewMode){ setViewMode_native_QPrintPreviewWidget_ViewMode(QtJambi_LibraryUtilities.internal.nativeId(this), viewMode.value()); } private native void setViewMode_native_QPrintPreviewWidget_ViewMode(long __this__nativeId, int viewMode); /** *

See QPrintPreviewWidget::setZoomFactor(qreal)

* @param zoomFactor */ public final void setZoomFactor(double zoomFactor){ setZoomFactor_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), zoomFactor); } private native void setZoomFactor_native_qreal(long __this__nativeId, double zoomFactor); /** *

See QPrintPreviewWidget::setZoomMode(QPrintPreviewWidget::ZoomMode)

* @param zoomMode */ public final void setZoomMode(io.qt.printsupport.QPrintPreviewWidget.@NonNull ZoomMode zoomMode){ setZoomMode_native_QPrintPreviewWidget_ZoomMode(QtJambi_LibraryUtilities.internal.nativeId(this), zoomMode.value()); } private native void setZoomMode_native_QPrintPreviewWidget_ZoomMode(long __this__nativeId, int zoomMode); /** *

See QPrintPreviewWidget::updatePreview()

*/ public final void updatePreview(){ updatePreview_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void updatePreview_native(long __this__nativeId); /** *

See QPrintPreviewWidget::viewMode()const

* @return */ @QtUninvokable public final io.qt.printsupport.QPrintPreviewWidget.@NonNull ViewMode viewMode(){ return io.qt.printsupport.QPrintPreviewWidget.ViewMode.resolve(viewMode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int viewMode_native_constfct(long __this__nativeId); /** *

See QPrintPreviewWidget::zoomFactor()const

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

See QPrintPreviewWidget::zoomIn(qreal)

* @param zoom */ public final void zoomIn(double zoom){ zoomIn_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), zoom); } private native void zoomIn_native_qreal(long __this__nativeId, double zoom); /** *

See QPrintPreviewWidget::zoomMode()const

* @return */ @QtUninvokable public final io.qt.printsupport.QPrintPreviewWidget.@NonNull ZoomMode zoomMode(){ return io.qt.printsupport.QPrintPreviewWidget.ZoomMode.resolve(zoomMode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int zoomMode_native_constfct(long __this__nativeId); /** *

See QPrintPreviewWidget::zoomOut(qreal)

* @param zoom */ public final void zoomOut(double zoom){ zoomOut_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), zoom); } private native void zoomOut_native_qreal(long __this__nativeId, double zoom); /** *

See QWidget::setVisible(bool)

* @param visible */ @QtUninvokable @Override public void setVisible(boolean visible){ setVisible_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), visible); } @QtUninvokable private native void setVisible_native_bool(long __this__nativeId, boolean visible); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QPrintPreviewWidget(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. * @hidden */ @NativeAccess protected QPrintPreviewWidget(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @QtUninvokable private static native void initialize_native(QPrintPreviewWidget instance, QDeclarativeConstructor constructor); /** *

Overloaded constructor for {@link #QPrintPreviewWidget(io.qt.printsupport.QPrinter, io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)} * with flags = new io.qt.core.Qt.WindowFlags(0).

*/ public QPrintPreviewWidget(io.qt.printsupport.@Nullable QPrinter printer, io.qt.widgets.@Nullable QWidget parent) { this(printer, parent, new io.qt.core.Qt.WindowFlags(0)); } /** *

Overloaded constructor for {@link #QPrintPreviewWidget(io.qt.printsupport.QPrinter, io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)}

*

with:

    *
  • parent = null
  • *
  • flags = new io.qt.core.Qt.WindowFlags(0)
  • *
*/ public QPrintPreviewWidget(io.qt.printsupport.@Nullable QPrinter printer) { this(printer, (io.qt.widgets.QWidget)null, new io.qt.core.Qt.WindowFlags(0)); } /** *

Overloaded constructor for {@link #QPrintPreviewWidget(io.qt.printsupport.QPrinter, io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)}.

*/ public QPrintPreviewWidget(io.qt.printsupport.@Nullable QPrinter printer, io.qt.widgets.@Nullable QWidget parent, io.qt.core.Qt.@NonNull WindowType @NonNull... flags) { this(printer, parent, new io.qt.core.Qt.WindowFlags(flags)); } /** *

Overloaded constructor for {@link #QPrintPreviewWidget(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)} * with flags = new io.qt.core.Qt.WindowFlags(0).

*/ public QPrintPreviewWidget(io.qt.widgets.@Nullable QWidget parent) { this(parent, new io.qt.core.Qt.WindowFlags(0)); } /** *

Overloaded constructor for {@link #QPrintPreviewWidget(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)}

*

with:

    *
  • parent = null
  • *
  • flags = new io.qt.core.Qt.WindowFlags(0)
  • *
*/ public QPrintPreviewWidget() { this((io.qt.widgets.QWidget)null, new io.qt.core.Qt.WindowFlags(0)); } /** *

Overloaded constructor for {@link #QPrintPreviewWidget(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)}.

*/ public QPrintPreviewWidget(io.qt.widgets.@Nullable QWidget parent, io.qt.core.Qt.@NonNull WindowType @NonNull... flags) { this(parent, new io.qt.core.Qt.WindowFlags(flags)); } /** *

Overloaded function for {@link #zoomIn(double)} * with zoom = 1.1.

*/ public final void zoomIn() { zoomIn((double)1.1); } /** *

Overloaded function for {@link #zoomOut(double)} * with zoom = 1.1.

*/ public final void zoomOut() { zoomOut((double)1.1); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy