io.qt.printsupport.QPrinterInfo Maven / Gradle / Ivy
Show all versions of qtjambi-printsupport-jre8 Show documentation
package io.qt.printsupport;
/**
* Gives access to information about existing printers
* Java wrapper for Qt class QPrinterInfo
*/
public class QPrinterInfo extends io.qt.QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QPrinterInfo::QPrinterInfo()
*/
public QPrinterInfo(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QPrinterInfo instance);
/**
* See QPrinterInfo::QPrinterInfo(QPrinter)
*/
public QPrinterInfo(io.qt.printsupport.QPrinter printer){
super((QPrivateConstructor)null);
java.util.Objects.requireNonNull(printer, "Argument 'printer': null not expected.");
initialize_native(this, printer);
}
private native static void initialize_native(QPrinterInfo instance, io.qt.printsupport.QPrinter printer);
/**
* See QPrinterInfo::QPrinterInfo(QPrinterInfo)
*/
public QPrinterInfo(io.qt.printsupport.QPrinterInfo other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QPrinterInfo instance, io.qt.printsupport.QPrinterInfo other);
/**
* See QPrinterInfo::defaultColorMode()const
*/
@io.qt.QtUninvokable
public final io.qt.printsupport.QPrinter.ColorMode defaultColorMode(){
return io.qt.printsupport.QPrinter.ColorMode.resolve(defaultColorMode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int defaultColorMode_native_constfct(long __this__nativeId);
/**
* See QPrinterInfo::defaultDuplexMode()const
*/
@io.qt.QtUninvokable
public final io.qt.printsupport.QPrinter.DuplexMode defaultDuplexMode(){
return io.qt.printsupport.QPrinter.DuplexMode.resolve(defaultDuplexMode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int defaultDuplexMode_native_constfct(long __this__nativeId);
/**
* See QPrinterInfo::defaultPageSize()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QPageSize defaultPageSize(){
return defaultPageSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QPageSize defaultPageSize_native_constfct(long __this__nativeId);
/**
* See QPrinterInfo::description()const
*/
@io.qt.QtUninvokable
public final java.lang.String description(){
return description_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String description_native_constfct(long __this__nativeId);
/**
* See QPrinterInfo::isDefault()const
*/
@io.qt.QtUninvokable
public final boolean isDefault(){
return isDefault_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isDefault_native_constfct(long __this__nativeId);
/**
* See QPrinterInfo::isNull()const
*/
@io.qt.QtUninvokable
public final boolean isNull(){
return isNull_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isNull_native_constfct(long __this__nativeId);
/**
* See QPrinterInfo::isRemote()const
*/
@io.qt.QtUninvokable
public final boolean isRemote(){
return isRemote_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isRemote_native_constfct(long __this__nativeId);
/**
* See QPrinterInfo::location()const
*/
@io.qt.QtUninvokable
public final java.lang.String location(){
return location_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String location_native_constfct(long __this__nativeId);
/**
* See QPrinterInfo::makeAndModel()const
*/
@io.qt.QtUninvokable
public final java.lang.String makeAndModel(){
return makeAndModel_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String makeAndModel_native_constfct(long __this__nativeId);
/**
* See QPrinterInfo::maximumPhysicalPageSize()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QPageSize maximumPhysicalPageSize(){
return maximumPhysicalPageSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QPageSize maximumPhysicalPageSize_native_constfct(long __this__nativeId);
/**
* See QPrinterInfo::minimumPhysicalPageSize()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QPageSize minimumPhysicalPageSize(){
return minimumPhysicalPageSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QPageSize minimumPhysicalPageSize_native_constfct(long __this__nativeId);
/**
* See QPrinterInfo::printerName()const
*/
@io.qt.QtUninvokable
public final java.lang.String printerName(){
return printerName_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String printerName_native_constfct(long __this__nativeId);
/**
* See QPrinterInfo::state()const
*/
@io.qt.QtUninvokable
public final io.qt.printsupport.QPrinter.PrinterState state(){
return io.qt.printsupport.QPrinter.PrinterState.resolve(state_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int state_native_constfct(long __this__nativeId);
/**
* See QPrinterInfo::supportedColorModes()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QList supportedColorModes(){
return supportedColorModes_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QList supportedColorModes_native_constfct(long __this__nativeId);
/**
* See QPrinterInfo::supportedDuplexModes()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QList supportedDuplexModes(){
return supportedDuplexModes_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QList supportedDuplexModes_native_constfct(long __this__nativeId);
/**
* See QPrinterInfo::supportedPageSizes()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QList supportedPageSizes(){
return supportedPageSizes_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QList supportedPageSizes_native_constfct(long __this__nativeId);
/**
* See QPrinterInfo::supportedResolutions()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QList supportedResolutions(){
return supportedResolutions_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QList supportedResolutions_native_constfct(long __this__nativeId);
/**
* See QPrinterInfo::supportsCustomPageSizes()const
*/
@io.qt.QtUninvokable
public final boolean supportsCustomPageSizes(){
return supportsCustomPageSizes_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean supportsCustomPageSizes_native_constfct(long __this__nativeId);
/**
* See QPrinterInfo::availablePrinterNames()
*/
public native static io.qt.core.QStringList availablePrinterNames();
/**
* See QPrinterInfo::availablePrinters()
*/
public native static io.qt.core.QList availablePrinters();
/**
* See QPrinterInfo::defaultPrinter()
*/
public native static io.qt.printsupport.QPrinterInfo defaultPrinter();
/**
* See QPrinterInfo::defaultPrinterName()
*/
public native static java.lang.String defaultPrinterName();
/**
* See QPrinterInfo::printerInfo(QString)
*/
public native static io.qt.printsupport.QPrinterInfo printerInfo(java.lang.String printerName);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QPrinterInfo(QPrivateConstructor p) { super(p); }
@Override
public QPrinterInfo clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native QPrinterInfo clone_native(long __this_nativeId);
}