io.qt.gui.rhi.QShaderKey Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui.rhi;
import io.qt.*;
/**
* Specifies the shading language, the version with flags, and the variant
* Java wrapper for Qt class QShaderKey
* This class was introduced in Qt 6.6.
*/
public class QShaderKey extends QtObject
implements java.lang.Comparable,
java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
*
*/
public QShaderKey(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QShaderKey instance);
/**
* See QShaderKey:: QShaderKey(QShader::Source, QShaderVersion, QShader::Variant)
*/
public QShaderKey(io.qt.gui.rhi.QShader.@NonNull Source s, io.qt.gui.rhi.@StrictNonNull QShaderVersion sver, io.qt.gui.rhi.QShader.@NonNull Variant svar){
super((QPrivateConstructor)null);
java.util.Objects.requireNonNull(sver, "Argument 'sver': null not expected.");
initialize_native(this, s, sver, svar);
}
private native static void initialize_native(QShaderKey instance, io.qt.gui.rhi.QShader.Source s, io.qt.gui.rhi.QShaderVersion sver, io.qt.gui.rhi.QShader.Variant svar);
/**
* See QShaderKey:: QShaderKey(QShaderKey)
*/
public QShaderKey(io.qt.gui.rhi.@StrictNonNull QShaderKey other){
super((QPrivateConstructor)null);
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
initialize_native(this, other);
}
private native static void initialize_native(QShaderKey instance, io.qt.gui.rhi.QShaderKey other);
/**
* See operator<(QShaderKey, QShaderKey)
*/
@QtUninvokable
private final boolean operator_less(io.qt.gui.rhi.@StrictNonNull QShaderKey rhs){
java.util.Objects.requireNonNull(rhs, "Argument 'rhs': null not expected.");
return operator_less_native_cref_QShaderKey(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rhs));
}
@QtUninvokable
private native boolean operator_less_native_cref_QShaderKey(long __this__nativeId, long rhs);
/**
* See operator==(QShaderKey, QShaderKey)
*/
@QtUninvokable
public final boolean equals(io.qt.gui.rhi.@StrictNonNull QShaderKey rhs){
java.util.Objects.requireNonNull(rhs, "Argument 'rhs': null not expected.");
return equals_native_cref_QShaderKey(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rhs));
}
@QtUninvokable
private native boolean equals_native_cref_QShaderKey(long __this__nativeId, long rhs);
/**
* See QShaderKey:: setSource(QShader::Source)
*/
@QtUninvokable
public final void setSource(io.qt.gui.rhi.QShader.@NonNull Source s){
setSource_native_QShader_Source(QtJambi_LibraryUtilities.internal.nativeId(this), s.value());
}
@QtUninvokable
private native void setSource_native_QShader_Source(long __this__nativeId, int s);
/**
* See QShaderKey:: setSourceVariant(QShader::Variant)
*/
@QtUninvokable
public final void setSourceVariant(io.qt.gui.rhi.QShader.@NonNull Variant svar){
setSourceVariant_native_QShader_Variant(QtJambi_LibraryUtilities.internal.nativeId(this), svar.value());
}
@QtUninvokable
private native void setSourceVariant_native_QShader_Variant(long __this__nativeId, int svar);
/**
* See QShaderKey:: setSourceVersion(QShaderVersion)
*/
@QtUninvokable
public final void setSourceVersion(io.qt.gui.rhi.@StrictNonNull QShaderVersion sver){
java.util.Objects.requireNonNull(sver, "Argument 'sver': null not expected.");
setSourceVersion_native_cref_QShaderVersion(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(sver));
}
@QtUninvokable
private native void setSourceVersion_native_cref_QShaderVersion(long __this__nativeId, long sver);
/**
*
*/
@QtUninvokable
public final io.qt.gui.rhi.QShader.@NonNull Source source(){
return io.qt.gui.rhi.QShader.Source.resolve(source_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int source_native_constfct(long __this__nativeId);
/**
* See QShaderKey:: sourceVariant()const
*/
@QtUninvokable
public final io.qt.gui.rhi.QShader.@NonNull Variant sourceVariant(){
return io.qt.gui.rhi.QShader.Variant.resolve(sourceVariant_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int sourceVariant_native_constfct(long __this__nativeId);
/**
* See QShaderKey:: sourceVersion()const
*/
@QtUninvokable
public final io.qt.gui.rhi.@NonNull QShaderVersion sourceVersion(){
return sourceVersion_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.rhi.QShaderVersion sourceVersion_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QShaderKey(QPrivateConstructor p) { super(p); }
/**
* See operator==(QShaderKey, QShaderKey)
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (other==null || other instanceof io.qt.gui.rhi.QShaderKey) {
return equals((io.qt.gui.rhi.QShaderKey) other);
}
return false;
}
/**
* See operator<(QShaderKey, QShaderKey)
*/
@QtUninvokable
public int compareTo(io.qt.gui.rhi.@StrictNonNull QShaderKey other) {
if (equals(other)) return 0;
else if (operator_less(other)) return -1;
else return 1;
}
/**
* Returns the objects's hash code computed by qHash(QShaderKey)
.
*/
@QtUninvokable
@Override
public int hashCode() {
return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native static int hashCode_native(long __this_nativeId);
/**
* See operator<<(QDebug, QShaderKey)
*/
@QtUninvokable
@Override
public @NonNull String toString() {
return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private static native String toString_native(long __this_nativeId);
/**
* Creates and returns a copy of this object.
See QShaderKey:: QShaderKey(QShaderKey)
*/
@QtUninvokable
@Override
public QShaderKey clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QShaderKey clone_native(long __this_nativeId);
/**
* Overloaded constructor for {@link #QShaderKey(io.qt.gui.rhi.QShader.Source, io.qt.gui.rhi.QShaderVersion, io.qt.gui.rhi.QShader.Variant)}
* with svar = io.qt.gui.rhi.QShader.Variant.StandardShader
.
*/
public QShaderKey(io.qt.gui.rhi.QShader.@NonNull Source s, io.qt.gui.rhi.@StrictNonNull QShaderVersion sver) {
this(s, sver, io.qt.gui.rhi.QShader.Variant.StandardShader);
}
/**
* Overloaded constructor for {@link #QShaderKey(io.qt.gui.rhi.QShader.Source, int, io.qt.gui.rhi.QShader.Variant)}
* with svar = io.qt.gui.rhi.QShader.Variant.StandardShader
.
*/
public QShaderKey(io.qt.gui.rhi.QShader.@NonNull Source s, int sver) {
this(s, sver, io.qt.gui.rhi.QShader.Variant.StandardShader);
}
/**
* Overloaded constructor for {@link #QShaderKey(io.qt.gui.rhi.QShader.Source, io.qt.gui.rhi.QShaderVersion, io.qt.gui.rhi.QShader.Variant)}.
*/
public QShaderKey(io.qt.gui.rhi.QShader.@NonNull Source s, int sver, io.qt.gui.rhi.QShader.@NonNull Variant svar) {
this(s, new io.qt.gui.rhi.QShaderVersion(sver), svar);
}
/**
* Overloaded function for {@link #setSourceVersion(io.qt.gui.rhi.QShaderVersion)}.
*/
@QtUninvokable
public final void setSourceVersion(int sver) {
setSourceVersion(new io.qt.gui.rhi.QShaderVersion(sver));
}
}