io.qt.gui.QPagedPaintDevice Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui;
/**
* Represents a paint device that supports multiple pages
* Java wrapper for Qt class QPagedPaintDevice
*/
public interface QPagedPaintDevice extends io.qt.QtObjectInterface, io.qt.gui.QPaintDevice
{
/**
* Java wrapper for Qt enum QPagedPaintDevice::PdfVersion
*/
public enum PdfVersion implements io.qt.QtEnumerator {
PdfVersion_1_4(0),
PdfVersion_A1b(1),
PdfVersion_1_6(2);
private PdfVersion(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static PdfVersion resolve(int value) {
switch (value) {
case 0: return PdfVersion_1_4;
case 1: return PdfVersion_A1b;
case 2: return PdfVersion_1_6;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Implementor class for interface {@link io.qt.gui.QPagedPaintDevice}
*/
public static abstract class Impl extends io.qt.QtObject
implements io.qt.gui.QPagedPaintDevice,
io.qt.gui.QPaintDevice
{
static {
QtJambi_LibraryUtilities.initialize();
}
@io.qt.NativeAccess
private static final class ConcreteWrapper extends QPagedPaintDevice.Impl {
@io.qt.NativeAccess
private ConcreteWrapper(QPrivateConstructor p) { super(p); }
@Override
@io.qt.QtUninvokable
public boolean newPage(){
return newPage_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static boolean newPage_native(long __this__nativeId);
@Override
@io.qt.QtUninvokable
public io.qt.gui.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::colorCount()const
*/
@io.qt.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 QPaintDevice::depth()const
*/
@io.qt.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
*/
@io.qt.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
*/
@io.qt.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 QPaintDevice::height()const
*/
@io.qt.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
*/
@io.qt.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 QPaintDevice::logicalDpiX()const
*/
@io.qt.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
*/
@io.qt.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 QPagedPaintDevice::pageLayout()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.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 QPagedPaintDevice::pageRanges()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.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 QPaintDevice::paintingActive()const
*/
@io.qt.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 QPaintDevice::physicalDpiX()const
*/
@io.qt.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
*/
@io.qt.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 QPaintDevice::width()const
*/
@io.qt.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
*/
@io.qt.QtUninvokable
public final int widthMM(){
return widthMM_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static int widthMM_native_constfct(long __this__nativeId);
@io.qt.QtUninvokable
protected void initPainter(io.qt.gui.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
*/
@io.qt.QtUninvokable
protected int metric(io.qt.gui.QPaintDevice.PaintDeviceMetric metric){
return metric_native_QPaintDevice_PaintDeviceMetric_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), metric.value());
}
private native static int metric_native_QPaintDevice_PaintDeviceMetric_constfct(long __this__nativeId, int metric);
/**
* See QPagedPaintDevice::newPage()
*/
@io.qt.QtUninvokable
public abstract boolean newPage();
private native static boolean newPage_native(long __this__nativeId);
/**
* See QPaintDevice::paintEngine()const
*/
@io.qt.QtUninvokable
public abstract io.qt.gui.QPaintEngine paintEngine();
private native static io.qt.gui.QPaintEngine paintEngine_native_constfct(long __this__nativeId);
@io.qt.QtUninvokable
protected io.qt.gui.QPaintDevice redirected(io.qt.core.QPoint offset){
return redirected_native_QPoint_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), offset);
}
private native static io.qt.gui.QPaintDevice redirected_native_QPoint_ptr_constfct(long __this__nativeId, io.qt.core.QPoint offset);
/**
* See QPagedPaintDevice::setPageLayout(QPageLayout)
*/
@io.qt.QtUninvokable
public boolean setPageLayout(io.qt.gui.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);
/**
* Overloaded function for {@link #setPageMargins(io.qt.core.QMarginsF, io.qt.gui.QPageLayout.Unit)}
* with units = io.qt.gui.QPageLayout.Unit.Millimeter
.
*/
@io.qt.QtUninvokable
public final boolean setPageMargins(io.qt.core.QMarginsF margins) {
return setPageMargins(margins, io.qt.gui.QPageLayout.Unit.Millimeter);
}
/**
* See QPagedPaintDevice::setPageMargins(QMarginsF,QPageLayout::Unit)
*/
@io.qt.QtUninvokable
public boolean setPageMargins(io.qt.core.QMarginsF margins, io.qt.gui.QPageLayout.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)
*/
@io.qt.QtUninvokable
public boolean setPageOrientation(io.qt.gui.QPageLayout.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)
*/
@io.qt.QtUninvokable
public void setPageRanges(io.qt.gui.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)
*/
@io.qt.QtUninvokable
public boolean setPageSize(io.qt.gui.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);
@io.qt.QtUninvokable
protected io.qt.gui.QPainter sharedPainter(){
return sharedPainter_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static io.qt.gui.QPainter sharedPainter_native_constfct(long __this__nativeId);
private native static double devicePixelRatioFScale();
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected Impl(QPrivateConstructor p) { super(p); }
}
/**
* See QPagedPaintDevice::newPage()
*/
@io.qt.QtUninvokable
public boolean newPage();
/**
* See QPaintDevice::paintEngine()const
*/
@io.qt.QtUninvokable
public io.qt.gui.QPaintEngine paintEngine();
/**
* See QPagedPaintDevice::setPageLayout(QPageLayout)
*/
@io.qt.QtUninvokable
public default boolean setPageLayout(io.qt.gui.QPageLayout pageLayout){
return Impl.setPageLayout_native_cref_QPageLayout(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pageLayout));
}
/**
* Overloaded function for {@link #setPageMargins(io.qt.core.QMarginsF, io.qt.gui.QPageLayout.Unit)}
* with units = io.qt.gui.QPageLayout.Unit.Millimeter
.
*/
@io.qt.QtUninvokable
public default boolean setPageMargins(io.qt.core.QMarginsF margins) {
return setPageMargins(margins, io.qt.gui.QPageLayout.Unit.Millimeter);
}
/**
* See QPagedPaintDevice::setPageMargins(QMarginsF,QPageLayout::Unit)
*/
@io.qt.QtUninvokable
public default boolean setPageMargins(io.qt.core.QMarginsF margins, io.qt.gui.QPageLayout.Unit units){
return Impl.setPageMargins_native_cref_QMarginsF_QPageLayout_Unit(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(margins), units.value());
}
/**
* See QPagedPaintDevice::setPageOrientation(QPageLayout::Orientation)
*/
@io.qt.QtUninvokable
public default boolean setPageOrientation(io.qt.gui.QPageLayout.Orientation orientation){
return Impl.setPageOrientation_native_QPageLayout_Orientation(QtJambi_LibraryUtilities.internal.nativeId(this), orientation.value());
}
/**
*
*/
@io.qt.QtUninvokable
public default void setPageRanges(io.qt.gui.QPageRanges ranges){
Impl.setPageRanges_native_cref_QPageRanges(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(ranges));
}
/**
*
*/
@io.qt.QtUninvokable
public default boolean setPageSize(io.qt.gui.QPageSize pageSize){
return Impl.setPageSize_native_cref_QPageSize(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pageSize));
}
}