io.qt.gui.rhi.QShaderCode Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui.rhi;
import io.qt.*;
/**
* Contains source or binary code for a shader and additional metadata
* Java wrapper for Qt class QShaderCode
*/
public class QShaderCode extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QShaderCode:: QShaderCode()
*/
public QShaderCode(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QShaderCode instance);
/**
* See QShaderCode:: QShaderCode(QByteArray, QByteArray)
*/
public QShaderCode(io.qt.core.@NonNull QByteArray code, io.qt.core.@NonNull QByteArray entry){
super((QPrivateConstructor)null);
initialize_native(this, code, entry);
}
private native static void initialize_native(QShaderCode instance, io.qt.core.QByteArray code, io.qt.core.QByteArray entry);
/**
* See QShaderCode:: QShaderCode(QShaderCode)
*/
public QShaderCode(io.qt.gui.rhi.@StrictNonNull QShaderCode other){
super((QPrivateConstructor)null);
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
initialize_native(this, other);
}
private native static void initialize_native(QShaderCode instance, io.qt.gui.rhi.QShaderCode other);
/**
* See QShaderCode:: entryPoint()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QByteArray entryPoint(){
return entryPoint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QByteArray entryPoint_native_constfct(long __this__nativeId);
/**
* See operator==(QShaderCode, QShaderCode)
*/
@QtUninvokable
public final boolean equals(io.qt.gui.rhi.@StrictNonNull QShaderCode rhs){
java.util.Objects.requireNonNull(rhs, "Argument 'rhs': null not expected.");
return equals_native_cref_QShaderCode(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rhs));
}
@QtUninvokable
private native boolean equals_native_cref_QShaderCode(long __this__nativeId, long rhs);
/**
* See QShaderCode:: setEntryPoint(QByteArray)
*/
@QtUninvokable
public final void setEntryPoint(io.qt.core.@NonNull QByteArray entry){
setEntryPoint_native_cref_QByteArray(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(entry));
}
@QtUninvokable
private native void setEntryPoint_native_cref_QByteArray(long __this__nativeId, long entry);
/**
* See QShaderCode:: setShader(QByteArray)
*/
@QtUninvokable
public final void setShader(io.qt.core.@NonNull QByteArray code){
setShader_native_cref_QByteArray(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(code));
}
@QtUninvokable
private native void setShader_native_cref_QByteArray(long __this__nativeId, long code);
/**
* See QShaderCode:: shader()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QByteArray shader(){
return shader_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QByteArray shader_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QShaderCode(QPrivateConstructor p) { super(p); }
/**
* See operator==(QShaderCode, QShaderCode)
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (other instanceof io.qt.gui.rhi.QShaderCode) {
return equals((io.qt.gui.rhi.QShaderCode) other);
}
return false;
}
/**
* Returns the objects's hash code computed by qHash(QShaderCode)
.
*/
@QtUninvokable
@Override
public int hashCode() {
return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native static int hashCode_native(long __this_nativeId);
/**
* Creates and returns a copy of this object.
See QShaderCode:: QShaderCode(QShaderCode)
*/
@QtUninvokable
@Override
public QShaderCode clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QShaderCode clone_native(long __this_nativeId);
/**
* Overloaded constructor for {@link #QShaderCode(io.qt.core.QByteArray, io.qt.core.QByteArray)}
* with entry = new io.qt.core.QByteArray()
.
*/
public QShaderCode(io.qt.core.@NonNull QByteArray code) {
this(code, new io.qt.core.QByteArray());
}
/**
* Overloaded constructor for {@link #QShaderCode(byte[], io.qt.core.QByteArray)}
* with entry = new io.qt.core.QByteArray()
.
*/
public QShaderCode(byte @NonNull[] code) {
this(code, new io.qt.core.QByteArray());
}
/**
* Overloaded constructor for {@link #QShaderCode(io.qt.core.QByteArray, io.qt.core.QByteArray)}.
*/
public QShaderCode(byte @NonNull[] code, io.qt.core.@NonNull QByteArray entry) {
this(new io.qt.core.QByteArray(code), entry);
}
/**
* Overloaded constructor for {@link #QShaderCode(io.qt.core.QByteArray, io.qt.core.QByteArray)}.
*/
public QShaderCode(io.qt.core.@NonNull QByteArray code, byte @NonNull[] entry) {
this(code, new io.qt.core.QByteArray(entry));
}
/**
* Overloaded constructor for {@link #QShaderCode(io.qt.core.QByteArray, io.qt.core.QByteArray)}.
*/
public QShaderCode(byte @NonNull[] code, byte @NonNull[] entry) {
this(new io.qt.core.QByteArray(code), new io.qt.core.QByteArray(entry));
}
/**
* Overloaded function for {@link #equals(io.qt.gui.rhi.QShaderCode)}.
*/
@QtUninvokable
public final boolean equals(io.qt.core.@NonNull QByteArray rhs) {
return equals(new io.qt.gui.rhi.QShaderCode(rhs));
}
/**
* Overloaded function for {@link #setEntryPoint(io.qt.core.QByteArray)}.
*/
@QtUninvokable
public final void setEntryPoint(byte @NonNull[] entry) {
setEntryPoint(new io.qt.core.QByteArray(entry));
}
/**
* Overloaded function for {@link #setShader(io.qt.core.QByteArray)}.
*/
@QtUninvokable
public final void setShader(byte @NonNull[] code) {
setShader(new io.qt.core.QByteArray(code));
}
}