io.qt.gui.rhi.QRhiReadbackResult Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui.rhi;
import io.qt.*;
/**
* Describes the results of a potentially asynchronous buffer or texture readback operation
* Java wrapper for Qt class QRhiReadbackResult
*/
public class QRhiReadbackResult extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Java wrapper for Qt callable std::function<void()>
*/
@FunctionalInterface
public interface CompletedFunction extends QtObjectInterface, java.lang.Runnable {
/**
* @hidden
* Implementor class for interface {@link CompletedFunction}
*/
public static abstract class Impl extends QtObject implements CompletedFunction{
static {
QtJambi_LibraryUtilities.initialize();
}
public Impl(){
super((QPrivateConstructor)null);
initialize_native(this);
}
protected Impl(QPrivateConstructor p){
super(p);
}
private static native void initialize_native(CompletedFunction instance);
@NativeAccess
private final static class ConcreteWrapper extends Impl {
private ConcreteWrapper(QPrivateConstructor c){
super(c);
}
@Override
public native void run();
}
}
}
/**
* See QRhiReadbackResult:: QRhiReadbackResult()
*/
public QRhiReadbackResult(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QRhiReadbackResult instance);
/**
* See QRhiReadbackResult:: QRhiReadbackResult(QRhiReadbackResult)
*/
public QRhiReadbackResult(io.qt.gui.rhi.@StrictNonNull QRhiReadbackResult other){
super((QPrivateConstructor)null);
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
initialize_native(this, other);
}
private native static void initialize_native(QRhiReadbackResult instance, io.qt.gui.rhi.QRhiReadbackResult other);
/**
* See QRhiReadbackResult:: QRhiReadbackResult{std::function<void{}>, QRhiTexture::Format, QSize, QByteArray}
*/
public QRhiReadbackResult(io.qt.gui.rhi.QRhiReadbackResult.@Nullable CompletedFunction completed, io.qt.gui.rhi.QRhiTexture.@NonNull Format format, io.qt.core.@NonNull QSize pixelSize, io.qt.core.@NonNull QByteArray data){
super((QPrivateConstructor)null);
initialize_native(this, completed, format, pixelSize, data);
}
private native static void initialize_native(QRhiReadbackResult instance, io.qt.gui.rhi.QRhiReadbackResult.CompletedFunction completed, io.qt.gui.rhi.QRhiTexture.Format format, io.qt.core.QSize pixelSize, io.qt.core.QByteArray data);
/**
* See QRhiReadbackResult:: completed
*/
@QtUninvokable
public final void setCompleted(io.qt.gui.rhi.QRhiReadbackResult.@Nullable CompletedFunction completed){
setCompleted_native_cref_QRhiReadbackResult_CompletedFunction(QtJambi_LibraryUtilities.internal.nativeId(this), completed);
}
@QtUninvokable
private native void setCompleted_native_cref_QRhiReadbackResult_CompletedFunction(long __this__nativeId, io.qt.gui.rhi.QRhiReadbackResult.CompletedFunction completed);
/**
* See QRhiReadbackResult:: completed
*/
@QtUninvokable
public final io.qt.gui.rhi.QRhiReadbackResult.@Nullable CompletedFunction completed(){
return completed_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.rhi.QRhiReadbackResult.CompletedFunction completed_native(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final void setData(io.qt.core.@NonNull QByteArray data){
setData_native_cref_QByteArray(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(data));
}
@QtUninvokable
private native void setData_native_cref_QByteArray(long __this__nativeId, long data);
/**
*
*/
@QtUninvokable
public final io.qt.core.@NonNull QByteArray data(){
return data_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QByteArray data_native(long __this__nativeId);
/**
* See QRhiReadbackResult:: format
*/
@QtUninvokable
public final void setFormat(io.qt.gui.rhi.QRhiTexture.@NonNull Format format){
setFormat_native_cref_QRhiTexture_Format(QtJambi_LibraryUtilities.internal.nativeId(this), format.value());
}
@QtUninvokable
private native void setFormat_native_cref_QRhiTexture_Format(long __this__nativeId, int format);
/**
* See QRhiReadbackResult:: format
*/
@QtUninvokable
public final io.qt.gui.rhi.QRhiTexture.@NonNull Format format(){
return io.qt.gui.rhi.QRhiTexture.Format.resolve(format_native(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int format_native(long __this__nativeId);
/**
* See QRhiReadbackResult:: pixelSize
*/
@QtUninvokable
public final void setPixelSize(io.qt.core.@NonNull QSize pixelSize){
setPixelSize_native_cref_QSize(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pixelSize));
}
@QtUninvokable
private native void setPixelSize_native_cref_QSize(long __this__nativeId, long pixelSize);
/**
* See QRhiReadbackResult:: pixelSize
*/
@QtUninvokable
public final io.qt.core.@NonNull QSize pixelSize(){
return pixelSize_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QSize pixelSize_native(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QRhiReadbackResult(QPrivateConstructor p) { super(p); }
/**
* Creates and returns a copy of this object.
See QRhiReadbackResult:: QRhiReadbackResult(QRhiReadbackResult)
*/
@QtUninvokable
@Override
public QRhiReadbackResult clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QRhiReadbackResult clone_native(long __this_nativeId);
/**
* Overloaded constructor for {@link #QRhiReadbackResult(io.qt.gui.rhi.QRhiReadbackResult.CompletedFunction, io.qt.gui.rhi.QRhiTexture.Format, io.qt.core.QSize, io.qt.core.QByteArray)}.
*/
public QRhiReadbackResult(io.qt.gui.rhi.QRhiReadbackResult.@Nullable CompletedFunction completed, io.qt.gui.rhi.QRhiTexture.@NonNull Format format, io.qt.core.@NonNull QSize pixelSize, byte @NonNull[] data) {
this(completed, format, pixelSize, new io.qt.core.QByteArray(data));
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #completed()} instead.
*/
@QtUninvokable
public final io.qt.gui.rhi.QRhiReadbackResult.@Nullable CompletedFunction getCompleted() {
return completed();
}
/**
* Overloaded function for {@link #setData(io.qt.core.QByteArray)}.
*/
@QtUninvokable
public final void setData(byte @NonNull[] data) {
setData(new io.qt.core.QByteArray(data));
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #data()} instead.
*/
@QtUninvokable
public final io.qt.core.@NonNull QByteArray getData() {
return data();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #format()} instead.
*/
@QtUninvokable
public final io.qt.gui.rhi.QRhiTexture.@NonNull Format getFormat() {
return format();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #pixelSize()} instead.
*/
@QtUninvokable
public final io.qt.core.@NonNull QSize getPixelSize() {
return pixelSize();
}
}