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

io.qt.core.QAbstractAnimation Maven / Gradle / Ivy

There is a newer version: 6.8.0
Show newest version
package io.qt.core;

import io.qt.*;


/**
 * 

The base of all animations

*

Java wrapper for Qt class QAbstractAnimation

*/ public abstract class QAbstractAnimation extends io.qt.core.QObject { /** * 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); @NativeAccess private static final class ConcreteWrapper extends QAbstractAnimation { @NativeAccess private ConcreteWrapper(QPrivateConstructor p) { super(p); } @Override @QtUninvokable public int duration(){ return duration_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int duration_native_constfct(long __this__nativeId); @Override @QtUninvokable protected void updateCurrentTime(int currentTime){ updateCurrentTime_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), currentTime); } @QtUninvokable private native void updateCurrentTime_native_int(long __this__nativeId, int currentTime); } /** *

Java wrapper for Qt enum QAbstractAnimation::DeletionPolicy

*/ @QtUnlistedEnum public enum DeletionPolicy implements QtEnumerator { /** *

Representing QAbstractAnimation::KeepWhenStopped

*/ KeepWhenStopped(0), /** *

Representing QAbstractAnimation::DeleteWhenStopped

*/ DeleteWhenStopped(1); static { QtJambi_LibraryUtilities.initialize(); } private DeletionPolicy(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 DeletionPolicy resolve(int value) { switch (value) { case 0: return KeepWhenStopped; case 1: return DeleteWhenStopped; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QAbstractAnimation::Direction

*/ public enum Direction implements QtEnumerator { /** *

Representing QAbstractAnimation::Forward

*/ Forward(0), /** *

Representing QAbstractAnimation::Backward

*/ Backward(1); static { QtJambi_LibraryUtilities.initialize(); } private Direction(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 Direction resolve(int value) { switch (value) { case 0: return Forward; case 1: return Backward; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QAbstractAnimation::State

*/ public enum State implements QtEnumerator { /** *

Representing QAbstractAnimation::Stopped

*/ Stopped(0), /** *

Representing QAbstractAnimation::Paused

*/ Paused(1), /** *

Representing QAbstractAnimation::Running

*/ Running(2); static { QtJambi_LibraryUtilities.initialize(); } private State(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 State resolve(int value) { switch (value) { case 0: return Stopped; case 1: return Paused; case 2: return Running; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See QAbstractAnimation::currentLoopChanged(int)

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

See QAbstractAnimation::directionChanged(QAbstractAnimation::Direction)

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

See QAbstractAnimation::finished()

*/ public final @NonNull Signal0 finished = new Signal0(); /** *

See QAbstractAnimation::stateChanged(QAbstractAnimation::State,QAbstractAnimation::State)

*/ @QtPropertyNotify(name="state") public final @NonNull Signal2 stateChanged = new Signal2<>(); /** *

See QAbstractAnimation::QAbstractAnimation(QObject*)

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

See QAbstractAnimation::bindableCurrentLoop()const

*/ @QtPropertyBindable(name="currentLoop") @QtUninvokable public final io.qt.core.@NonNull QIntBindable bindableCurrentLoop(){ return bindableCurrentLoop_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QIntBindable bindableCurrentLoop_native_constfct(long __this__nativeId); /** *

See QAbstractAnimation::bindableCurrentTime()

*/ @QtPropertyBindable(name="currentTime") @QtUninvokable public final io.qt.core.@NonNull QIntBindable bindableCurrentTime(){ return bindableCurrentTime_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QIntBindable bindableCurrentTime_native(long __this__nativeId); /** *

See QAbstractAnimation::bindableDirection()

*/ @QtPropertyBindable(name="direction") @QtUninvokable public final io.qt.core.@NonNull QBindable bindableDirection(){ return bindableDirection_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QBindable bindableDirection_native(long __this__nativeId); /** *

See QAbstractAnimation::bindableLoopCount()

*/ @QtPropertyBindable(name="loopCount") @QtUninvokable public final io.qt.core.@NonNull QIntBindable bindableLoopCount(){ return bindableLoopCount_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QIntBindable bindableLoopCount_native(long __this__nativeId); /** *

See QAbstractAnimation::bindableState()const

*/ @QtPropertyBindable(name="state") @QtUninvokable public final io.qt.core.@NonNull QBindable bindableState(){ return bindableState_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QBindable bindableState_native_constfct(long __this__nativeId); /** *

See QAbstractAnimation::currentLoop()const

*/ @QtPropertyReader(name="currentLoop") @QtUninvokable public final int currentLoop(){ return currentLoop_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int currentLoop_native_constfct(long __this__nativeId); /** *

See QAbstractAnimation::currentLoopTime()const

*/ @QtUninvokable public final int currentLoopTime(){ return currentLoopTime_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int currentLoopTime_native_constfct(long __this__nativeId); /** *

See QAbstractAnimation::currentTime()const

*/ @QtPropertyReader(name="currentTime") @QtUninvokable public final int currentTime(){ return currentTime_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int currentTime_native_constfct(long __this__nativeId); /** *

See QAbstractAnimation::direction()const

*/ @QtPropertyReader(name="direction") @QtUninvokable public final io.qt.core.QAbstractAnimation.@NonNull Direction direction(){ return io.qt.core.QAbstractAnimation.Direction.resolve(direction_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int direction_native_constfct(long __this__nativeId); /** *

See QAbstractAnimation::group()const

*/ @QtUninvokable public final io.qt.core.@Nullable QAnimationGroup group(){ return group_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QAnimationGroup group_native_constfct(long __this__nativeId); /** *

See QAbstractAnimation::loopCount()const

*/ @QtPropertyReader(name="loopCount") @QtUninvokable public final int loopCount(){ return loopCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int loopCount_native_constfct(long __this__nativeId); /** *

See QAbstractAnimation::pause()

*/ public final void pause(){ pause_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void pause_native(long __this__nativeId); /** *

See QAbstractAnimation::resume()

*/ public final void resume(){ resume_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void resume_native(long __this__nativeId); /** *

See QAbstractAnimation::setCurrentTime(int)

*/ @QtPropertyWriter(name="currentTime") public final void setCurrentTime(int msecs){ setCurrentTime_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), msecs); } private native void setCurrentTime_native_int(long __this__nativeId, int msecs); /** *

See QAbstractAnimation::setDirection(QAbstractAnimation::Direction)

*/ @QtPropertyWriter(name="direction") @QtUninvokable public final void setDirection(io.qt.core.QAbstractAnimation.@NonNull Direction direction){ setDirection_native_QAbstractAnimation_Direction(QtJambi_LibraryUtilities.internal.nativeId(this), direction.value()); } @QtUninvokable private native void setDirection_native_QAbstractAnimation_Direction(long __this__nativeId, int direction); /** *

See QAbstractAnimation::setLoopCount(int)

*/ @QtPropertyWriter(name="loopCount") @QtUninvokable public final void setLoopCount(int loopCount){ setLoopCount_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), loopCount); } @QtUninvokable private native void setLoopCount_native_int(long __this__nativeId, int loopCount); /** *

See QAbstractAnimation::setPaused(bool)

*/ public final void setPaused(boolean arg__1){ setPaused_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } private native void setPaused_native_bool(long __this__nativeId, boolean arg__1); /** *

See QAbstractAnimation::start(QAbstractAnimation::DeletionPolicy)

*/ public final void start(io.qt.core.QAbstractAnimation.@NonNull DeletionPolicy policy){ start_native_QAbstractAnimation_DeletionPolicy(QtJambi_LibraryUtilities.internal.nativeId(this), policy.value()); } private native void start_native_QAbstractAnimation_DeletionPolicy(long __this__nativeId, int policy); /** *

See QAbstractAnimation::state()const

*/ @QtPropertyReader(name="state") @QtUninvokable public final io.qt.core.QAbstractAnimation.@NonNull State state(){ return io.qt.core.QAbstractAnimation.State.resolve(state_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int state_native_constfct(long __this__nativeId); /** *

See QAbstractAnimation::stop()

*/ public final void stop(){ stop_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void stop_native(long __this__nativeId); /** *

See QAbstractAnimation::totalDuration()const

*/ @QtUninvokable public final int totalDuration(){ return totalDuration_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int totalDuration_native_constfct(long __this__nativeId); /** *

See QAbstractAnimation::duration()const

*/ @QtPropertyReader(name="duration") @QtUninvokable public abstract int duration(); @QtUninvokable private native int duration_native_constfct(long __this__nativeId); /** *

See QObject::event(QEvent*)

*/ @QtUninvokable @Override public boolean event(io.qt.core.@Nullable QEvent event){ return event_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event)); } @QtUninvokable private native boolean event_native_QEvent_ptr(long __this__nativeId, long event); /** *

See QAbstractAnimation::updateCurrentTime(int)

*/ @QtUninvokable protected abstract void updateCurrentTime(int currentTime); @QtUninvokable private native void updateCurrentTime_native_int(long __this__nativeId, int currentTime); /** *

See QAbstractAnimation::updateDirection(QAbstractAnimation::Direction)

*/ @QtUninvokable protected void updateDirection(io.qt.core.QAbstractAnimation.@NonNull Direction direction){ updateDirection_native_QAbstractAnimation_Direction(QtJambi_LibraryUtilities.internal.nativeId(this), direction.value()); } @QtUninvokable private native void updateDirection_native_QAbstractAnimation_Direction(long __this__nativeId, int direction); /** *

See QAbstractAnimation::updateState(QAbstractAnimation::State,QAbstractAnimation::State)

*/ @QtUninvokable protected void updateState(io.qt.core.QAbstractAnimation.@NonNull State newState, io.qt.core.QAbstractAnimation.@NonNull State oldState){ updateState_native_QAbstractAnimation_State_QAbstractAnimation_State(QtJambi_LibraryUtilities.internal.nativeId(this), newState.value(), oldState.value()); } @QtUninvokable private native void updateState_native_QAbstractAnimation_State_QAbstractAnimation_State(long __this__nativeId, int newState, int oldState); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QAbstractAnimation(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. * @hidden */ @NativeAccess protected QAbstractAnimation(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @QtUninvokable private static native void initialize_native(QAbstractAnimation instance, QDeclarativeConstructor constructor); /** *

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

*/ public QAbstractAnimation() { this((io.qt.core.QObject)null); } /** * @hidden *

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final int getCurrentLoop() { return currentLoop(); } /** * @hidden *

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final int getCurrentTime() { return currentTime(); } /** * @hidden *

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.core.QAbstractAnimation.@NonNull Direction getDirection() { return direction(); } /** * @hidden *

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final int getLoopCount() { return loopCount(); } /** *

Overloaded function for {@link #start(io.qt.core.QAbstractAnimation.DeletionPolicy)} * with policy = io.qt.core.QAbstractAnimation.DeletionPolicy.KeepWhenStopped.

*/ public final void start() { start(io.qt.core.QAbstractAnimation.DeletionPolicy.KeepWhenStopped); } /** * @hidden *

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.core.QAbstractAnimation.@NonNull State getState() { return state(); } /** * @hidden *

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final int getDuration() { return duration(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy