io.qt.qt3d.render.QRasterMode Maven / Gradle / Ivy
package io.qt.qt3d.render;
import io.qt.*;
/**
* Render state allows to control the type of rasterization to be performed
* Java wrapper for Qt class Qt3DRender::QRasterMode
*/
public class QRasterMode 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(QRasterMode.class);
/**
* Java wrapper for Qt enum Qt3DRender::QRasterMode::FaceMode
*/
public enum FaceMode implements QtEnumerator {
/**
* Representing Qt3DRender:: QRasterMode:: Front
*/
Front(1028),
/**
* Representing Qt3DRender:: QRasterMode:: Back
*/
Back(1029),
/**
* Representing Qt3DRender:: QRasterMode:: FrontAndBack
*/
FrontAndBack(1032);
static {
QtJambi_LibraryUtilities.initialize();
}
private FaceMode(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 FaceMode resolve(int value) {
switch (value) {
case 1028: return Front;
case 1029: return Back;
case 1032: return FrontAndBack;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum Qt3DRender::QRasterMode::RasterMode
*/
public enum RasterMode implements QtEnumerator {
/**
* Representing Qt3DRender:: QRasterMode:: Points
*/
Points(6912),
/**
* Representing Qt3DRender:: QRasterMode:: Lines
*/
Lines(6913),
/**
* Representing Qt3DRender:: QRasterMode:: Fill
*/
Fill(6914);
static {
QtJambi_LibraryUtilities.initialize();
}
private RasterMode(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 RasterMode resolve(int value) {
switch (value) {
case 6912: return Points;
case 6913: return Lines;
case 6914: return Fill;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See Qt3DRender::QRasterMode:: faceModeChanged(Qt3DRender::QRasterMode::FaceMode)
*/
@QtPropertyNotify(name="faceMode")
public final @NonNull Signal1 faceModeChanged = new Signal1<>();
/**
* See Qt3DRender::QRasterMode:: rasterModeChanged(Qt3DRender::QRasterMode::RasterMode)
*/
@QtPropertyNotify(name="rasterMode")
public final @NonNull Signal1 rasterModeChanged = new Signal1<>();
/**
* See Qt3DRender::QRasterMode:: QRasterMode(Qt3DCore::QNode*)
* @param parent
*/
@SuppressWarnings({"exports"})
public QRasterMode(io.qt.qt3d.core.@Nullable QNode parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QRasterMode instance, io.qt.qt3d.core.QNode parent);
/**
* See Qt3DRender::QRasterMode:: faceMode()const
* @return
*/
@QtPropertyReader(name="faceMode")
@QtUninvokable
public final io.qt.qt3d.render.QRasterMode.@NonNull FaceMode faceMode(){
return io.qt.qt3d.render.QRasterMode.FaceMode.resolve(faceMode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int faceMode_native_constfct(long __this__nativeId);
/**
* See Qt3DRender::QRasterMode:: rasterMode()const
* @return
*/
@QtPropertyReader(name="rasterMode")
@QtUninvokable
public final io.qt.qt3d.render.QRasterMode.@NonNull RasterMode rasterMode(){
return io.qt.qt3d.render.QRasterMode.RasterMode.resolve(rasterMode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int rasterMode_native_constfct(long __this__nativeId);
/**
* See Qt3DRender::QRasterMode:: setFaceMode(Qt3DRender::QRasterMode::FaceMode)
* @param faceMode
*/
@QtPropertyWriter(name="faceMode")
public final void setFaceMode(io.qt.qt3d.render.QRasterMode.@NonNull FaceMode faceMode){
setFaceMode_native_Qt3DRender_QRasterMode_FaceMode(QtJambi_LibraryUtilities.internal.nativeId(this), faceMode.value());
}
private native void setFaceMode_native_Qt3DRender_QRasterMode_FaceMode(long __this__nativeId, int faceMode);
/**
* See Qt3DRender::QRasterMode:: setRasterMode(Qt3DRender::QRasterMode::RasterMode)
* @param rasterMode
*/
@QtPropertyWriter(name="rasterMode")
public final void setRasterMode(io.qt.qt3d.render.QRasterMode.@NonNull RasterMode rasterMode){
setRasterMode_native_Qt3DRender_QRasterMode_RasterMode(QtJambi_LibraryUtilities.internal.nativeId(this), rasterMode.value());
}
private native void setRasterMode_native_Qt3DRender_QRasterMode_RasterMode(long __this__nativeId, int rasterMode);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QRasterMode(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QRasterMode(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QRasterMode instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QRasterMode(io.qt.qt3d.core.QNode)}
* with parent = null
.
*/
public QRasterMode() {
this((io.qt.qt3d.core.QNode)null);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #faceMode()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.qt3d.render.QRasterMode.@NonNull FaceMode getFaceMode() {
return faceMode();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #rasterMode()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.qt3d.render.QRasterMode.@NonNull RasterMode getRasterMode() {
return rasterMode();
}
}