Go to the documentation of this file. 1 #ifndef MYTHUIANIMATION_H
2 #define MYTHUIANIMATION_H
5 #include <QVariantAnimation>
23 QPointF
GetCentre(
const QRect rect,
int xoff,
int yoff)
const
25 float x =
static_cast<float>(xoff) +
static_cast<float>(rect.left());
26 float y =
static_cast<float>(yoff) +
static_cast<float>(rect.top());
28 x +=
static_cast<float>(rect.width()) / 2.0F;
30 y +=
static_cast<float>(rect.height()) / 2.0F;
32 x +=
static_cast<float>(rect.width());
34 y +=
static_cast<float>(rect.height());
75 static void parseAlpha(
const QDomElement& element, QVariant& startValue,
77 static void parsePosition(
const QDomElement& element, QVariant& startValue,
79 static void parseZoom(
const QDomElement& element, QVariant& startValue,
81 static void parseAngle(
const QDomElement& element, QVariant& startValue,
95 #endif // MYTHUIANIMATION_H
static void ParseElement(const QDomElement &element, MythUIType *parent)
static void ParseSection(const QDomElement &element, MythUIType *parent, Trigger trigger)
static void parseZoom(const QDomElement &element, QVariant &startValue, QVariant &endValue)
void CopyFrom(const MythUIAnimation *animation)
MythUIAnimation(MythUIType *parent=nullptr, Trigger trigger=AboutToShow, Type type=Alpha)
UIEffects::Centre m_centre
static void parsePosition(const QDomElement &element, QVariant &startValue, QVariant &endValue, MythUIType *parent)
Trigger GetTrigger(void) const
static void parseAngle(const QDomElement &element, QVariant &startValue, QVariant &endValue)
QPointF GetCentre(const QRect rect, int xoff, int yoff) const
void SetLooped(bool looped)
void updateCurrentValue(const QVariant &value) override
void SetEasingCurve(const QString &curve)
The base class on which all widgets and screens are based.
static void parseAlpha(const QDomElement &element, QVariant &startValue, QVariant &endValue)
std::chrono::milliseconds currentMSecsSinceEpochAsDuration(void)
void IncrementCurrentTime(void)
void SetReversible(bool rev)
void SetCentre(const QString ¢re)
QRect GetExtent(QSize size) const
std::chrono::milliseconds m_lastUpdate