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 char *pDebugName)
 
 Timer (const Timer &rTimer)
 
virtual ~Timer () override
 
Timeroperator= (const Timer &rTimer)
 
virtual void Invoke () override
 
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 (bool bStartTimer=true) override
 
- Public Member Functions inherited from Task
 Task (const char *pDebugName)
 
 Task (const Task &rTask)
 
virtual ~Task () COVERITY_NOEXCEPT_FALSE
 
Taskoperator= (const Task &rTask)
 
void SetPriority (TaskPriority ePriority)
 
TaskPriority GetPriority () const
 
const char * GetDebugName () const
 
virtual void Invoke ()=0
 
virtual void Start (bool bStartTimer=true)
 
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 char *pDebugName)
 
- Protected Member Functions inherited from Task
const ImplSchedulerDataGetSchedulerData () const
 
virtual void SetDeletionFlags ()
 
virtual sal_uInt64 UpdateMinPeriod (sal_uInt64 nTimeNow) const=0
 
- Static Protected Member Functions inherited from Task
static void StartTimer (sal_uInt64 nMS)
 

Detailed Description

Definition at line 50 of file scheduler.hxx.

Constructor & Destructor Documentation

◆ Scheduler()

Scheduler::Scheduler ( )

Definition at line 47 of file scheduler.cxx.

References Task::SetPriority().

◆ ~Scheduler()

Scheduler::~Scheduler ( )
overridevirtual

Definition at line 56 of file scheduler.cxx.

References Task::Stop().

Member Function Documentation

◆ checkTimeout()

void Scheduler::checkTimeout ( )

◆ GetTime()

SAL_DLLPRIVATE sal_uInt32 sdr::animation::Scheduler::GetTime ( ) const
inline

◆ InsertEvent()

void Scheduler::InsertEvent ( Event rNew)

Definition at line 144 of file scheduler.cxx.

References checkTimeout(), and mvEvents.

Referenced by sdr::animation::PrimitiveAnimation::prepareNextEvent().

◆ Invoke()

void Scheduler::Invoke ( )
overridevirtual

Reimplemented from Timer.

Definition at line 61 of file scheduler.cxx.

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

◆ IsPaused()

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

Definition at line 90 of file scheduler.hxx.

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

◆ RemoveEvent()

void Scheduler::RemoveEvent ( Event pOld)

◆ SetPaused()

void Scheduler::SetPaused ( bool  bNew)

Definition at line 162 of file scheduler.cxx.

References checkTimeout(), and mbIsPaused.

Referenced by SdrPaintView::SetAnimationPause().

◆ SetTime()

void Scheduler::SetTime ( sal_uInt32  nTime)

◆ triggerEvents()

void Scheduler::triggerEvents ( )

Definition at line 74 of file scheduler.cxx.

References mnTime, and mvEvents.

Referenced by Invoke(), and SetTime().

Member Data Documentation

◆ mbIsPaused

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

Definition at line 63 of file scheduler.hxx.

Referenced by SetPaused().

◆ mnDeltaTime

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

Definition at line 56 of file scheduler.hxx.

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

◆ mnTime

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

Definition at line 53 of file scheduler.hxx.

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

◆ mvEvents

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

Definition at line 59 of file scheduler.hxx.

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


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