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

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

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

import io.qt.*;


/**
 * 

Timeline for controlling animations

*

Java wrapper for Qt class QTimeLine

*/ public class QTimeLine 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(QTimeLine.class); /** *

Java wrapper for Qt enum QTimeLine::Direction

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

Representing QTimeLine::Forward

*/ Forward(0), /** *

Representing QTimeLine::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 QTimeLine::State

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

Representing QTimeLine::NotRunning

*/ NotRunning(0), /** *

Representing QTimeLine::Paused

*/ Paused(1), /** *

Representing QTimeLine::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 NotRunning; case 1: return Paused; case 2: return Running; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See QTimeLine::finished()

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

See QTimeLine::frameChanged(int)

*/ public final @NonNull PrivateSignal1 frameChanged = new PrivateSignal1<>(); /** *

See QTimeLine::stateChanged(QTimeLine::State)

*/ public final @NonNull PrivateSignal1 stateChanged = new PrivateSignal1<>(); /** *

See QTimeLine::valueChanged(qreal)

*/ public final @NonNull PrivateSignal1 valueChanged = new PrivateSignal1<>(); /** *

See QTimeLine::QTimeLine(int,QObject*)

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

See QTimeLine::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 QTimeLine::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 QTimeLine::bindableDuration()

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

See QTimeLine::bindableEasingCurve()

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

See QTimeLine::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 QTimeLine::bindableUpdateInterval()

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

See QTimeLine::currentFrame()const

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

See QTimeLine::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 QTimeLine::currentValue()const

*/ @QtUninvokable public final double currentValue(){ return currentValue_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native double currentValue_native_constfct(long __this__nativeId); /** *

See QTimeLine::direction()const

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

See QTimeLine::duration()const

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

See QTimeLine::easingCurve()const

*/ @QtPropertyReader(name="easingCurve") @QtUninvokable public final io.qt.core.@NonNull QEasingCurve easingCurve(){ return easingCurve_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QEasingCurve easingCurve_native_constfct(long __this__nativeId); /** *

See QTimeLine::endFrame()const

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

See QTimeLine::frameForTime(int)const

*/ @QtUninvokable public final int frameForTime(int msec){ return frameForTime_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), msec); } @QtUninvokable private native int frameForTime_native_int_constfct(long __this__nativeId, int msec); /** *

See QTimeLine::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 QTimeLine::resume()

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

See QTimeLine::setCurrentTime(int)

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

See QTimeLine::setDirection(QTimeLine::Direction)

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

See QTimeLine::setDuration(int)

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

See QTimeLine::setEasingCurve(QEasingCurve)

*/ @QtPropertyWriter(name="easingCurve") @QtUninvokable public final void setEasingCurve(io.qt.core.@NonNull QEasingCurve curve){ setEasingCurve_native_cref_QEasingCurve(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(curve)); } @QtUninvokable private native void setEasingCurve_native_cref_QEasingCurve(long __this__nativeId, long curve); /** *

See QTimeLine::setEndFrame(int)

*/ @QtUninvokable public final void setEndFrame(int frame){ setEndFrame_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), frame); } @QtUninvokable private native void setEndFrame_native_int(long __this__nativeId, int frame); /** *

See QTimeLine::setFrameRange(int,int)

*/ @QtUninvokable public final void setFrameRange(int startFrame, int endFrame){ setFrameRange_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), startFrame, endFrame); } @QtUninvokable private native void setFrameRange_native_int_int(long __this__nativeId, int startFrame, int endFrame); /** *

See QTimeLine::setLoopCount(int)

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

See QTimeLine::setPaused(bool)

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

See QTimeLine::setStartFrame(int)

*/ @QtUninvokable public final void setStartFrame(int frame){ setStartFrame_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), frame); } @QtUninvokable private native void setStartFrame_native_int(long __this__nativeId, int frame); /** *

See QTimeLine::setUpdateInterval(int)

*/ @QtPropertyWriter(name="updateInterval") @QtUninvokable public final void setUpdateInterval(int interval){ setUpdateInterval_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), interval); } @QtUninvokable private native void setUpdateInterval_native_int(long __this__nativeId, int interval); /** *

See QTimeLine::start()

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

See QTimeLine::startFrame()const

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

See QTimeLine::state()const

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

See QTimeLine::stop()

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

See QTimeLine::toggleDirection()

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

See QTimeLine::updateInterval()const

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

See QObject::timerEvent(QTimerEvent*)

*/ @QtUninvokable @Override protected void timerEvent(io.qt.core.@Nullable QTimerEvent event){ timerEvent_native_QTimerEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event)); } @QtUninvokable private native void timerEvent_native_QTimerEvent_ptr(long __this__nativeId, long event); /** *

See QTimeLine::valueForTime(int)const

*/ @QtUninvokable public double valueForTime(int msec){ return valueForTime_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), msec); } @QtUninvokable private native double valueForTime_native_int_constfct(long __this__nativeId, int msec); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QTimeLine(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. * @hidden */ @NativeAccess protected QTimeLine(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @QtUninvokable private static native void initialize_native(QTimeLine instance, QDeclarativeConstructor constructor); /** *

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

*/ public QTimeLine(int duration) { this(duration, (io.qt.core.QObject)null); } /** *

Overloaded constructor for {@link #QTimeLine(int, io.qt.core.QObject)}

*

with:

    *
  • duration = 1000
  • *
  • parent = null
  • *
*/ public QTimeLine() { this((int)1000, (io.qt.core.QObject)null); } /** * @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.QTimeLine.@NonNull Direction getDirection() { return direction(); } /** * @hidden *

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

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

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.core.@NonNull QEasingCurve getEasingCurve() { return easingCurve(); } /** * @hidden *

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

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

Overloaded function for {@link #setEasingCurve(io.qt.core.QEasingCurve)}.

*/ @QtUninvokable public final void setEasingCurve(io.qt.core.QEasingCurve.@NonNull Type curve) { setEasingCurve(new io.qt.core.QEasingCurve(curve)); } /** * @hidden *

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy