io.qt.gui.QPicture Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui;
import io.qt.*;
/**
* Paint device that records and replays QPainter commands
* Java wrapper for Qt class QPicture
*/
public class QPicture extends QtObject
implements io.qt.gui.QPaintDevice,
java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QPicture:: QPicture(QPicture)
*/
public QPicture(io.qt.gui.@NonNull 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);
/**
*
*/
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
*/
@QtUninvokable
public final io.qt.core.@NonNull QRect boundingRect(){
return boundingRect_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QRect boundingRect_native_constfct(long __this__nativeId);
/**
* See QPaintDevice:: colorCount()const
*/
@QtUninvokable
public final int colorCount(){
return colorCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static int colorCount_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final byte[] data(){
return data_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native byte[] data_native_constfct(long __this__nativeId);
/**
* See QPaintDevice:: depth()const
*/
@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 QPicture:: detach()
*/
@QtUninvokable
public final void detach(){
detach_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void detach_native(long __this__nativeId);
/**
* See QPaintDevice:: devicePixelRatio()const
*/
@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
*/
@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
*/
@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
*/
@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 QPicture:: isDetached()const
*/
@QtUninvokable
public final boolean isDetached(){
return isDetached_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isDetached_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final boolean isNull(){
return isNull_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isNull_native_constfct(long __this__nativeId);
/**
* See QPicture:: load(QIODevice*)
*/
@QtUninvokable
public final boolean load(io.qt.core.@Nullable QIODevice dev){
return load_native_QIODevice_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(dev));
}
@QtUninvokable
private native boolean load_native_QIODevice_ptr(long __this__nativeId, long dev);
/**
*
*/
@QtUninvokable
public final boolean load(java.lang.@NonNull String fileName){
return load_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), fileName);
}
@QtUninvokable
private native boolean load_native_cref_QString(long __this__nativeId, java.lang.String fileName);
/**
* See QPaintDevice:: logicalDpiX()const
*/
@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
*/
@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 operator<<(QDataStream&, QPicture)
*/
@QtUninvokable
public void writeTo(io.qt.core.@StrictNonNull QDataStream in){
java.util.Objects.requireNonNull(in, "Argument 'in': null not expected.");
writeTo_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(in));
}
@QtUninvokable
private native void writeTo_native_ref_QDataStream(long __this__nativeId, long in);
/**
* See QPicture:: operator=(QPicture)
*/
@QtUninvokable
public final void assign(io.qt.gui.@NonNull QPicture p){
assign_native_cref_QPicture(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(p));
}
@QtUninvokable
private native void assign_native_cref_QPicture(long __this__nativeId, long p);
/**
* See operator>>(QDataStream&, QPicture&)
*/
@QtUninvokable
public void readFrom(io.qt.core.@StrictNonNull QDataStream in){
java.util.Objects.requireNonNull(in, "Argument 'in': null not expected.");
readFrom_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(in));
}
@QtUninvokable
private native void readFrom_native_ref_QDataStream(long __this__nativeId, long in);
/**
* See QPaintDevice:: paintingActive()const
*/
@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
*/
@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
*/
@QtUninvokable
public final int physicalDpiY(){
return physicalDpiY_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static int physicalDpiY_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final boolean play(io.qt.gui.@Nullable QPainter p){
return play_native_QPainter_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(p));
}
@QtUninvokable
private native boolean play_native_QPainter_ptr(long __this__nativeId, long p);
/**
* See QPicture:: save(QIODevice*)
*/
@QtUninvokable
public final boolean save(io.qt.core.@Nullable QIODevice dev){
return save_native_QIODevice_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(dev));
}
@QtUninvokable
private native boolean save_native_QIODevice_ptr(long __this__nativeId, long dev);
/**
*
*/
@QtUninvokable
public final boolean save(java.lang.@NonNull String fileName){
return save_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), fileName);
}
@QtUninvokable
private native boolean save_native_cref_QString(long __this__nativeId, java.lang.String fileName);
/**
* See QPicture:: setBoundingRect(QRect)
*/
@QtUninvokable
public final void setBoundingRect(io.qt.core.@NonNull QRect r){
setBoundingRect_native_cref_QRect(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(r));
}
@QtUninvokable
private native void setBoundingRect_native_cref_QRect(long __this__nativeId, long r);
/**
*
*/
@QtUninvokable
public final int size(){
return size_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int size_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final void swap(io.qt.gui.@StrictNonNull 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));
}
@QtUninvokable
private native void swap_native_ref_QPicture(long __this__nativeId, long other);
/**
* See QPaintDevice:: width()const
*/
@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
*/
@QtUninvokable
public final int widthMM(){
return widthMM_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static int widthMM_native_constfct(long __this__nativeId);
/**
* See QPaintDevice:: initPainter(QPainter*)const
*/
@QtUninvokable
protected void initPainter(io.qt.gui.@Nullable 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
*/
@QtUninvokable
protected int metric(io.qt.gui.QPaintDevice.@NonNull 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
*/
@QtUninvokable
@Override
public io.qt.gui.@Nullable 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:: redirected(QPoint*)const
*/
@QtUninvokable
protected io.qt.gui.@Nullable QPaintDevice redirected(io.qt.core.@Nullable QPoint offset){
return redirected_native_QPoint_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(offset));
}
private native static io.qt.gui.QPaintDevice redirected_native_QPoint_ptr_constfct(long __this__nativeId, long offset);
/**
* See QPicture:: setData(const char*, uint)
*/
@QtUninvokable
public void setData(java.nio.@Nullable ByteBuffer data){
setData_native_const_char_ptr_uint(QtJambi_LibraryUtilities.internal.nativeId(this), data);
}
@QtUninvokable
private native void setData_native_const_char_ptr_uint(long __this__nativeId, java.nio.ByteBuffer data);
/**
* See QPaintDevice:: sharedPainter()const
*/
@QtUninvokable
protected io.qt.gui.@Nullable QPainter sharedPainter(){
return sharedPainter_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static io.qt.gui.QPainter sharedPainter_native_constfct(long __this__nativeId);
/**
* See QPaintDevice:: devicePixelRatioFScale()
*/
public native static double devicePixelRatioFScale();
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QPicture(QPrivateConstructor p) { super(p); }
/**
* Creates and returns a copy of this object.
See QPicture:: QPicture(QPicture)
*/
@QtUninvokable
@Override
public QPicture clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QPicture clone_native(long __this_nativeId);
/**
* Overloaded constructor for {@link #QPicture(int)}
* with formatVersion = -1
.
*/
public QPicture() {
this((int)-1);
}
/**
* Overloaded function for {@link #setData(java.nio.ByteBuffer)}.
*/
@QtUninvokable
public final void setData(byte[] data, int offsetOfData, int size) {
setData(data==null ? null : java.nio.ByteBuffer.wrap(data, offsetOfData, size));
}
/**
* Overloaded function for {@link #setData(java.nio.ByteBuffer)}.
*/
@QtUninvokable
public final void setData(byte[] data) {
setData(data==null ? null : java.nio.ByteBuffer.wrap(data));
}
}