io.qt.qt3d.extras.QTextureMaterial Maven / Gradle / Ivy
Show all versions of qtjambi-qt3dextras Show documentation
package io.qt.qt3d.extras;
import io.qt.*;
/**
* Default implementation of a simple unlit texture material
* Java wrapper for Qt's class Qt3DExtras::QTextureMaterial
*/
public class QTextureMaterial extends io.qt.qt3d.render.QMaterial
{
static {
QtJambi_LibraryUtilities.initialize();
}
@QtPropertyMember(enabled=false)
private Object __rcTexture = null;
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QTextureMaterial.class);
/**
* See Qt3DExtras::QTextureMaterial::alphaBlendingEnabledChanged(bool)
*/
@QtPropertyNotify(name="alphaBlending")
public final @NonNull Signal1 alphaBlendingEnabledChanged = new Signal1<>();
/**
* See Qt3DExtras::QTextureMaterial::textureChanged(Qt3DRender::QAbstractTexture*)
*/
@SuppressWarnings({"exports"})
@QtPropertyNotify(name="texture")
public final @NonNull Signal1 textureChanged = new Signal1<>();
/**
* See Qt3DExtras::QTextureMaterial::textureOffsetChanged(QVector2D)
*/
@QtPropertyNotify(name="textureOffset")
public final @NonNull Signal1 textureOffsetChanged = new Signal1<>();
/**
* See Qt3DExtras::QTextureMaterial::textureTransformChanged(QMatrix3x3)
*/
@QtPropertyNotify(name="textureTransform")
public final @NonNull Signal1 textureTransformChanged = new Signal1<>();
/**
* Overloaded constructor for {@link #QTextureMaterial(io.qt.qt3d.core.QNode)}
* with parent = null
.
*/
public QTextureMaterial() {
this((io.qt.qt3d.core.QNode)null);
}
/**
* See Qt3DExtras::QTextureMaterial::QTextureMaterial(Qt3DCore::QNode*)
*/
@SuppressWarnings({"exports"})
public QTextureMaterial(io.qt.qt3d.core.@Nullable QNode parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QTextureMaterial instance, io.qt.qt3d.core.QNode parent);
/**
* Kotlin property getter. In Java use {@link #isAlphaBlendingEnabled()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getAlphaBlending() {
return isAlphaBlendingEnabled();
}
/**
* See Qt3DExtras::QTextureMaterial::isAlphaBlendingEnabled()const
*/
@QtPropertyReader(name="alphaBlending")
@QtUninvokable
public final boolean isAlphaBlendingEnabled(){
return isAlphaBlendingEnabled_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isAlphaBlendingEnabled_native_constfct(long __this__nativeId);
/**
* See Qt3DExtras::QTextureMaterial::setAlphaBlendingEnabled(bool)
*/
@QtPropertyWriter(name="alphaBlending")
public final void setAlphaBlendingEnabled(boolean enabled){
setAlphaBlendingEnabled_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), enabled);
}
private native void setAlphaBlendingEnabled_native_bool(long __this__nativeId, boolean enabled);
/**
* See Qt3DExtras::QTextureMaterial::setTexture(Qt3DRender::QAbstractTexture*)
*/
@QtPropertyWriter(name="texture")
@SuppressWarnings({"exports"})
public final void setTexture(io.qt.qt3d.render.@Nullable QAbstractTexture texture){
setTexture_native_Qt3DRender_QAbstractTexture_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(texture));
__rcTexture = texture;
}
private native void setTexture_native_Qt3DRender_QAbstractTexture_ptr(long __this__nativeId, long texture);
/**
* See Qt3DExtras::QTextureMaterial::setTextureOffset(QVector2D)
*/
@QtPropertyWriter(name="textureOffset")
public final void setTextureOffset(io.qt.gui.@NonNull QVector2D textureOffset){
setTextureOffset_native_QVector2D(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(textureOffset));
}
private native void setTextureOffset_native_QVector2D(long __this__nativeId, long textureOffset);
/**
* See Qt3DExtras::QTextureMaterial::setTextureTransform(QMatrix3x3)
*/
@QtPropertyWriter(name="textureTransform")
public final void setTextureTransform(io.qt.gui.@NonNull QMatrix3x3 matrix){
setTextureTransform_native_cref_QMatrix3x3(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(matrix));
}
private native void setTextureTransform_native_cref_QMatrix3x3(long __this__nativeId, long matrix);
/**
* Kotlin property getter. In Java use {@link #texture()} instead.
*/
@QtPropertyReader(enabled=false)
@SuppressWarnings({"exports"})
@QtUninvokable
public final io.qt.qt3d.render.@Nullable QAbstractTexture getTexture() {
return texture();
}
/**
* See Qt3DExtras::QTextureMaterial::texture()const
*/
@QtPropertyReader(name="texture")
@SuppressWarnings({"exports"})
@QtUninvokable
public final io.qt.qt3d.render.@Nullable QAbstractTexture texture(){
return texture_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.qt3d.render.QAbstractTexture texture_native_constfct(long __this__nativeId);
/**
* Kotlin property getter. In Java use {@link #textureOffset()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.gui.@NonNull QVector2D getTextureOffset() {
return textureOffset();
}
/**
* See Qt3DExtras::QTextureMaterial::textureOffset()const
*/
@QtPropertyReader(name="textureOffset")
@QtUninvokable
public final io.qt.gui.@NonNull QVector2D textureOffset(){
return textureOffset_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QVector2D textureOffset_native_constfct(long __this__nativeId);
/**
* Kotlin property getter. In Java use {@link #textureTransform()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.gui.@NonNull QMatrix3x3 getTextureTransform() {
return textureTransform();
}
/**
* See Qt3DExtras::QTextureMaterial::textureTransform()const
*/
@QtPropertyReader(name="textureTransform")
@QtUninvokable
public final io.qt.gui.@NonNull QMatrix3x3 textureTransform(){
return textureTransform_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QMatrix3x3 textureTransform_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@NativeAccess
protected QTextureMaterial(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
*/
@NativeAccess
protected QTextureMaterial(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QTextureMaterial instance, QDeclarativeConstructor constructor);
}