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

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

The newest version!
package io.qt.core;


/**
 * 

Easing curves for controlling animation

*

Java wrapper for Qt class QEasingCurve

*/ public class QEasingCurve extends io.qt.QtObject implements java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } /** * This variable stores the meta-object for the class. */ public static final io.qt.core.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QEasingCurve.class); /** *

Java wrapper for Qt enum QEasingCurve::Type

*/ public enum Type implements io.qt.QtEnumerator { Linear(0), InQuad(1), OutQuad(2), InOutQuad(3), OutInQuad(4), InCubic(5), OutCubic(6), InOutCubic(7), OutInCubic(8), InQuart(9), OutQuart(10), InOutQuart(11), OutInQuart(12), InQuint(13), OutQuint(14), InOutQuint(15), OutInQuint(16), InSine(17), OutSine(18), InOutSine(19), OutInSine(20), InExpo(21), OutExpo(22), InOutExpo(23), OutInExpo(24), InCirc(25), OutCirc(26), InOutCirc(27), OutInCirc(28), InElastic(29), OutElastic(30), InOutElastic(31), OutInElastic(32), InBack(33), OutBack(34), InOutBack(35), OutInBack(36), InBounce(37), OutBounce(38), InOutBounce(39), OutInBounce(40), InCurve(41), OutCurve(42), SineCurve(43), CosineCurve(44), BezierSpline(45), TCBSpline(46), Custom(47), NCurveTypes(48); private Type(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 Type resolve(int value) { switch (value) { case 0: return Linear; case 1: return InQuad; case 2: return OutQuad; case 3: return InOutQuad; case 4: return OutInQuad; case 5: return InCubic; case 6: return OutCubic; case 7: return InOutCubic; case 8: return OutInCubic; case 9: return InQuart; case 10: return OutQuart; case 11: return InOutQuart; case 12: return OutInQuart; case 13: return InQuint; case 14: return OutQuint; case 15: return InOutQuint; case 16: return OutInQuint; case 17: return InSine; case 18: return OutSine; case 19: return InOutSine; case 20: return OutInSine; case 21: return InExpo; case 22: return OutExpo; case 23: return InOutExpo; case 24: return OutInExpo; case 25: return InCirc; case 26: return OutCirc; case 27: return InOutCirc; case 28: return OutInCirc; case 29: return InElastic; case 30: return OutElastic; case 31: return InOutElastic; case 32: return OutInElastic; case 33: return InBack; case 34: return OutBack; case 35: return InOutBack; case 36: return OutInBack; case 37: return InBounce; case 38: return OutBounce; case 39: return InOutBounce; case 40: return OutInBounce; case 41: return InCurve; case 42: return OutCurve; case 43: return SineCurve; case 44: return CosineCurve; case 45: return BezierSpline; case 46: return TCBSpline; case 47: return Custom; case 48: return NCurveTypes; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt function pointer QEasingCurve::EasingFunction

*/ @FunctionalInterface public interface EasingFunction extends io.qt.QtObjectInterface, java.util.function.DoubleUnaryOperator { /** *

Implementor class for interface {@link EasingFunction}

*/ public static abstract class Impl extends io.qt.QtObject implements EasingFunction{ static { QtJambi_LibraryUtilities.initialize(); } public Impl(){ super((QPrivateConstructor)null); initialize_native(this); } protected Impl(QPrivateConstructor p){ super(p); } private static native void initialize_native(EasingFunction instance); @io.qt.NativeAccess private final static class ConcreteWrapper extends Impl { private ConcreteWrapper(QPrivateConstructor c){ super(c); } @Override public native double applyAsDouble(double progress); } } } /** *

Overloaded constructor for {@link #QEasingCurve(io.qt.core.QEasingCurve.Type)} * with type = io.qt.core.QEasingCurve.Type.Linear.

*/ public QEasingCurve() { this(io.qt.core.QEasingCurve.Type.Linear); } /** *

See QEasingCurve::QEasingCurve(QEasingCurve::Type)

*/ public QEasingCurve(io.qt.core.QEasingCurve.Type type){ super((QPrivateConstructor)null); initialize_native(this, type); } private native static void initialize_native(QEasingCurve instance, io.qt.core.QEasingCurve.Type type); /** *

See QEasingCurve::QEasingCurve(QEasingCurve)

*/ public QEasingCurve(io.qt.core.QEasingCurve other){ super((QPrivateConstructor)null); initialize_native(this, other); } private native static void initialize_native(QEasingCurve instance, io.qt.core.QEasingCurve other); /** *

See QEasingCurve::addCubicBezierSegment(QPointF,QPointF,QPointF)

*/ @io.qt.QtUninvokable public final void addCubicBezierSegment(io.qt.core.QPointF c1, io.qt.core.QPointF c2, io.qt.core.QPointF endPoint){ addCubicBezierSegment_native_cref_QPointF_cref_QPointF_cref_QPointF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(c1), QtJambi_LibraryUtilities.internal.checkedNativeId(c2), QtJambi_LibraryUtilities.internal.checkedNativeId(endPoint)); } @io.qt.QtUninvokable private native void addCubicBezierSegment_native_cref_QPointF_cref_QPointF_cref_QPointF(long __this__nativeId, long c1, long c2, long endPoint); /** *

See QEasingCurve::addTCBSegment(QPointF,qreal,qreal,qreal)

*/ @io.qt.QtUninvokable public final void addTCBSegment(io.qt.core.QPointF nextPoint, double t, double c, double b){ addTCBSegment_native_cref_QPointF_qtjambireal_qtjambireal_qtjambireal(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(nextPoint), t, c, b); } @io.qt.QtUninvokable private native void addTCBSegment_native_cref_QPointF_qtjambireal_qtjambireal_qtjambireal(long __this__nativeId, long nextPoint, double t, double c, double b); /** *

See QEasingCurve::amplitude()const

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

See QEasingCurve::customType()const

*/ @io.qt.QtUninvokable public final io.qt.core.QEasingCurve.EasingFunction customType(){ return customType_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QEasingCurve.EasingFunction customType_native_constfct(long __this__nativeId); @io.qt.QtUninvokable public void writeTo(io.qt.core.QDataStream arg__1){ java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected."); writeTo_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @io.qt.QtUninvokable private native void writeTo_native_ref_QDataStream(long __this__nativeId, long arg__1); /** *

See QEasingCurve::operator==(QEasingCurve)const

*/ @io.qt.QtUninvokable private final boolean operator_equal(io.qt.core.QEasingCurve other){ return operator_equal_native_cref_QEasingCurve_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @io.qt.QtUninvokable private native boolean operator_equal_native_cref_QEasingCurve_constfct(long __this__nativeId, long other); @io.qt.QtUninvokable public void readFrom(io.qt.core.QDataStream arg__1){ java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected."); readFrom_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @io.qt.QtUninvokable private native void readFrom_native_ref_QDataStream(long __this__nativeId, long arg__1); /** *

See QEasingCurve::overshoot()const

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

See QEasingCurve::period()const

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

See QEasingCurve::setAmplitude(qreal)

*/ @io.qt.QtUninvokable public final void setAmplitude(double amplitude){ setAmplitude_native_qtjambireal(QtJambi_LibraryUtilities.internal.nativeId(this), amplitude); } @io.qt.QtUninvokable private native void setAmplitude_native_qtjambireal(long __this__nativeId, double amplitude); /** *

See QEasingCurve::setCustomType(QEasingCurve::EasingFunction)

*/ @io.qt.QtUninvokable public final void setCustomType(io.qt.core.QEasingCurve.EasingFunction func){ setCustomType_native_QEasingCurve_EasingFunction(QtJambi_LibraryUtilities.internal.nativeId(this), func); } @io.qt.QtUninvokable private native void setCustomType_native_QEasingCurve_EasingFunction(long __this__nativeId, io.qt.core.QEasingCurve.EasingFunction func); /** *

See QEasingCurve::setOvershoot(qreal)

*/ @io.qt.QtUninvokable public final void setOvershoot(double overshoot){ setOvershoot_native_qtjambireal(QtJambi_LibraryUtilities.internal.nativeId(this), overshoot); } @io.qt.QtUninvokable private native void setOvershoot_native_qtjambireal(long __this__nativeId, double overshoot); /** *

See QEasingCurve::setPeriod(qreal)

*/ @io.qt.QtUninvokable public final void setPeriod(double period){ setPeriod_native_qtjambireal(QtJambi_LibraryUtilities.internal.nativeId(this), period); } @io.qt.QtUninvokable private native void setPeriod_native_qtjambireal(long __this__nativeId, double period); /** *

See QEasingCurve::setType(QEasingCurve::Type)

*/ @io.qt.QtUninvokable public final void setType(io.qt.core.QEasingCurve.Type type){ setType_native_QEasingCurve_Type(QtJambi_LibraryUtilities.internal.nativeId(this), type.value()); } @io.qt.QtUninvokable private native void setType_native_QEasingCurve_Type(long __this__nativeId, int type); /** *

See QEasingCurve::swap(QEasingCurve&)

*/ @io.qt.QtUninvokable public final void swap(io.qt.core.QEasingCurve other){ java.util.Objects.requireNonNull(other, "Argument 'other': null not expected."); swap_native_ref_QEasingCurve(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @io.qt.QtUninvokable private native void swap_native_ref_QEasingCurve(long __this__nativeId, long other); /** *

See QEasingCurve::toCubicSpline()const

*/ @io.qt.QtUninvokable public final io.qt.core.QList toCubicSpline(){ return toCubicSpline_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QList toCubicSpline_native_constfct(long __this__nativeId); /** *

See QEasingCurve::type()const

*/ @io.qt.QtUninvokable public final io.qt.core.QEasingCurve.Type type(){ return io.qt.core.QEasingCurve.Type.resolve(type_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int type_native_constfct(long __this__nativeId); /** *

See QEasingCurve::valueForProgress(qreal)const

*/ @io.qt.QtUninvokable public final double valueForProgress(double progress){ return valueForProgress_native_qtjambireal_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), progress); } @io.qt.QtUninvokable private native double valueForProgress_native_qtjambireal_constfct(long __this__nativeId, double progress); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QEasingCurve(QPrivateConstructor p) { super(p); } @Override @io.qt.QtUninvokable public boolean equals(Object other) { if (other instanceof io.qt.core.QEasingCurve) { return operator_equal((io.qt.core.QEasingCurve) other); } return false; } @io.qt.QtUninvokable @Override public int hashCode() { return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native static int hashCode_native(long __this_nativeId); @Override @io.qt.QtUninvokable public String toString() { return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private static native String toString_native(long __this_nativeId); @Override public QEasingCurve clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native QEasingCurve clone_native(long __this_nativeId); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy