All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.qt3d.animation.QAnimationGroup Maven / Gradle / Ivy

Go to download

The Qt 3D Animation modules provides a set of prebuilt elements to help you get started with Qt 3D.

There is a newer version: 6.7.2
Show newest version
package io.qt.qt3d.animation;

import io.qt.*;


/**
 * 

A class grouping animations together

*

Java wrapper for Qt class Qt3DAnimation::QAnimationGroup

*/ public class QAnimationGroup extends io.qt.core.QObject { static { QtJambi_LibraryUtilities.initialize(); } @QtPropertyMember(enabled=false) private java.util.Collection __rcAnimation; /** * This variable stores the meta-object for the class. */ public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QAnimationGroup.class); /** *

See Qt3DAnimation::QAnimationGroup::durationChanged(float)

*/ @QtPropertyNotify(name="duration") public final @NonNull Signal1 durationChanged = new Signal1<>(); /** *

See Qt3DAnimation::QAnimationGroup::nameChanged(QString)

*/ @QtPropertyNotify(name="name") public final @NonNull Signal1 nameChanged = new Signal1<>(); /** *

See Qt3DAnimation::QAnimationGroup::positionChanged(float)

*/ @QtPropertyNotify(name="position") public final @NonNull Signal1 positionChanged = new Signal1<>(); /** *

See Qt3DAnimation::QAnimationGroup::QAnimationGroup(QObject*)

*/ public QAnimationGroup(io.qt.core.@Nullable QObject parent){ super((QPrivateConstructor)null); initialize_native(this, parent); } private native static void initialize_native(QAnimationGroup instance, io.qt.core.QObject parent); /** *

See Qt3DAnimation::QAnimationGroup::addAnimation(Qt3DAnimation::QAbstractAnimation*)

*/ @QtUninvokable public final void addAnimation(io.qt.qt3d.animation.@Nullable QAbstractAnimation animation){ addAnimation_native_Qt3DAnimation_QAbstractAnimation_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(animation)); if (animation != null) { if(__rcAnimation==null) __rcAnimation = QtJambi_LibraryUtilities.internal.newRCList(); __rcAnimation.add(animation); } } @QtUninvokable private native void addAnimation_native_Qt3DAnimation_QAbstractAnimation_ptr(long __this__nativeId, long animation); /** *

See Qt3DAnimation::QAnimationGroup::animationList()

*/ @QtUninvokable public final io.qt.core.@NonNull QVector animationList(){ return animationList_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QVector animationList_native(long __this__nativeId); /** *

See Qt3DAnimation::QAnimationGroup::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::QAnimationGroup::name()const

*/ @QtPropertyReader(name="name") @QtUninvokable public final java.lang.@NonNull String name(){ return name_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.lang.String name_native_constfct(long __this__nativeId); /** *

See Qt3DAnimation::QAnimationGroup::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::QAnimationGroup::removeAnimation(Qt3DAnimation::QAbstractAnimation*)

*/ @QtUninvokable public final void removeAnimation(io.qt.qt3d.animation.@Nullable QAbstractAnimation animation){ removeAnimation_native_Qt3DAnimation_QAbstractAnimation_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(animation)); if (animation != null) { while (__rcAnimation != null && __rcAnimation.remove(animation)) ; } } @QtUninvokable private native void removeAnimation_native_Qt3DAnimation_QAbstractAnimation_ptr(long __this__nativeId, long animation); /** *

See Qt3DAnimation::QAnimationGroup::setAnimations(QVector<Qt3DAnimation::QAbstractAnimation*>)

*/ @QtUninvokable public final void setAnimations(java.util.@NonNull Collection animations){ setAnimations_native_cref_QVector(QtJambi_LibraryUtilities.internal.nativeId(this), animations); if(__rcAnimation!=null){ __rcAnimation.clear(); }else{ __rcAnimation = new java.util.ArrayList<>(); } __rcAnimation.addAll(animations); } @QtUninvokable private native void setAnimations_native_cref_QVector(long __this__nativeId, java.util.Collection animations); /** *

See Qt3DAnimation::QAnimationGroup::setName(QString)

*/ @QtPropertyWriter(name="name") public final void setName(java.lang.@NonNull String name){ setName_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), name); } private native void setName_native_cref_QString(long __this__nativeId, java.lang.String name); /** *

See Qt3DAnimation::QAnimationGroup::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 QAnimationGroup(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. * @hidden */ @NativeAccess protected QAnimationGroup(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @QtUninvokable private static native void initialize_native(QAnimationGroup instance, QDeclarativeConstructor constructor); /** *

Overloaded constructor for {@link #QAnimationGroup(io.qt.core.QObject)} * with parent = null.

*/ public QAnimationGroup() { this((io.qt.core.QObject)null); } /** * @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 #name()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final java.lang.@NonNull String getName() { return name(); } /** * @hidden *

Kotlin property getter. In Java use {@link #position()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final float getPosition() { return position(); } }