MythTV  master
Public Member Functions | List of all members
PanAnimation Class Reference

Specialised animation for panning slideshow images (MythUI doesn't support panning) More...

#include <galleryslide.h>

Inheritance diagram for PanAnimation:
Inheritance graph
Collaboration diagram for PanAnimation:
Collaboration graph

Public Member Functions

 PanAnimation (Slide *image)
void updateCurrentValue (const QVariant &value) override
 Update pan value. More...
- Public Member Functions inherited from Animation
 Animation (Slide *image, Type type=Alpha)
 Create simple animation. More...
void Start (bool forwards=true, float speed=1.0) override
 Start a single animation. More...
void Pulse () override
 Progress single animation. More...
void Set (const QVariant &from, const QVariant &to, std::chrono::milliseconds duration=500ms, const QEasingCurve &curve=QEasingCurve::InOutCubic, UIEffects::Centre centre=UIEffects::Middle)
 Initialises an animation. More...
void updateCurrentValue (const QVariant &value) override
 Update animated value. More...
- Public Member Functions inherited from AbstractAnimation
 AbstractAnimation ()=default
virtual void Stop ()
virtual void SetSpeed (float speed)
virtual void Clear ()

Additional Inherited Members

- Public Types inherited from Animation
enum  Type {
  None, Alpha, Position, Zoom,
  HorizontalZoom, VerticalZoom, Angle
 Supported effects. More...
- Signals inherited from AbstractAnimation
void finished ()
 Signals animation has finished. More...
- Protected Slots inherited from AbstractAnimation
virtual void Finished ()
 To be called when animation completes. More...
- Protected Attributes inherited from Animation
Slidem_parent {nullptr}
 Image to be animated. More...
Type m_type
UIEffects::Centre m_centre {UIEffects::Middle}
std::chrono::milliseconds m_elapsed {0ms}
 Current millisec position within animation, 0..duration. More...
std::chrono::milliseconds m_lastUpdate { MythDate::currentMSecsSinceEpochAsDuration() }
- Protected Attributes inherited from AbstractAnimation
bool m_forwards {true}
 Play direction. More...
bool m_running {false}
 True whilst animation is active. More...
float m_speed {0.0F}
 Real-time = 1.0, Double-speed = 2.0. More...

Detailed Description

Specialised animation for panning slideshow images (MythUI doesn't support panning)

Definition at line 147 of file galleryslide.h.

Constructor & Destructor Documentation

◆ PanAnimation()

PanAnimation::PanAnimation ( Slide image)

Definition at line 150 of file galleryslide.h.

Member Function Documentation

◆ updateCurrentValue()

void PanAnimation::updateCurrentValue ( const QVariant &  value)

Update pan value.

valuePan position

Definition at line 266 of file galleryslide.cpp.

The documentation for this class was generated from the following files: