io.qt.qt3d.render.QBlendEquationArguments Maven / Gradle / Ivy
package io.qt.qt3d.render;
import io.qt.*;
/**
* Encapsulates blending information: specifies how the incoming values (what's going to be drawn) are going to affect the existing values (what is already drawn)
* Java wrapper for Qt class Qt3DRender::QBlendEquationArguments
*/
public class QBlendEquationArguments extends io.qt.qt3d.render.QRenderState
{
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QBlendEquationArguments.class);
/**
* Java wrapper for Qt enum Qt3DRender::QBlendEquationArguments::Blending
*/
@QtRejectedEntries({"Source1Alpha", "Source1Color", "OneMinusSource1Color0"})
public enum Blending implements QtEnumerator {
/**
* Representing Qt3DRender:: QBlendEquationArguments:: Zero
*/
Zero(0),
/**
* Representing Qt3DRender:: QBlendEquationArguments:: One
*/
One(1),
/**
* Representing Qt3DRender:: QBlendEquationArguments:: SourceColor
*/
SourceColor(768),
/**
* Representing Qt3DRender:: QBlendEquationArguments:: SourceAlpha
*/
SourceAlpha(770),
/**
* Representing Qt3DRender:: QBlendEquationArguments:: Source1Alpha
*/
Source1Alpha(771),
/**
* Representing Qt3DRender:: QBlendEquationArguments:: Source1Color
*/
Source1Color(772),
/**
* Representing Qt3DRender:: QBlendEquationArguments:: DestinationColor
*/
DestinationColor(774),
/**
* Representing Qt3DRender:: QBlendEquationArguments:: DestinationAlpha
*/
DestinationAlpha(772),
/**
* Representing Qt3DRender:: QBlendEquationArguments:: SourceAlphaSaturate
*/
SourceAlphaSaturate(776),
/**
* Representing Qt3DRender:: QBlendEquationArguments:: ConstantColor
*/
ConstantColor(32769),
/**
* Representing Qt3DRender:: QBlendEquationArguments:: ConstantAlpha
*/
ConstantAlpha(32771),
/**
* Representing Qt3DRender:: QBlendEquationArguments:: OneMinusSourceColor
*/
OneMinusSourceColor(769),
/**
* Representing Qt3DRender:: QBlendEquationArguments:: OneMinusSourceAlpha
*/
OneMinusSourceAlpha(771),
/**
* Representing Qt3DRender:: QBlendEquationArguments:: OneMinusDestinationAlpha
*/
OneMinusDestinationAlpha(773),
/**
* Representing Qt3DRender:: QBlendEquationArguments:: OneMinusDestinationColor
*/
OneMinusDestinationColor(775),
/**
* Representing Qt3DRender:: QBlendEquationArguments:: OneMinusConstantColor
*/
OneMinusConstantColor(32770),
/**
* Representing Qt3DRender:: QBlendEquationArguments:: OneMinusConstantAlpha
*/
OneMinusConstantAlpha(32772),
/**
* Representing Qt3DRender:: QBlendEquationArguments:: OneMinusSource1Alpha
*/
OneMinusSource1Alpha(32773),
/**
* Representing Qt3DRender:: QBlendEquationArguments:: OneMinusSource1Color
*/
OneMinusSource1Color(32774),
/**
* Representing Qt3DRender:: QBlendEquationArguments:: OneMinusSource1Color0
*/
OneMinusSource1Color0(32774);
static {
QtJambi_LibraryUtilities.initialize();
}
private Blending(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull Blending resolve(int value) {
switch (value) {
case 0: return Zero;
case 1: return One;
case 768: return SourceColor;
case 770: return SourceAlpha;
case 774: return DestinationColor;
case 772: return DestinationAlpha;
case 776: return SourceAlphaSaturate;
case 32769: return ConstantColor;
case 32771: return ConstantAlpha;
case 769: return OneMinusSourceColor;
case 771: return OneMinusSourceAlpha;
case 773: return OneMinusDestinationAlpha;
case 775: return OneMinusDestinationColor;
case 32770: return OneMinusConstantColor;
case 32772: return OneMinusConstantAlpha;
case 32773: return OneMinusSource1Alpha;
case 32774: return OneMinusSource1Color;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See Qt3DRender::QBlendEquationArguments:: bufferIndexChanged(int)
*/
@QtPropertyNotify(name="bufferIndex")
public final @NonNull Signal1 bufferIndexChanged = new Signal1<>();
/**
*
*/
@QtPropertyNotify(name="destinationAlpha")
public final @NonNull Signal1 destinationAlphaChanged = new Signal1<>();
/**
*
*/
@QtPropertyNotify(name="destinationRgb")
public final @NonNull Signal1 destinationRgbChanged = new Signal1<>();
/**
*
*/
public final @NonNull Signal1 destinationRgbaChanged = new Signal1<>();
/**
*
*/
@QtPropertyNotify(name="sourceAlpha")
public final @NonNull Signal1 sourceAlphaChanged = new Signal1<>();
/**
* See Qt3DRender::QBlendEquationArguments:: sourceRgbChanged(Qt3DRender::QBlendEquationArguments::Blending)
*/
@QtPropertyNotify(name="sourceRgb")
public final @NonNull Signal1 sourceRgbChanged = new Signal1<>();
/**
*
*/
public final @NonNull Signal1 sourceRgbaChanged = new Signal1<>();
/**
* See Qt3DRender::QBlendEquationArguments:: QBlendEquationArguments(Qt3DCore::QNode*)
* @param parent
*/
@SuppressWarnings({"exports"})
public QBlendEquationArguments(io.qt.qt3d.core.@Nullable QNode parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QBlendEquationArguments instance, io.qt.qt3d.core.QNode parent);
/**
* See Qt3DRender::QBlendEquationArguments:: bufferIndex()const
* @return
*/
@QtPropertyReader(name="bufferIndex")
@QtUninvokable
public final int bufferIndex(){
return bufferIndex_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int bufferIndex_native_constfct(long __this__nativeId);
/**
* See Qt3DRender::QBlendEquationArguments:: destinationAlpha()const
* @return
*/
@QtPropertyReader(name="destinationAlpha")
@QtUninvokable
public final io.qt.qt3d.render.QBlendEquationArguments.@NonNull Blending destinationAlpha(){
return io.qt.qt3d.render.QBlendEquationArguments.Blending.resolve(destinationAlpha_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int destinationAlpha_native_constfct(long __this__nativeId);
/**
* See Qt3DRender::QBlendEquationArguments:: destinationRgb()const
* @return
*/
@QtPropertyReader(name="destinationRgb")
@QtUninvokable
public final io.qt.qt3d.render.QBlendEquationArguments.@NonNull Blending destinationRgb(){
return io.qt.qt3d.render.QBlendEquationArguments.Blending.resolve(destinationRgb_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int destinationRgb_native_constfct(long __this__nativeId);
/**
* See Qt3DRender::QBlendEquationArguments:: setBufferIndex(int)
* @param index
*/
@QtPropertyWriter(name="bufferIndex")
public final void setBufferIndex(int index){
setBufferIndex_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
private native void setBufferIndex_native_int(long __this__nativeId, int index);
/**
*
* @param destinationAlpha
*/
@QtPropertyWriter(name="destinationAlpha")
public final void setDestinationAlpha(io.qt.qt3d.render.QBlendEquationArguments.@NonNull Blending destinationAlpha){
setDestinationAlpha_native_Qt3DRender_QBlendEquationArguments_Blending(QtJambi_LibraryUtilities.internal.nativeId(this), destinationAlpha.value());
}
private native void setDestinationAlpha_native_Qt3DRender_QBlendEquationArguments_Blending(long __this__nativeId, int destinationAlpha);
/**
*
* @param destinationRgb
*/
@QtPropertyWriter(name="destinationRgb")
public final void setDestinationRgb(io.qt.qt3d.render.QBlendEquationArguments.@NonNull Blending destinationRgb){
setDestinationRgb_native_Qt3DRender_QBlendEquationArguments_Blending(QtJambi_LibraryUtilities.internal.nativeId(this), destinationRgb.value());
}
private native void setDestinationRgb_native_Qt3DRender_QBlendEquationArguments_Blending(long __this__nativeId, int destinationRgb);
/**
*
* @param destinationRgba
*/
public final void setDestinationRgba(io.qt.qt3d.render.QBlendEquationArguments.@NonNull Blending destinationRgba){
setDestinationRgba_native_Qt3DRender_QBlendEquationArguments_Blending(QtJambi_LibraryUtilities.internal.nativeId(this), destinationRgba.value());
}
private native void setDestinationRgba_native_Qt3DRender_QBlendEquationArguments_Blending(long __this__nativeId, int destinationRgba);
/**
* See Qt3DRender::QBlendEquationArguments:: setSourceAlpha(Qt3DRender::QBlendEquationArguments::Blending)
* @param sourceAlpha
*/
@QtPropertyWriter(name="sourceAlpha")
public final void setSourceAlpha(io.qt.qt3d.render.QBlendEquationArguments.@NonNull Blending sourceAlpha){
setSourceAlpha_native_Qt3DRender_QBlendEquationArguments_Blending(QtJambi_LibraryUtilities.internal.nativeId(this), sourceAlpha.value());
}
private native void setSourceAlpha_native_Qt3DRender_QBlendEquationArguments_Blending(long __this__nativeId, int sourceAlpha);
/**
* See Qt3DRender::QBlendEquationArguments:: setSourceRgb(Qt3DRender::QBlendEquationArguments::Blending)
* @param sourceRgb
*/
@QtPropertyWriter(name="sourceRgb")
public final void setSourceRgb(io.qt.qt3d.render.QBlendEquationArguments.@NonNull Blending sourceRgb){
setSourceRgb_native_Qt3DRender_QBlendEquationArguments_Blending(QtJambi_LibraryUtilities.internal.nativeId(this), sourceRgb.value());
}
private native void setSourceRgb_native_Qt3DRender_QBlendEquationArguments_Blending(long __this__nativeId, int sourceRgb);
/**
* See Qt3DRender::QBlendEquationArguments:: setSourceRgba(Qt3DRender::QBlendEquationArguments::Blending)
* @param sourceRgba
*/
public final void setSourceRgba(io.qt.qt3d.render.QBlendEquationArguments.@NonNull Blending sourceRgba){
setSourceRgba_native_Qt3DRender_QBlendEquationArguments_Blending(QtJambi_LibraryUtilities.internal.nativeId(this), sourceRgba.value());
}
private native void setSourceRgba_native_Qt3DRender_QBlendEquationArguments_Blending(long __this__nativeId, int sourceRgba);
/**
* See Qt3DRender::QBlendEquationArguments:: sourceAlpha()const
* @return
*/
@QtPropertyReader(name="sourceAlpha")
@QtUninvokable
public final io.qt.qt3d.render.QBlendEquationArguments.@NonNull Blending sourceAlpha(){
return io.qt.qt3d.render.QBlendEquationArguments.Blending.resolve(sourceAlpha_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int sourceAlpha_native_constfct(long __this__nativeId);
/**
* See Qt3DRender::QBlendEquationArguments:: sourceRgb()const
* @return
*/
@QtPropertyReader(name="sourceRgb")
@QtUninvokable
public final io.qt.qt3d.render.QBlendEquationArguments.@NonNull Blending sourceRgb(){
return io.qt.qt3d.render.QBlendEquationArguments.Blending.resolve(sourceRgb_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int sourceRgb_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QBlendEquationArguments(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QBlendEquationArguments(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QBlendEquationArguments instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QBlendEquationArguments(io.qt.qt3d.core.QNode)}
* with parent = null
.
*/
public QBlendEquationArguments() {
this((io.qt.qt3d.core.QNode)null);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #bufferIndex()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final int getBufferIndex() {
return bufferIndex();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #destinationAlpha()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.qt3d.render.QBlendEquationArguments.@NonNull Blending getDestinationAlpha() {
return destinationAlpha();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #destinationRgb()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.qt3d.render.QBlendEquationArguments.@NonNull Blending getDestinationRgb() {
return destinationRgb();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #sourceAlpha()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.qt3d.render.QBlendEquationArguments.@NonNull Blending getSourceAlpha() {
return sourceAlpha();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #sourceRgb()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.qt3d.render.QBlendEquationArguments.@NonNull Blending getSourceRgb() {
return sourceRgb();
}
}