Windows2003-3790/windows/advcore/duser/engine/ctrl/sequence.inl
2020-09-30 16:53:55 +02:00

70 lines
1.6 KiB
C++

#if !defined(CTRL__Sequence_inl__INCLUDED)
#define CTRL__Sequence_inl__INCLUDED
#pragma once
#if ENABLE_MSGTABLE_API
/***************************************************************************\
*****************************************************************************
*
* class DuSequence
*
*****************************************************************************
\***************************************************************************/
//------------------------------------------------------------------------------
inline
DuSequence::DuSequence()
{
m_cRef = 1;
}
//------------------------------------------------------------------------------
inline
DuSequence::~DuSequence()
{
Stop();
RemoveAllKeyFrames();
SafeRelease(m_pflow);
}
//------------------------------------------------------------------------------
inline void
DuSequence::AddRef()
{
++m_cRef;
}
//------------------------------------------------------------------------------
inline void
DuSequence::Release()
{
if (--m_cRef == 0)
Delete();
}
//------------------------------------------------------------------------------
inline void
DuSequence::SortKeyFrames()
{
qsort(m_arSeqData.GetData(), m_arSeqData.GetSize(), sizeof(SeqData), CompareItems);
}
//------------------------------------------------------------------------------
inline BOOL
DuSequence::IsPlaying() const
{
return m_pgvSubject != NULL;
}
#endif // ENABLE_MSGTABLE_API
#endif // CTRL__Sequence_inl__INCLUDED