io.qt.printsupport.QPrintPreviewDialog Maven / Gradle / Ivy
package io.qt.printsupport;
import io.qt.*;
/**
* Dialog for previewing and configuring page layouts for printer output
* Java wrapper for Qt class QPrintPreviewDialog
*/
public class QPrintPreviewDialog extends io.qt.widgets.QDialog
{
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(QPrintPreviewDialog.class);
/**
* See QPrintPreviewDialog:: paintRequested(QPrinter*)
*/
public final @NonNull Signal1 paintRequested = new Signal1<>();
/**
* See QPrintPreviewDialog:: QPrintPreviewDialog(QPrinter*, QWidget*, Qt::WindowFlags)
* @param printer
* @param parent
* @param flags
*/
public QPrintPreviewDialog(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(QPrintPreviewDialog instance, io.qt.printsupport.QPrinter printer, io.qt.widgets.QWidget parent, io.qt.core.Qt.WindowFlags flags);
/**
* See QPrintPreviewDialog:: QPrintPreviewDialog(QWidget*, Qt::WindowFlags)
* @param parent
* @param flags
*/
public QPrintPreviewDialog(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(QPrintPreviewDialog instance, io.qt.widgets.QWidget parent, io.qt.core.Qt.WindowFlags flags);
/**
* See QPrintPreviewDialog:: printer()
* @return
*/
@QtUninvokable
public final io.qt.printsupport.@Nullable QPrinter printer(){
return printer_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.printsupport.QPrinter printer_native(long __this__nativeId);
/**
*
* @param result
*/
@QtUninvokable
@Override
public void done(int result){
done_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), result);
}
@QtUninvokable
private native void done_native_int(long __this__nativeId, int result);
/**
*
* @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 QPrintPreviewDialog(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QPrintPreviewDialog(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QPrintPreviewDialog instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QPrintPreviewDialog(io.qt.printsupport.QPrinter, io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)}
* with flags = new io.qt.core.Qt.WindowFlags(0)
.
*/
public QPrintPreviewDialog(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 #QPrintPreviewDialog(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 QPrintPreviewDialog(io.qt.printsupport.@Nullable QPrinter printer) {
this(printer, (io.qt.widgets.QWidget)null, new io.qt.core.Qt.WindowFlags(0));
}
/**
* Overloaded constructor for {@link #QPrintPreviewDialog(io.qt.printsupport.QPrinter, io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)}.
*/
public QPrintPreviewDialog(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 #QPrintPreviewDialog(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)}
* with flags = new io.qt.core.Qt.WindowFlags(0)
.
*/
public QPrintPreviewDialog(io.qt.widgets.@Nullable QWidget parent) {
this(parent, new io.qt.core.Qt.WindowFlags(0));
}
/**
* Overloaded constructor for {@link #QPrintPreviewDialog(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)}
* with:
* parent = null
* flags = new io.qt.core.Qt.WindowFlags(0)
*
*/
public QPrintPreviewDialog() {
this((io.qt.widgets.QWidget)null, new io.qt.core.Qt.WindowFlags(0));
}
/**
* Overloaded constructor for {@link #QPrintPreviewDialog(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)}.
*/
public QPrintPreviewDialog(io.qt.widgets.@Nullable QWidget parent, io.qt.core.Qt.@NonNull WindowType @NonNull... flags) {
this(parent, new io.qt.core.Qt.WindowFlags(flags));
}
}