io.qt.qt3d.animation.QAbstractAnimation Maven / Gradle / Ivy
Show all versions of qtjambi-qt3danimation Show documentation
package io.qt.qt3d.animation;
import io.qt.*;
/**
* An abstract base class for Qt3D animations
* Java wrapper for Qt class Qt3DAnimation::QAbstractAnimation
*/
public class QAbstractAnimation extends io.qt.core.QObject
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QAbstractAnimation.class);
/**
* Java wrapper for Qt enum Qt3DAnimation::QAbstractAnimation::AnimationType
*/
public enum AnimationType implements QtEnumerator {
/**
* Representing Qt3DAnimation:: QAbstractAnimation:: KeyframeAnimation
*/
KeyframeAnimation(1),
/**
* Representing Qt3DAnimation:: QAbstractAnimation:: MorphingAnimation
*/
MorphingAnimation(2),
/**
* Representing Qt3DAnimation:: QAbstractAnimation:: VertexBlendAnimation
*/
VertexBlendAnimation(3);
static {
QtJambi_LibraryUtilities.initialize();
}
private AnimationType(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 AnimationType resolve(int value) {
switch (value) {
case 1: return KeyframeAnimation;
case 2: return MorphingAnimation;
case 3: return VertexBlendAnimation;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See Qt3DAnimation::QAbstractAnimation:: animationNameChanged(QString)
*/
@QtPropertyNotify(name="animationName")
public final @NonNull Signal1 animationNameChanged = new Signal1<>();
/**
* See Qt3DAnimation::QAbstractAnimation:: durationChanged(float)
*/
@QtPropertyNotify(name="duration")
public final @NonNull Signal1 durationChanged = new Signal1<>();
/**
* See Qt3DAnimation::QAbstractAnimation:: positionChanged(float)
*/
@QtPropertyNotify(name="position")
public final @NonNull Signal1 positionChanged = new Signal1<>();
/**
* See Qt3DAnimation::QAbstractAnimation:: animationName()const
*/
@QtPropertyReader(name="animationName")
@QtUninvokable
public final java.lang.@NonNull String animationName(){
return animationName_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String animationName_native_constfct(long __this__nativeId);
/**
* See Qt3DAnimation::QAbstractAnimation:: animationType()const
*/
@QtPropertyReader(name="animationType")
@QtPropertyConstant
@QtUninvokable
public final io.qt.qt3d.animation.QAbstractAnimation.@NonNull AnimationType animationType(){
return io.qt.qt3d.animation.QAbstractAnimation.AnimationType.resolve(animationType_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int animationType_native_constfct(long __this__nativeId);
/**
* See Qt3DAnimation::QAbstractAnimation:: duration()const
*/
@QtPropertyReader(name="duration")
@QtUninvokable
public final float duration(){
return duration_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native float duration_native_constfct(long __this__nativeId);
/**
* See Qt3DAnimation::QAbstractAnimation:: position()const
*/
@QtPropertyReader(name="position")
@QtUninvokable
public final float position(){
return position_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native float position_native_constfct(long __this__nativeId);
/**
* See Qt3DAnimation::QAbstractAnimation:: setAnimationName(QString)
*/
@QtPropertyWriter(name="animationName")
public final void setAnimationName(java.lang.@NonNull String name){
setAnimationName_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), name);
}
private native void setAnimationName_native_cref_QString(long __this__nativeId, java.lang.String name);
/**
* See Qt3DAnimation::QAbstractAnimation:: setDuration(float)
*/
@QtUninvokable
protected final void setDuration(float duration){
setDuration_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), duration);
}
@QtUninvokable
private native void setDuration_native_float(long __this__nativeId, float duration);
/**
* See Qt3DAnimation::QAbstractAnimation:: setPosition(float)
*/
@QtPropertyWriter(name="position")
public final void setPosition(float position){
setPosition_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), position);
}
private native void setPosition_native_float(long __this__nativeId, float position);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QAbstractAnimation(QPrivateConstructor p) { super(p); }
/**
* @hidden
* Kotlin property getter. In Java use {@link #animationName()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final java.lang.@NonNull String getAnimationName() {
return animationName();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #animationType()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.qt3d.animation.QAbstractAnimation.@NonNull AnimationType getAnimationType() {
return animationType();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #duration()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final float getDuration() {
return duration();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #position()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final float getPosition() {
return position();
}
}