The Nebula Device 3: CoreAnimation::AnimEvent Class Reference

The Nebula Device 3

CoreAnimation::AnimEvent Class Reference

#include <animevent.h>


Detailed Description

An animation event associates a name with a point in time. The event will be triggered when the play-cursor passes the point in time of the event. AnimEvents are attached to anim clips.

(C) 2008 Radon Labs GmbH

Public Member Functions

 AnimEvent ()
 constructor
 AnimEvent (const Util::StringAtom &name, Timing::Tick time)
 constructor with name and time
 AnimEvent (const Util::StringAtom &name, const Util::StringAtom &category, Timing::Tick time)
 constructor with name, category and time
void SetName (const Util::StringAtom &name)
 set the name of the event
const Util::StringAtomGetName () const
 get the name of the event
void SetCategory (const Util::StringAtom &str)
 set the name of the category
const Util::StringAtomGetCategory () const
 get the name of the category
bool HasCategory () const
 check if has category
void SetTime (Timing::Tick t)
 set the point-in-time when the event should trigger in seconds
Timing::Tick GetTime () const
 get the time when the event should trigger

Friends

bool operator== (const AnimEvent &a, const AnimEvent &b)
 equality operator (time only)
bool operator!= (const AnimEvent &a, const AnimEvent &b)
 inequality operator (time only)
bool operator< (const AnimEvent &a, const AnimEvent &b)
 less-then operator (time only)
bool operator> (const AnimEvent &a, const AnimEvent &b)
 greather-then operator (time only)
bool operator<= (const AnimEvent &a, const AnimEvent &b)
 less-or-equal operator (time only)
bool operator>= (const AnimEvent &a, const AnimEvent &b)
 greather-or-equal operator (time only)