TracktionEngine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
tracktion::engine::ClipSlot Class Reference

Represents a slot on a track that a Clip can live in to be played as a launched clip. More...

#include <tracktion_ClipSlot.h>

Inheritance diagram for tracktion::engine::ClipSlot:

Public Member Functions

 ClipSlot (const juce::ValueTree &, Track &)
 Creates a ClipSlot for a given Track.
 
 ~ClipSlot () override
 Destructor.
 
void setClip (Clip *)
 Sets the Clip to be used within this slot.
 
ClipgetClip ()
 Returns the currently set clip.
 
int getIndex ()
 Returns slot index on track.
 
InputDeviceInstance::DestinationgetInputDestination ()
 
juce::String getName () const override
 
juce::String getSelectableDescription () override
 
juce::ValueTree & getClipOwnerState () override
 
EditItemID getClipOwnerID () override
 
SelectablegetClipOwnerSelectable () override
 
EditgetClipOwnerEdit () override
 
- Public Member Functions inherited from tracktion::engine::EditItem
 EditItem (EditItemID, Edit &)
 
 EditItem (Edit &, const juce::ValueTree &)
 
virtual ~EditItem ()=default
 
- Public Member Functions inherited from tracktion::engine::Selectable
 Selectable ()
 
virtual ~Selectable ()
 
virtual void selectionStatusChanged (bool isNowSelected)
 Can be overridden to tell this object that it has just been selected or deselected.
 
virtual void changed ()
 This should be called to send a change notification to any SelectableListeners that are registered with this object.
 
virtual void selectableAboutToBeDeleted ()
 Called just before the selectable is about to be deleted so any subclasses should still be valid at this point.
 
void addListener (SelectableListener *)
 
void removeListener (SelectableListener *)
 
void addSelectableListener (SelectableListener *)
 
void removeSelectableListener (SelectableListener *)
 
void cancelAnyPendingUpdates ()
 If changed() has been called, this will cancel any pending async change notificaions.
 
void deselect ()
 
void propertiesChanged ()
 
void notifyListenersOfDeletion ()
 
WeakRef getWeakRef ()
 
- Public Member Functions inherited from tracktion::engine::ClipOwner
 ClipOwner ()
 Constructs an empty ClipOwner.
 
virtual ~ClipOwner ()
 Destructor.
 
const juce::Array< Clip * > & getClips () const
 Returns the clips this owner contains.
 

Public Attributes

juce::ValueTree state
 The state of this ClipSlot.
 
Tracktrack
 The Track this ClipSlot belongs to.
 
- Public Attributes inherited from tracktion::engine::EditItem
Editedit
 
const EditItemID itemID
 Every EditItem has an ID which is unique within the edit.
 
- Public Attributes inherited from tracktion::engine::Selectable
WeakRef::Master masterReference
 

Additional Inherited Members

- Public Types inherited from tracktion::engine::Selectable
using WeakRef = juce::WeakReference< Selectable >
 
- Static Public Member Functions inherited from tracktion::engine::Selectable
static void initialise ()
 
static bool isSelectableValid (const Selectable *) noexcept
 checks whether this object has been deleted.
 
- Protected Member Functions inherited from tracktion::engine::ClipOwner
void initialiseClipOwner (Edit &, juce::ValueTree clipParentState)
 Must be called once from the subclass constructor to init the clip owner.
 

Detailed Description

Represents a slot on a track that a Clip can live in to be played as a launched clip.

Constructor & Destructor Documentation

◆ ClipSlot()

tracktion::engine::ClipSlot::ClipSlot ( const juce::ValueTree &  ,
Track  
)

Creates a ClipSlot for a given Track.

◆ ~ClipSlot()

tracktion::engine::ClipSlot::~ClipSlot ( )
override

Destructor.

Member Function Documentation

◆ setClip()

void tracktion::engine::ClipSlot::setClip ( Clip )

Sets the Clip to be used within this slot.

◆ getClip()

Clip * tracktion::engine::ClipSlot::getClip ( )

Returns the currently set clip.

◆ getIndex()

int tracktion::engine::ClipSlot::getIndex ( )

Returns slot index on track.

◆ getInputDestination()

InputDeviceInstance::Destination * tracktion::engine::ClipSlot::getInputDestination ( )

◆ getName()

juce::String tracktion::engine::ClipSlot::getName ( ) const
overridevirtual

◆ getSelectableDescription()

juce::String tracktion::engine::ClipSlot::getSelectableDescription ( )
overridevirtual

◆ getClipOwnerState()

juce::ValueTree & tracktion::engine::ClipSlot::getClipOwnerState ( )
overridevirtual

◆ getClipOwnerID()

EditItemID tracktion::engine::ClipSlot::getClipOwnerID ( )
overridevirtual

◆ getClipOwnerSelectable()

Selectable * tracktion::engine::ClipSlot::getClipOwnerSelectable ( )
overridevirtual

◆ getClipOwnerEdit()

Edit & tracktion::engine::ClipSlot::getClipOwnerEdit ( )
overridevirtual

Member Data Documentation

◆ state

juce::ValueTree tracktion::engine::ClipSlot::state

The state of this ClipSlot.

◆ track

Track& tracktion::engine::ClipSlot::track

The Track this ClipSlot belongs to.


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