TracktionEngine
Loading...
Searching...
No Matches
engine::EditPosition Struct Reference

Represents a time point in an Edit stored as either time or beats. More...

#include <tracktion_EditTime.h>

Public Member Functions

 EditPosition ()
 Creates an empty EditTime, starting at 0.
 EditPosition (TimePosition)
 Creates an EditTime from a TimePosition.
 EditPosition (BeatPosition)
 Creates an EditTime from a BeatPosition.
bool isBeats () const
 Returns true if the time is stored as beats, false if stored as a TimePosition.

Detailed Description

Represents a time point in an Edit stored as either time or beats.

This is basically a variant to simplify APIs that can accept either time base.

Constructor & Destructor Documentation

◆ EditPosition() [1/3]

engine::EditPosition::EditPosition ( )

Creates an empty EditTime, starting at 0.

References EditPosition().

Referenced by EditPosition(), toBeats, toBeats, toTime, toTime, and toUnderlying.

◆ EditPosition() [2/3]

engine::EditPosition::EditPosition ( TimePosition tp)

Creates an EditTime from a TimePosition.

◆ EditPosition() [3/3]

engine::EditPosition::EditPosition ( BeatPosition bp)

Creates an EditTime from a BeatPosition.

Member Function Documentation

◆ isBeats()

bool engine::EditPosition::isBeats ( ) const

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