io.qt.gui.rhi.QRhiTextureUploadEntry Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui.rhi;
import io.qt.*;
/**
* Describes one layer (face for cubemaps, slice for 3D textures, element for texture arrays) in a texture upload operation
* Java wrapper for Qt class QRhiTextureUploadEntry
*/
public class QRhiTextureUploadEntry extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QRhiTextureUploadEntry:: QRhiTextureUploadEntry()
*/
public QRhiTextureUploadEntry(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QRhiTextureUploadEntry instance);
/**
* See QRhiTextureUploadEntry:: QRhiTextureUploadEntry(QRhiTextureUploadEntry)
*/
public QRhiTextureUploadEntry(io.qt.gui.rhi.@StrictNonNull QRhiTextureUploadEntry other){
super((QPrivateConstructor)null);
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
initialize_native(this, other);
}
private native static void initialize_native(QRhiTextureUploadEntry instance, io.qt.gui.rhi.QRhiTextureUploadEntry other);
/**
* See QRhiTextureUploadEntry:: QRhiTextureUploadEntry(int, int, QRhiTextureSubresourceUploadDescription)
*/
public QRhiTextureUploadEntry(int layer, int level, io.qt.gui.rhi.@StrictNonNull QRhiTextureSubresourceUploadDescription desc){
super((QPrivateConstructor)null);
java.util.Objects.requireNonNull(desc, "Argument 'desc': null not expected.");
initialize_native(this, layer, level, desc);
}
private native static void initialize_native(QRhiTextureUploadEntry instance, int layer, int level, io.qt.gui.rhi.QRhiTextureSubresourceUploadDescription desc);
/**
* See QRhiTextureUploadEntry:: description()const
*/
@QtUninvokable
public final io.qt.gui.rhi.@NonNull QRhiTextureSubresourceUploadDescription description(){
return description_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.rhi.QRhiTextureSubresourceUploadDescription description_native_constfct(long __this__nativeId);
/**
* See QRhiTextureUploadEntry:: layer()const
*/
@QtUninvokable
public final int layer(){
return layer_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int layer_native_constfct(long __this__nativeId);
/**
* See QRhiTextureUploadEntry:: level()const
*/
@QtUninvokable
public final int level(){
return level_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int level_native_constfct(long __this__nativeId);
/**
* See QRhiTextureUploadEntry:: setDescription(QRhiTextureSubresourceUploadDescription)
*/
@QtUninvokable
public final void setDescription(io.qt.gui.rhi.@StrictNonNull QRhiTextureSubresourceUploadDescription desc){
java.util.Objects.requireNonNull(desc, "Argument 'desc': null not expected.");
setDescription_native_cref_QRhiTextureSubresourceUploadDescription(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(desc));
}
@QtUninvokable
private native void setDescription_native_cref_QRhiTextureSubresourceUploadDescription(long __this__nativeId, long desc);
/**
* See QRhiTextureUploadEntry:: setLayer(int)
*/
@QtUninvokable
public final void setLayer(int layer){
setLayer_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), layer);
}
@QtUninvokable
private native void setLayer_native_int(long __this__nativeId, int layer);
/**
* See QRhiTextureUploadEntry:: setLevel(int)
*/
@QtUninvokable
public final void setLevel(int level){
setLevel_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), level);
}
@QtUninvokable
private native void setLevel_native_int(long __this__nativeId, int level);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QRhiTextureUploadEntry(QPrivateConstructor p) { super(p); }
/**
* Creates and returns a copy of this object.
See QRhiTextureUploadEntry:: QRhiTextureUploadEntry(QRhiTextureUploadEntry)
*/
@QtUninvokable
@Override
public QRhiTextureUploadEntry clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QRhiTextureUploadEntry clone_native(long __this_nativeId);
}