io.qt.gui.rhi.QRhiTextureSubresourceUploadDescription Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui.rhi;
import io.qt.*;
/**
* Describes the source for one mip level in a layer in a texture upload operation
* Java wrapper for Qt class QRhiTextureSubresourceUploadDescription
*/
public class QRhiTextureSubresourceUploadDescription extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QRhiTextureSubresourceUploadDescription:: QRhiTextureSubresourceUploadDescription()
*/
public QRhiTextureSubresourceUploadDescription(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QRhiTextureSubresourceUploadDescription instance);
/**
* See QRhiTextureSubresourceUploadDescription:: QRhiTextureSubresourceUploadDescription(QByteArray)
*/
public QRhiTextureSubresourceUploadDescription(io.qt.core.@NonNull QByteArray data){
super((QPrivateConstructor)null);
initialize_native(this, data);
}
private native static void initialize_native(QRhiTextureSubresourceUploadDescription instance, io.qt.core.QByteArray data);
/**
* See QRhiTextureSubresourceUploadDescription:: QRhiTextureSubresourceUploadDescription(QImage)
*/
public QRhiTextureSubresourceUploadDescription(io.qt.gui.@NonNull QImage image){
super((QPrivateConstructor)null);
initialize_native(this, image);
}
private native static void initialize_native(QRhiTextureSubresourceUploadDescription instance, io.qt.gui.QImage image);
/**
* See QRhiTextureSubresourceUploadDescription:: QRhiTextureSubresourceUploadDescription(QRhiTextureSubresourceUploadDescription)
*/
public QRhiTextureSubresourceUploadDescription(io.qt.gui.rhi.@StrictNonNull QRhiTextureSubresourceUploadDescription other){
super((QPrivateConstructor)null);
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
initialize_native(this, other);
}
private native static void initialize_native(QRhiTextureSubresourceUploadDescription instance, io.qt.gui.rhi.QRhiTextureSubresourceUploadDescription other);
/**
*
*/
public QRhiTextureSubresourceUploadDescription(java.nio.@Nullable Buffer data){
super((QPrivateConstructor)null);
initialize_native(this, data);
}
private native static void initialize_native(QRhiTextureSubresourceUploadDescription instance, java.nio.Buffer data);
/**
* See QRhiTextureSubresourceUploadDescription:: data()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QByteArray data(){
return data_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QByteArray data_native_constfct(long __this__nativeId);
/**
* See QRhiTextureSubresourceUploadDescription:: dataStride()const
*/
@QtUninvokable
public final int dataStride(){
return dataStride_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int dataStride_native_constfct(long __this__nativeId);
/**
* See QRhiTextureSubresourceUploadDescription:: destinationTopLeft()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QPoint destinationTopLeft(){
return destinationTopLeft_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QPoint destinationTopLeft_native_constfct(long __this__nativeId);
/**
* See QRhiTextureSubresourceUploadDescription:: image()const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QImage image(){
return image_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QImage image_native_constfct(long __this__nativeId);
/**
* See QRhiTextureSubresourceUploadDescription:: setData(QByteArray)
*/
@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);
/**
* See QRhiTextureSubresourceUploadDescription:: setDataStride(quint32)
*/
@QtUninvokable
public final void setDataStride(int stride){
setDataStride_native_quint32(QtJambi_LibraryUtilities.internal.nativeId(this), stride);
}
@QtUninvokable
private native void setDataStride_native_quint32(long __this__nativeId, int stride);
/**
* See QRhiTextureSubresourceUploadDescription:: setDestinationTopLeft(QPoint)
*/
@QtUninvokable
public final void setDestinationTopLeft(io.qt.core.@NonNull QPoint p){
setDestinationTopLeft_native_cref_QPoint(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(p));
}
@QtUninvokable
private native void setDestinationTopLeft_native_cref_QPoint(long __this__nativeId, long p);
/**
* See QRhiTextureSubresourceUploadDescription:: setImage(QImage)
*/
@QtUninvokable
public final void setImage(io.qt.gui.@NonNull QImage image){
setImage_native_cref_QImage(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(image));
}
@QtUninvokable
private native void setImage_native_cref_QImage(long __this__nativeId, long image);
/**
* See QRhiTextureSubresourceUploadDescription:: setSourceSize(QSize)
*/
@QtUninvokable
public final void setSourceSize(io.qt.core.@NonNull QSize size){
setSourceSize_native_cref_QSize(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(size));
}
@QtUninvokable
private native void setSourceSize_native_cref_QSize(long __this__nativeId, long size);
/**
* See QRhiTextureSubresourceUploadDescription:: setSourceTopLeft(QPoint)
*/
@QtUninvokable
public final void setSourceTopLeft(io.qt.core.@NonNull QPoint p){
setSourceTopLeft_native_cref_QPoint(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(p));
}
@QtUninvokable
private native void setSourceTopLeft_native_cref_QPoint(long __this__nativeId, long p);
/**
* See QRhiTextureSubresourceUploadDescription:: sourceSize()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QSize sourceSize(){
return sourceSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QSize sourceSize_native_constfct(long __this__nativeId);
/**
* See QRhiTextureSubresourceUploadDescription:: sourceTopLeft()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QPoint sourceTopLeft(){
return sourceTopLeft_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QPoint sourceTopLeft_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QRhiTextureSubresourceUploadDescription(QPrivateConstructor p) { super(p); }
/**
* Creates and returns a copy of this object.
See QRhiTextureSubresourceUploadDescription:: QRhiTextureSubresourceUploadDescription(QRhiTextureSubresourceUploadDescription)
*/
@QtUninvokable
@Override
public QRhiTextureSubresourceUploadDescription clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QRhiTextureSubresourceUploadDescription clone_native(long __this_nativeId);
/**
* Overloaded constructor for {@link #QRhiTextureSubresourceUploadDescription(io.qt.core.QByteArray)}.
*/
public QRhiTextureSubresourceUploadDescription(byte @NonNull[] data) {
this(new io.qt.core.QByteArray(data));
}
/**
* Overloaded function for {@link #setData(io.qt.core.QByteArray)}.
*/
@QtUninvokable
public final void setData(byte @NonNull[] data) {
setData(new io.qt.core.QByteArray(data));
}
}