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

Defines the place to insert Track[s]. More...

#include <tracktion_TrackUtils.h>

Public Member Functions

 TrackInsertPoint (Track *parent, Track *preceding)
 Creates an insertion point with a parent and preceeding track.
 TrackInsertPoint (EditItemID parentTrackID, EditItemID precedingTrackID)
 Creates an insertion point with a parent and preceeding track.
 TrackInsertPoint (Track &currentPos, bool insertBefore)
 Creates an insertion point around a Track.
 TrackInsertPoint (const juce::ValueTree &)
 Creates an insertion point after a given Track state.

Static Public Member Functions

static TrackInsertPoint getEndOfTracks (Edit &)
 Returns an insertion point at the end of the tracks in the given edit.

Public Attributes

EditItemID parentTrackID
EditItemID precedingTrackID

Detailed Description

Defines the place to insert Track[s].

See also
Edit::insertNewTrack, Edit::moveTrack

Constructor & Destructor Documentation

◆ TrackInsertPoint() [1/4]

engine::TrackInsertPoint::TrackInsertPoint ( Track * parent,
Track * preceding )

Creates an insertion point with a parent and preceeding track.

Parameters
parentThe parent tracks should be nested in. nullptr means a top-level track
precedingThe track before the insertion point. nullptr means tracks should be inserted at the start of the list.

Referenced by getEndOfTracks().

◆ TrackInsertPoint() [2/4]

engine::TrackInsertPoint::TrackInsertPoint ( EditItemID parentTrackID,
EditItemID precedingTrackID )

Creates an insertion point with a parent and preceeding track.

Parameters
parentTrackIDThe ID of the parent tracks should be nested in. An invalid ID means a top-level track
precedingTrackIDThe ID of the track before the insertion point. An invalid ID means tracks should be inserted at the start of the list.

References parentTrackID, and precedingTrackID.

◆ TrackInsertPoint() [3/4]

engine::TrackInsertPoint::TrackInsertPoint ( Track & currentPos,
bool insertBefore )

Creates an insertion point around a Track.

Parameters
currentPosThe track to base insertion around.
insertBeforeWhether new tracks should go before or after the currentPos.

◆ TrackInsertPoint() [4/4]

engine::TrackInsertPoint::TrackInsertPoint ( const juce::ValueTree & )

Creates an insertion point after a given Track state.

Member Function Documentation

◆ getEndOfTracks()

TrackInsertPoint engine::TrackInsertPoint::getEndOfTracks ( Edit & )
static

Returns an insertion point at the end of the tracks in the given edit.

References TrackInsertPoint().

Member Data Documentation

◆ parentTrackID

EditItemID engine::TrackInsertPoint::parentTrackID

Referenced by TrackInsertPoint().

◆ precedingTrackID

EditItemID engine::TrackInsertPoint::precedingTrackID

Referenced by TrackInsertPoint().


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