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

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

The newest version!
package io.qt.core;


/**
 * 

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.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QTimeLine.class); /** *

Java wrapper for Qt enum QTimeLine::Direction

*/ @io.qt.QtUnlistedEnum public enum Direction implements io.qt.QtEnumerator { Forward(0), Backward(1); 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 Direction resolve(int value) { switch (value) { case 0: return Forward; case 1: return Backward; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QTimeLine::State

*/ @io.qt.QtUnlistedEnum public enum State implements io.qt.QtEnumerator { NotRunning(0), Paused(1), Running(2); 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 State resolve(int value) { switch (value) { case 0: return NotRunning; case 1: return Paused; case 2: return Running; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

See QTimeLine::finished()

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

See QTimeLine::frameChanged(int)

*/ public final PrivateSignal1<@io.qt.QtPrimitiveType Integer> frameChanged = new PrivateSignal1<>(); /** *

See QTimeLine::stateChanged(QTimeLine::State)

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

See QTimeLine::valueChanged(qreal)

*/ public final PrivateSignal1<@io.qt.QtPrimitiveType Double> valueChanged = new PrivateSignal1<>(); /** *

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); } /** *

See QTimeLine::QTimeLine(int,QObject*)

*/ public QTimeLine(int duration, io.qt.core.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); /** *

The current time of the time line

*

See QTimeLine::bindableCurrentTime()

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

The direction of the timeline when QTimeLine is in Running state

*

See QTimeLine::bindableDirection()

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

The total duration of the timeline in milliseconds

*

See QTimeLine::bindableDuration()

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

See QTimeLine::bindableEasingCurve()

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

The number of times the timeline should loop before it's finished

*

See QTimeLine::bindableLoopCount()

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

The time in milliseconds between each time QTimeLine updates its current time

*

See QTimeLine::bindableUpdateInterval()

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

See QTimeLine::currentFrame()const

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

See QTimeLine::currentTime()const

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

See QTimeLine::currentValue()const

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

See QTimeLine::direction()const

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

See QTimeLine::duration()const

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

See QTimeLine::easingCurve()const

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

See QTimeLine::endFrame()const

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

See QTimeLine::frameForTime(int)const

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

See QTimeLine::loopCount()const

*/ @io.qt.QtPropertyReader(name="loopCount") @io.qt.QtUninvokable public final int loopCount(){ return loopCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.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)

*/ @io.qt.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)

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

See QTimeLine::setDuration(int)

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

See QTimeLine::setEasingCurve(QEasingCurve)

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

See QTimeLine::setEndFrame(int)

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

See QTimeLine::setFrameRange(int,int)

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

See QTimeLine::setLoopCount(int)

*/ @io.qt.QtPropertyWriter(name="loopCount") @io.qt.QtUninvokable public final void setLoopCount(int count){ setLoopCount_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), count); } @io.qt.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)

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

See QTimeLine::setUpdateInterval(int)

*/ @io.qt.QtPropertyWriter(name="updateInterval") @io.qt.QtUninvokable public final void setUpdateInterval(int interval){ setUpdateInterval_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), interval); } @io.qt.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

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

See QTimeLine::state()const

*/ @io.qt.QtUninvokable public final io.qt.core.QTimeLine.State state(){ return io.qt.core.QTimeLine.State.resolve(state_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.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

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

See QObject::timerEvent(QTimerEvent*)

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

See QTimeLine::valueForTime(int)const

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy