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

io.qt.gui.QPicture Maven / Gradle / Ivy

The newest version!
package io.qt.gui;


/**
 * 

Paint device that records and replays QPainter commands

*

Java wrapper for Qt class QPicture

*/ public class QPicture extends io.qt.QtObject implements io.qt.gui.QPaintDevice, java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } /** *

See QPicture::QPicture(QPicture)

*/ public QPicture(io.qt.gui.QPicture arg__1){ super((QPrivateConstructor)null); initialize_native(this, arg__1); } private native static void initialize_native(QPicture instance, io.qt.gui.QPicture arg__1); /** *

Overloaded constructor for {@link #QPicture(int)} * with formatVersion = -1.

*/ public QPicture() { this((int)-1); } /** *

See QPicture::QPicture(int)

*/ public QPicture(int formatVersion){ super((QPrivateConstructor)null); initialize_native(this, formatVersion); } private native static void initialize_native(QPicture instance, int formatVersion); /** *

See QPicture::boundingRect()const

*/ @io.qt.QtUninvokable public final io.qt.core.QRect boundingRect(){ return boundingRect_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QRect boundingRect_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 QPicture::data()const

*/ @io.qt.QtUninvokable public final byte[] data(){ return data_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native byte[] data_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); @io.qt.QtUninvokable public final void detach(){ detach_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native void detach_native(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); @io.qt.QtUninvokable public final boolean isDetached(){ return isDetached_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isDetached_native_constfct(long __this__nativeId); /** *

See QPicture::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 QPicture::load(QIODevice*)

*/ @io.qt.QtUninvokable public final boolean load(io.qt.core.QIODevice dev){ return load_native_QIODevice_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(dev)); } @io.qt.QtUninvokable private native boolean load_native_QIODevice_ptr(long __this__nativeId, long dev); /** *

See QPicture::load(QString)

*/ @io.qt.QtUninvokable public final boolean load(java.lang.String fileName){ return load_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), fileName); } @io.qt.QtUninvokable private native boolean load_native_cref_QString(long __this__nativeId, java.lang.String fileName); /** *

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); @io.qt.QtUninvokable public void writeTo(io.qt.core.QDataStream arg__1){ java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected."); writeTo_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @io.qt.QtUninvokable private native void writeTo_native_ref_QDataStream(long __this__nativeId, long arg__1); @io.qt.QtUninvokable public void readFrom(io.qt.core.QDataStream arg__1){ java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected."); readFrom_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @io.qt.QtUninvokable private native void readFrom_native_ref_QDataStream(long __this__nativeId, long arg__1); /** *

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 QPicture::play(QPainter*)

*/ @io.qt.QtUninvokable public final boolean play(io.qt.gui.QPainter p){ return play_native_QPainter_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(p)); } @io.qt.QtUninvokable private native boolean play_native_QPainter_ptr(long __this__nativeId, long p); /** *

See QPicture::save(QIODevice*)

*/ @io.qt.QtUninvokable public final boolean save(io.qt.core.QIODevice dev){ return save_native_QIODevice_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(dev)); } @io.qt.QtUninvokable private native boolean save_native_QIODevice_ptr(long __this__nativeId, long dev); /** *

See QPicture::save(QString)

*/ @io.qt.QtUninvokable public final boolean save(java.lang.String fileName){ return save_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), fileName); } @io.qt.QtUninvokable private native boolean save_native_cref_QString(long __this__nativeId, java.lang.String fileName); /** *

See QPicture::setBoundingRect(QRect)

*/ @io.qt.QtUninvokable public final void setBoundingRect(io.qt.core.QRect r){ setBoundingRect_native_cref_QRect(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(r)); } @io.qt.QtUninvokable private native void setBoundingRect_native_cref_QRect(long __this__nativeId, long r); /** *

See QPicture::size()const

*/ @io.qt.QtUninvokable public final int size(){ return size_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int size_native_constfct(long __this__nativeId); /** *

See QPicture::swap(QPicture&)

*/ @io.qt.QtUninvokable public final void swap(io.qt.gui.QPicture other){ java.util.Objects.requireNonNull(other, "Argument 'other': null not expected."); swap_native_ref_QPicture(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @io.qt.QtUninvokable private native void swap_native_ref_QPicture(long __this__nativeId, long other); /** *

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 m){ return metric_native_QPaintDevice_PaintDeviceMetric_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), m.value()); } private native static int metric_native_QPaintDevice_PaintDeviceMetric_constfct(long __this__nativeId, int m); /** *

See QPaintDevice::paintEngine()const

*/ @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); @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 QPicture::setData(const char*,uint)

*/ @io.qt.QtUninvokable public void setData(byte[] data){ setData_native_const_char_ptr_uint(QtJambi_LibraryUtilities.internal.nativeId(this), data); } @io.qt.QtUninvokable private native void setData_native_const_char_ptr_uint(long __this__nativeId, byte[] data); @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); public native static double devicePixelRatioFScale(); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QPicture(QPrivateConstructor p) { super(p); } @Override public QPicture clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native QPicture clone_native(long __this_nativeId); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy