All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.gui.rhi.QRhiVertexInputBinding Maven / Gradle / Ivy

There is a newer version: 6.8.0
Show newest version
package io.qt.gui.rhi;

import io.qt.*;


/**
 * 

Describes a vertex input binding

*

Java wrapper for Qt class QRhiVertexInputBinding

*/ public class QRhiVertexInputBinding extends QtObject implements java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } /** *

Java wrapper for Qt enum QRhiVertexInputBinding::Classification

*/ public enum Classification implements QtEnumerator { /** *

Representing QRhiVertexInputBinding::PerVertex

*/ PerVertex(0), /** *

Representing QRhiVertexInputBinding::PerInstance

*/ PerInstance(1); static { QtJambi_LibraryUtilities.initialize(); } private Classification(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull Classification resolve(int value) { switch (value) { case 0: return PerVertex; case 1: return PerInstance; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See QRhiVertexInputBinding::QRhiVertexInputBinding()

*/ public QRhiVertexInputBinding(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(QRhiVertexInputBinding instance); /** *

See QRhiVertexInputBinding::QRhiVertexInputBinding(QRhiVertexInputBinding)

*/ public QRhiVertexInputBinding(io.qt.gui.rhi.@StrictNonNull QRhiVertexInputBinding other){ super((QPrivateConstructor)null); java.util.Objects.requireNonNull(other, "Argument 'other': null not expected."); initialize_native(this, other); } private native static void initialize_native(QRhiVertexInputBinding instance, io.qt.gui.rhi.QRhiVertexInputBinding other); /** *

See QRhiVertexInputBinding::QRhiVertexInputBinding(quint32,QRhiVertexInputBinding::Classification,quint32)

*/ public QRhiVertexInputBinding(int stride, io.qt.gui.rhi.QRhiVertexInputBinding.@NonNull Classification cls, int stepRate){ super((QPrivateConstructor)null); initialize_native(this, stride, cls, stepRate); } private native static void initialize_native(QRhiVertexInputBinding instance, int stride, io.qt.gui.rhi.QRhiVertexInputBinding.Classification cls, int stepRate); /** *

See QRhiVertexInputBinding::classification()const

*/ @QtUninvokable public final io.qt.gui.rhi.QRhiVertexInputBinding.@NonNull Classification classification(){ return io.qt.gui.rhi.QRhiVertexInputBinding.Classification.resolve(classification_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int classification_native_constfct(long __this__nativeId); /** *

See QRhiVertexInputBinding::instanceStepRate()const

*/ @QtUninvokable public final int instanceStepRate(){ return instanceStepRate_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int instanceStepRate_native_constfct(long __this__nativeId); /** *

See operator==(QRhiVertexInputBinding,QRhiVertexInputBinding)

*/ @QtUninvokable public final boolean equals(io.qt.gui.rhi.@StrictNonNull QRhiVertexInputBinding b){ java.util.Objects.requireNonNull(b, "Argument 'b': null not expected."); return equals_native_cref_QRhiVertexInputBinding(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(b)); } @QtUninvokable private native boolean equals_native_cref_QRhiVertexInputBinding(long __this__nativeId, long b); /** *

See QRhiVertexInputBinding::setClassification(QRhiVertexInputBinding::Classification)

*/ @QtUninvokable public final void setClassification(io.qt.gui.rhi.QRhiVertexInputBinding.@NonNull Classification c){ setClassification_native_QRhiVertexInputBinding_Classification(QtJambi_LibraryUtilities.internal.nativeId(this), c.value()); } @QtUninvokable private native void setClassification_native_QRhiVertexInputBinding_Classification(long __this__nativeId, int c); /** *

See QRhiVertexInputBinding::setInstanceStepRate(quint32)

*/ @QtUninvokable public final void setInstanceStepRate(int rate){ setInstanceStepRate_native_quint32(QtJambi_LibraryUtilities.internal.nativeId(this), rate); } @QtUninvokable private native void setInstanceStepRate_native_quint32(long __this__nativeId, int rate); /** *

See QRhiVertexInputBinding::setStride(quint32)

*/ @QtUninvokable public final void setStride(int s){ setStride_native_quint32(QtJambi_LibraryUtilities.internal.nativeId(this), s); } @QtUninvokable private native void setStride_native_quint32(long __this__nativeId, int s); /** *

See QRhiVertexInputBinding::stride()const

*/ @QtUninvokable public final int stride(){ return stride_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int stride_native_constfct(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QRhiVertexInputBinding(QPrivateConstructor p) { super(p); } /** *

See operator==(QRhiVertexInputBinding,QRhiVertexInputBinding)

*/ @Override @QtUninvokable public boolean equals(Object other) { if (other instanceof io.qt.gui.rhi.QRhiVertexInputBinding) { return equals((io.qt.gui.rhi.QRhiVertexInputBinding) other); } return false; } /** * Returns the objects's hash code computed by qHash(QRhiVertexInputBinding). */ @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,QRhiVertexInputBinding)

*/ @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 QRhiVertexInputBinding::QRhiVertexInputBinding(QRhiVertexInputBinding)

*/ @QtUninvokable @Override public QRhiVertexInputBinding clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private static native QRhiVertexInputBinding clone_native(long __this_nativeId); /** *

Overloaded constructor for {@link #QRhiVertexInputBinding(int, io.qt.gui.rhi.QRhiVertexInputBinding.Classification, int)} * with stepRate = 1.

*/ public QRhiVertexInputBinding(int stride, io.qt.gui.rhi.QRhiVertexInputBinding.@NonNull Classification cls) { this(stride, cls, (int)1); } /** *

Overloaded constructor for {@link #QRhiVertexInputBinding(int, io.qt.gui.rhi.QRhiVertexInputBinding.Classification, int)}

*

with:

    *
  • cls = io.qt.gui.rhi.QRhiVertexInputBinding.Classification.PerVertex
  • *
  • stepRate = 1
  • *
*/ public QRhiVertexInputBinding(int stride) { this(stride, io.qt.gui.rhi.QRhiVertexInputBinding.Classification.PerVertex, (int)1); } /** *

Overloaded function for {@link #equals(io.qt.gui.rhi.QRhiVertexInputBinding)}.

*/ @QtUninvokable public final boolean equals(int b) { return equals(new io.qt.gui.rhi.QRhiVertexInputBinding(b)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy