Class Event

Class Documentation

class Event

Public Functions

Event()
Event(uint32_t time, uint8_t *cue)

Constructor. Copies the provided Cue into the Event.

Parameters
  • time: Event’s start time.

  • Cue: The Cue to run.

Event(const Event &other)

Copy constructor. Added to support storing Events in a vector in PixelMaestro Studio.

Parameters

Event &operator=(const Event &other)

Copy assignment operator. Added to support storing Events in a vector in PixelMaestro Studio.

Return

New Event.

Parameters

bool operator==(const Event &other)
~Event()
uint8_t *get_cue() const

Returns the Event’s Cue. The Show passes this to the CueController when the Event runs.

Return

Cue.

uint32_t get_time() const

Returns the time that this Event will run.

Return

Event’s start time.

void set_cue(uint8_t *cue)

Sets the Event’s Cue.

Parameters
  • cue: Cue to run when the Event is triggered.

void set_time(uint32_t time)

Sets the Event’s start time.

Parameters
  • time: Time that the Event is triggered.

Protected Attributes

uint8_t *cue_ = nullptr

The Cue to run.

uint32_t time_ = 0

Time that this Event will run.