MythTV
master
|
#include <libmythui/mythuianimation.h>
Public Types | |
enum | Type : std::uint8_t { Alpha, Position, Zoom, HorizontalZoom, VerticalZoom, Angle } |
enum | Trigger : std::uint8_t { AboutToHide, AboutToShow } |
Public Member Functions | |
MythUIAnimation (MythUIType *parent=nullptr, Trigger trigger=AboutToShow, Type type=Alpha) | |
void | Activate (void) |
void | CopyFrom (const MythUIAnimation *animation) |
Trigger | GetTrigger (void) const |
QVariant | Value () const |
bool | IsActive () const |
void | updateCurrentValue (const QVariant &value) override |
void | IncrementCurrentTime (void) |
void | SetEasingCurve (const QString &curve) |
void | SetCentre (const QString ¢re) |
void | SetLooped (bool looped) |
void | SetReversible (bool rev) |
Static Public Member Functions | |
static void | ParseElement (const QDomElement &element, MythUIType *parent) |
Static Private Member Functions | |
static void | ParseSection (const QDomElement &element, MythUIType *parent, Trigger trigger) |
static void | parseAlpha (const QDomElement &element, QVariant &startValue, QVariant &endValue) |
static void | parsePosition (const QDomElement &element, QVariant &startValue, QVariant &endValue, MythUIType *parent) |
static void | parseZoom (const QDomElement &element, QVariant &startValue, QVariant &endValue) |
static void | parseAngle (const QDomElement &element, QVariant &startValue, QVariant &endValue) |
Static Private Member Functions inherited from XMLParseBase | |
static QString | getFirstText (QDomElement &element) |
static bool | parseBool (const QString &text) |
static bool | parseBool (QDomElement &element) |
static MythPoint | parsePoint (const QString &text, bool normalize=true) |
static MythPoint | parsePoint (QDomElement &element, bool normalize=true) |
static QSize | parseSize (const QString &text, bool normalize=true) |
static QSize | parseSize (QDomElement &element, bool normalize=true) |
static MythRect | parseRect (const QString &text, bool normalize=true) |
static MythRect | parseRect (QDomElement &element, bool normalize=true) |
static int | parseAlignment (const QString &text) |
static int | parseAlignment (QDomElement &element) |
static QBrush | parseGradient (const QDomElement &element) |
static QString | parseText (QDomElement &element) |
static MythUIType * | GetGlobalObjectStore (void) |
static void | ClearGlobalObjectStore (void) |
static void | ParseChildren (const QString &filename, QDomElement &element, MythUIType *parent, bool showWarnings) |
static MythUIType * | ParseUIType (const QString &filename, QDomElement &element, const QString &type, MythUIType *parent, MythScreenType *screen, bool showWarnings, QMap< QString, QString > &parentDependsMap) |
static bool | WindowExists (const QString &xmlfile, const QString &windowname) |
static bool | LoadWindowFromXML (const QString &xmlfile, const QString &windowname, MythUIType *parent) |
static bool | LoadBaseTheme (void) |
static bool | LoadBaseTheme (const QString &baseTheme) |
static bool | CopyWindowFromBase (const QString &windowname, MythScreenType *win) |
Private Attributes | |
MythUIType * | m_parent {nullptr} |
Type | m_type {Alpha} |
Trigger | m_trigger {AboutToShow} |
UIEffects::Centre | m_centre {UIEffects::Middle} |
QVariant | m_value |
bool | m_active {false} |
bool | m_looped {false} |
bool | m_reversible {false} |
std::chrono::milliseconds | m_lastUpdate { MythDate::currentMSecsSinceEpochAsDuration() } |
Definition at line 47 of file mythuianimation.h.
enum MythUIAnimation::Type : std::uint8_t |
Enumerator | |
---|---|
Alpha | |
Position | |
Zoom | |
HorizontalZoom | |
VerticalZoom | |
Angle |
Definition at line 50 of file mythuianimation.h.
enum MythUIAnimation::Trigger : std::uint8_t |
Enumerator | |
---|---|
AboutToHide | |
AboutToShow |
Definition at line 51 of file mythuianimation.h.
|
inlineexplicit |
Definition at line 53 of file mythuianimation.h.
Referenced by ParseSection().
void MythUIAnimation::Activate | ( | void | ) |
Definition at line 50 of file mythuianimation.cpp.
Referenced by MythUIWebBrowser::Scroll().
void MythUIAnimation::CopyFrom | ( | const MythUIAnimation * | animation | ) |
Definition at line 82 of file mythuianimation.cpp.
|
inline |
Definition at line 58 of file mythuianimation.h.
|
inline |
Definition at line 59 of file mythuianimation.h.
|
inline |
Definition at line 60 of file mythuianimation.h.
Referenced by MythUIWebBrowser::Pulse().
|
override |
Definition at line 57 of file mythuianimation.cpp.
void MythUIAnimation::IncrementCurrentTime | ( | void | ) |
Definition at line 99 of file mythuianimation.cpp.
Referenced by MythUIWebBrowser::Pulse().
void MythUIAnimation::SetEasingCurve | ( | const QString & | curve | ) |
Definition at line 133 of file mythuianimation.cpp.
void MythUIAnimation::SetCentre | ( | const QString & | centre | ) |
Definition at line 182 of file mythuianimation.cpp.
|
inline |
Definition at line 67 of file mythuianimation.h.
|
inline |
Definition at line 68 of file mythuianimation.h.
|
static |
Definition at line 195 of file mythuianimation.cpp.
Referenced by MythUIType::ParseElement().
|
staticprivate |
Definition at line 214 of file mythuianimation.cpp.
Referenced by ParseElement().
|
staticprivate |
Definition at line 289 of file mythuianimation.cpp.
Referenced by ParseSection().
|
staticprivate |
Definition at line 296 of file mythuianimation.cpp.
Referenced by ParseSection().
|
staticprivate |
Definition at line 324 of file mythuianimation.cpp.
Referenced by ParseSection().
|
staticprivate |
Definition at line 331 of file mythuianimation.cpp.
Referenced by ParseSection().
|
private |
Definition at line 84 of file mythuianimation.h.
Referenced by updateCurrentValue().
Definition at line 85 of file mythuianimation.h.
Referenced by CopyFrom(), and updateCurrentValue().
|
private |
Definition at line 86 of file mythuianimation.h.
Referenced by CopyFrom(), and GetTrigger().
|
private |
Definition at line 87 of file mythuianimation.h.
Referenced by CopyFrom(), SetCentre(), and updateCurrentValue().
|
private |
Definition at line 88 of file mythuianimation.h.
Referenced by CopyFrom(), updateCurrentValue(), and Value().
Definition at line 89 of file mythuianimation.h.
Referenced by Activate(), IncrementCurrentTime(), IsActive(), and updateCurrentValue().
Definition at line 90 of file mythuianimation.h.
Referenced by CopyFrom(), IncrementCurrentTime(), and SetLooped().
Definition at line 91 of file mythuianimation.h.
Referenced by CopyFrom(), IncrementCurrentTime(), and SetReversible().
|
private |
Definition at line 92 of file mythuianimation.h.
Referenced by IncrementCurrentTime().