io.qt.core.QVariantAnimation Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.core;
import io.qt.*;
/**
* Base class for animations
* Java wrapper for Qt class QVariantAnimation
*/
public class QVariantAnimation extends io.qt.core.QAbstractAnimation
{
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QVariantAnimation.class);
/**
* See QVariantAnimation:: valueChanged(QVariant)
*/
@QtPropertyNotify(name="currentValue")
public final @NonNull Signal1 valueChanged = new Signal1<>();
/**
* See QVariantAnimation:: QVariantAnimation(QObject*)
*/
public QVariantAnimation(io.qt.core.@Nullable QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QVariantAnimation instance, io.qt.core.QObject parent);
/**
* See QVariantAnimation:: 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 QVariantAnimation:: 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 QVariantAnimation:: currentValue()const
*/
@QtPropertyReader(name="currentValue")
@QtUninvokable
public final java.lang.Object currentValue(){
return currentValue_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.Object currentValue_native_constfct(long __this__nativeId);
/**
* See QVariantAnimation:: 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 QVariantAnimation:: endValue()const
*/
@QtPropertyReader(name="endValue")
@QtUninvokable
public final java.lang.Object endValue(){
return endValue_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.Object endValue_native_constfct(long __this__nativeId);
/**
* See QVariantAnimation:: keyValueAt(qreal)const
*/
@QtUninvokable
public final java.lang.Object keyValueAt(double step){
return keyValueAt_native_qreal_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), step);
}
@QtUninvokable
private native java.lang.Object keyValueAt_native_qreal_constfct(long __this__nativeId, double step);
/**
* See QVariantAnimation:: keyValues()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QList> keyValues(){
return keyValues_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QList> keyValues_native_constfct(long __this__nativeId);
/**
* See QVariantAnimation:: setDuration(int)
*/
@QtPropertyWriter(name="duration")
@QtUninvokable
public final void setDuration(int msecs){
setDuration_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), msecs);
}
@QtUninvokable
private native void setDuration_native_int(long __this__nativeId, int msecs);
/**
* See QVariantAnimation:: setEasingCurve(QEasingCurve)
*/
@QtPropertyWriter(name="easingCurve")
@QtUninvokable
public final void setEasingCurve(io.qt.core.@NonNull QEasingCurve easing){
setEasingCurve_native_cref_QEasingCurve(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(easing));
}
@QtUninvokable
private native void setEasingCurve_native_cref_QEasingCurve(long __this__nativeId, long easing);
/**
* See QVariantAnimation:: setEndValue(QVariant)
*/
@QtPropertyWriter(name="endValue")
@QtUninvokable
public final void setEndValue(java.lang.Object value){
setEndValue_native_cref_QVariant(QtJambi_LibraryUtilities.internal.nativeId(this), value);
}
@QtUninvokable
private native void setEndValue_native_cref_QVariant(long __this__nativeId, java.lang.Object value);
/**
* See QVariantAnimation:: setKeyValueAt(qreal, QVariant)
*/
@QtUninvokable
public final void setKeyValueAt(double step, java.lang.Object value){
setKeyValueAt_native_qreal_cref_QVariant(QtJambi_LibraryUtilities.internal.nativeId(this), step, value);
}
@QtUninvokable
private native void setKeyValueAt_native_qreal_cref_QVariant(long __this__nativeId, double step, java.lang.Object value);
/**
* See QVariantAnimation:: setKeyValues(QVariantAnimation::KeyValues)
*/
@QtUninvokable
public final void setKeyValues(java.util.@NonNull Collection extends io.qt.core.@NonNull QPair> values){
setKeyValues_native_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), values);
}
@QtUninvokable
private native void setKeyValues_native_cref_QList(long __this__nativeId, java.util.Collection extends io.qt.core.QPair> values);
/**
* See QVariantAnimation:: setStartValue(QVariant)
*/
@QtPropertyWriter(name="startValue")
@QtUninvokable
public final void setStartValue(java.lang.Object value){
setStartValue_native_cref_QVariant(QtJambi_LibraryUtilities.internal.nativeId(this), value);
}
@QtUninvokable
private native void setStartValue_native_cref_QVariant(long __this__nativeId, java.lang.Object value);
/**
* See QVariantAnimation:: startValue()const
*/
@QtPropertyReader(name="startValue")
@QtUninvokable
public final java.lang.Object startValue(){
return startValue_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.Object startValue_native_constfct(long __this__nativeId);
/**
* See QAbstractAnimation:: duration()const
*/
@QtPropertyReader(name="duration")
@QtUninvokable
@Override
public int duration(){
return duration_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int duration_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
@Override
public boolean event(io.qt.core.@Nullable QEvent event){
java.util.Objects.requireNonNull(event, "Argument 'event': null not expected.");
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 QVariantAnimation:: interpolated(QVariant, QVariant, qreal)const
*/
@QtUninvokable
protected java.lang.Object interpolated(java.lang.Object from, java.lang.Object to, double progress){
return interpolated_native_cref_QVariant_cref_QVariant_qreal_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), from, to, progress);
}
@QtUninvokable
private native java.lang.Object interpolated_native_cref_QVariant_cref_QVariant_qreal_constfct(long __this__nativeId, java.lang.Object from, java.lang.Object to, double progress);
/**
* See QAbstractAnimation:: updateCurrentTime(int)
*/
@QtUninvokable
@Override
protected void updateCurrentTime(int arg__1){
updateCurrentTime_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@QtUninvokable
private native void updateCurrentTime_native_int(long __this__nativeId, int arg__1);
/**
* See QVariantAnimation:: updateCurrentValue(QVariant)
*/
@QtUninvokable
protected void updateCurrentValue(java.lang.Object value){
updateCurrentValue_native_cref_QVariant(QtJambi_LibraryUtilities.internal.nativeId(this), value);
}
@QtUninvokable
private native void updateCurrentValue_native_cref_QVariant(long __this__nativeId, java.lang.Object value);
/**
* See QAbstractAnimation:: updateState(QAbstractAnimation::State, QAbstractAnimation::State)
*/
@QtUninvokable
@Override
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 QVariantAnimation(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QVariantAnimation(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QVariantAnimation instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QVariantAnimation(io.qt.core.QObject)}
* with parent = null
.
*/
public QVariantAnimation() {
this((io.qt.core.QObject)null);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #currentValue()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final java.lang.Object getCurrentValue() {
return currentValue();
}
/**
* @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 #endValue()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final java.lang.Object getEndValue() {
return endValue();
}
/**
* Overloaded function for {@link #setEasingCurve(io.qt.core.QEasingCurve)}.
*/
@QtUninvokable
public final void setEasingCurve(io.qt.core.QEasingCurve.@NonNull Type easing) {
setEasingCurve(new io.qt.core.QEasingCurve(easing));
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #startValue()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final java.lang.Object getStartValue() {
return startValue();
}
}