![JAR search and dependency download from the Maven repository](/logo.png)
io.qt.qt3d.render.QCullFace Maven / Gradle / Ivy
package io.qt.qt3d.render;
import io.qt.*;
/**
* Specifies whether front or back face culling is enabled
* Java wrapper for Qt class Qt3DRender::QCullFace
*/
public class QCullFace 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(QCullFace.class);
/**
* Java wrapper for Qt enum Qt3DRender::QCullFace::CullingMode
*/
public enum CullingMode implements QtEnumerator {
/**
* Representing Qt3DRender:: QCullFace:: NoCulling
*/
NoCulling(0),
/**
* Representing Qt3DRender:: QCullFace:: Front
*/
Front(1028),
/**
* Representing Qt3DRender:: QCullFace:: Back
*/
Back(1029),
/**
* Representing Qt3DRender:: QCullFace:: FrontAndBack
*/
FrontAndBack(1032);
static {
QtJambi_LibraryUtilities.initialize();
}
private CullingMode(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 CullingMode resolve(int value) {
switch (value) {
case 0: return NoCulling;
case 1028: return Front;
case 1029: return Back;
case 1032: return FrontAndBack;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See Qt3DRender::QCullFace:: modeChanged(Qt3DRender::QCullFace::CullingMode)
*/
@QtPropertyNotify(name="mode")
public final @NonNull Signal1 modeChanged = new Signal1<>();
/**
* See Qt3DRender::QCullFace:: QCullFace(Qt3DCore::QNode*)
* @param parent
*/
@SuppressWarnings({"exports"})
public QCullFace(io.qt.qt3d.core.@Nullable QNode parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QCullFace instance, io.qt.qt3d.core.QNode parent);
/**
* See Qt3DRender::QCullFace:: mode()const
* @return
*/
@QtPropertyReader(name="mode")
@QtUninvokable
public final io.qt.qt3d.render.QCullFace.@NonNull CullingMode mode(){
return io.qt.qt3d.render.QCullFace.CullingMode.resolve(mode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int mode_native_constfct(long __this__nativeId);
/**
* See Qt3DRender::QCullFace:: setMode(Qt3DRender::QCullFace::CullingMode)
* @param mode
*/
@QtPropertyWriter(name="mode")
public final void setMode(io.qt.qt3d.render.QCullFace.@NonNull CullingMode mode){
setMode_native_Qt3DRender_QCullFace_CullingMode(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value());
}
private native void setMode_native_Qt3DRender_QCullFace_CullingMode(long __this__nativeId, int mode);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QCullFace(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QCullFace(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QCullFace instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QCullFace(io.qt.qt3d.core.QNode)}
* with parent = null
.
*/
public QCullFace() {
this((io.qt.qt3d.core.QNode)null);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #mode()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.qt3d.render.QCullFace.@NonNull CullingMode getMode() {
return mode();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy