qvariantanimation.sip 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. // qvariantanimation.sip generated by MetaSIP
  2. //
  3. // This file is part of the QtCore Python extension module.
  4. //
  5. // Copyright (c) 2026 Riverbank Computing Limited <info@riverbankcomputing.com>
  6. //
  7. // This file is part of PyQt6.
  8. //
  9. // This file may be used under the terms of the GNU General Public License
  10. // version 3.0 as published by the Free Software Foundation and appearing in
  11. // the file LICENSE included in the packaging of this file. Please review the
  12. // following information to ensure the GNU General Public License version 3.0
  13. // requirements will be met: http://www.gnu.org/copyleft/gpl.html.
  14. //
  15. // If you do not wish to use this file under the terms of the GPL version 3.0
  16. // then you may purchase a commercial license. For more information contact
  17. // info@riverbankcomputing.com.
  18. //
  19. // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
  20. // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  21. class QVariantAnimation : public QAbstractAnimation
  22. {
  23. %TypeHeaderCode
  24. #include <qvariantanimation.h>
  25. %End
  26. public:
  27. typedef QList<std::pair<qreal, QVariant> > KeyValues;
  28. QVariantAnimation(QObject *parent /TransferThis/ = 0);
  29. virtual ~QVariantAnimation();
  30. QVariant startValue() const;
  31. void setStartValue(const QVariant &value);
  32. QVariant endValue() const;
  33. void setEndValue(const QVariant &value);
  34. QVariant keyValueAt(qreal step) const;
  35. void setKeyValueAt(qreal step, const QVariant &value);
  36. QVariantAnimation::KeyValues keyValues() const;
  37. void setKeyValues(const QVariantAnimation::KeyValues &values);
  38. QVariant currentValue() const;
  39. virtual int duration() const;
  40. void setDuration(int msecs);
  41. QEasingCurve easingCurve() const;
  42. void setEasingCurve(const QEasingCurve &easing);
  43. signals:
  44. void valueChanged(const QVariant &value);
  45. protected:
  46. virtual bool event(QEvent *event);
  47. virtual void updateCurrentTime(int);
  48. virtual void updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState);
  49. virtual void updateCurrentValue(const QVariant &value);
  50. virtual QVariant interpolated(const QVariant &from, const QVariant &to, qreal progress) const;
  51. };