namespace slideshow::internal
{ /** This class handles events in a presentation. Events are timeinstantswheree.g.effectsstart.
*/ class EventQueue
{ public:
EventQueue(
std::shared_ptr< ::canvas::tools::ElapsedTime > pPresTimer );
/** Add the given event to the queue. The event is fired at,orshortlyafter,itsEvent::getActivationTimeinstant.
*/ bool addEvent( const EventSharedPtr& event );
/** Add the given event to the queue. The event is fired at,orshortlyafter,itsEvent::getActivationTimeinstant. ThedifferencetoaddEvent()isthateventsaddedduring process()arepostponedtonextprocess().
*/ bool addEventForNextRound( const EventSharedPtr& event );
/** Another way to control the order of asynchronous event execution.Usethismethodtoscheduleeventsthatareto beexecutedafterallregulareventsthathavenodelay, evenwhentheyschedulenewregulareventswithoutdelay.
*/ bool addEventWhenQueueIsEmpty (const EventSharedPtr& rpEvent);
// perform timing of events via relative time // measurements. The world time starts, when the // EventQueue object is created
std::shared_ptr< ::canvas::tools::ElapsedTime > mpTimer;
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.