RSeries astromech firmware
AnimatedEvent Class Referenceabstract

#include <core/AnimatedEvent.h>

Detailed Description

Base class for all animated devices. AnimatedEvent::animate() is called for each device once through the main loop(). Subclasses should not call delay() or otherwise block.

+ Inheritance diagram for AnimatedEvent:

Public Member Functions

 AnimatedEvent ()
 Default Constructor. More...
 
void setLoopDoneCallback (AnimatedLoopDone loopProc)
 
virtual void animate ()=0
 Subclasses must implement this function to run through a single frame of animation/activity. More...
 

Static Public Member Functions

static void process ()
 Calls animate() for each created AnimatedEvent subclass. More...
 

Constructor & Destructor Documentation

◆ AnimatedEvent()

AnimatedEvent::AnimatedEvent ( )
inline

Default Constructor.

Registers the subclass to be called from the main loop()

Member Function Documentation

◆ animate()

◆ process()

static void AnimatedEvent::process ( )
inlinestatic

Calls animate() for each created AnimatedEvent subclass.

◆ setLoopDoneCallback()

void AnimatedEvent::setLoopDoneCallback ( AnimatedLoopDone  loopProc)
inline

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