LibreOffice Module svx (master)  1
Public Member Functions | Private Attributes | List of all members
sdr::animation::Scheduler Class Reference

#include <scheduler.hxx>

Inheritance diagram for sdr::animation::Scheduler:
[legend]
Collaboration diagram for sdr::animation::Scheduler:
[legend]

Public Member Functions

SAL_DLLPRIVATE Scheduler ()
 
virtual ~Scheduler () override
 
virtual void Invoke () override
 
SAL_DLLPRIVATE sal_uInt32 GetTime () const
 
SAL_DLLPRIVATE void SetTime (sal_uInt32 nTime)
 
SAL_DLLPRIVATE void triggerEvents ()
 
SAL_DLLPRIVATE void checkTimeout ()
 
void InsertEvent (Event &rNew)
 
SAL_DLLPRIVATE void RemoveEvent (Event *pOld)
 
SAL_DLLPRIVATE bool IsPaused () const
 
SAL_DLLPRIVATE void SetPaused (bool bNew)
 
- Public Member Functions inherited from Timer
 Timer (const sal_Char *pDebugName=nullptr)
 
 Timer (const Timer &rTimer)
 
virtual ~Timer () override
 
Timeroperator= (const Timer &rTimer)
 
void Invoke (Timer *arg)
 
void SetInvokeHandler (const Link< Timer *, void > &rLink)
 
void ClearInvokeHandler ()
 
void SetTimeout (sal_uInt64 nTimeoutMs)
 
sal_uInt64 GetTimeout () const
 
virtual void Start () override
 
- Public Member Functions inherited from Task
 Task (const sal_Char *pDebugName)
 
 Task (const Task &rTask)
 
virtual ~Task () COVERITY_NOEXCEPT_FALSE
 
Taskoperator= (const Task &rTask)
 
void SetPriority (TaskPriority ePriority)
 
TaskPriority GetPriority () const
 
void SetDebugName (const sal_Char *pDebugName)
 
const char * GetDebugName () const
 
void Stop ()
 
bool IsActive () const
 
void SetStatic ()
 
bool IsStatic () const
 

Private Attributes

sal_uInt32 mnTime
 
sal_uInt32 mnDeltaTime
 
std::vector< Event * > mvEvents
 
bool mbIsPaused
 

Additional Inherited Members

- Protected Member Functions inherited from Timer
virtual void SetDeletionFlags () override
 
virtual sal_uInt64 UpdateMinPeriod (sal_uInt64 nTimeNow) const override
 
 Timer (bool bAuto, const sal_Char *pDebugName)
 
- Protected Member Functions inherited from Task
const ImplSchedulerDataGetSchedulerData () const
 
- Static Protected Member Functions inherited from Task
static void StartTimer (sal_uInt64 nMS)
 

Detailed Description

Definition at line 52 of file scheduler.hxx.

Constructor & Destructor Documentation

Scheduler::Scheduler ( )

Definition at line 49 of file scheduler.cxx.

Scheduler::~Scheduler ( )
overridevirtual

Definition at line 56 of file scheduler.cxx.

References Task::Stop().

Member Function Documentation

void Scheduler::checkTimeout ( )
SAL_DLLPRIVATE sal_uInt32 sdr::animation::Scheduler::GetTime ( ) const
inline
void Scheduler::InsertEvent ( Event rNew)
void Scheduler::Invoke ( )
overridevirtual

Reimplemented from Timer.

Definition at line 61 of file scheduler.cxx.

References checkTimeout(), mnDeltaTime, mnTime, Task::Stop(), and triggerEvents().

SAL_DLLPRIVATE bool sdr::animation::Scheduler::IsPaused ( ) const
inline

Definition at line 92 of file scheduler.hxx.

Referenced by checkTimeout(), SdrPaintView::SetAnimationPause(), and SetTime().

void Scheduler::RemoveEvent ( Event pOld)
void Scheduler::SetPaused ( bool  bNew)

Definition at line 162 of file scheduler.cxx.

References checkTimeout(), and mbIsPaused.

Referenced by SdrPaintView::SetAnimationPause().

void Scheduler::SetTime ( sal_uInt32  nTime)
void Scheduler::triggerEvents ( )

Definition at line 74 of file scheduler.cxx.

References mnTime, and mvEvents.

Referenced by Invoke(), and SetTime().

Member Data Documentation

bool sdr::animation::Scheduler::mbIsPaused
private

Definition at line 65 of file scheduler.hxx.

Referenced by SetPaused().

sal_uInt32 sdr::animation::Scheduler::mnDeltaTime
private

Definition at line 58 of file scheduler.hxx.

Referenced by checkTimeout(), Invoke(), and SetTime().

sal_uInt32 sdr::animation::Scheduler::mnTime
private

Definition at line 55 of file scheduler.hxx.

Referenced by checkTimeout(), Invoke(), SetTime(), and triggerEvents().

std::vector<Event*> sdr::animation::Scheduler::mvEvents
private

Definition at line 61 of file scheduler.hxx.

Referenced by checkTimeout(), InsertEvent(), RemoveEvent(), SetTime(), and triggerEvents().


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