TracktionEngine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
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 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 engine::EditItem
 EditItem (EditItemID, Edit &)
 
 EditItem (Edit &, const juce::ValueTree &)
 
virtual ~EditItem ()=default
 
- Public Member Functions inherited from 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 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 engine::EditItem
Editedit
 
const EditItemID itemID
 Every EditItem has an ID which is unique within the edit.
 
- Public Attributes inherited from engine::Selectable
WeakRef::Master masterReference
 

Additional Inherited Members

- Public Types inherited from engine::Selectable
using WeakRef = juce::WeakReference< Selectable >
 
- Static Public Member Functions inherited from engine::Selectable
static void initialise ()
 
static bool isSelectableValid (const Selectable *) noexcept
 checks whether this object has been deleted.
 
- Protected Member Functions inherited from 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()

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

Creates a ClipSlot for a given Track.

◆ ~ClipSlot()

engine::ClipSlot::~ClipSlot ( )
override

Destructor.

Member Function Documentation

◆ setClip()

void engine::ClipSlot::setClip ( Clip )

Sets the Clip to be used within this slot.

◆ getClip()

Clip * engine::ClipSlot::getClip ( )

Returns the currently set clip.

◆ getIndex()

int engine::ClipSlot::getIndex ( )

Returns slot index on track.

◆ getInputDestination()

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

◆ getName()

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

.

Implements engine::EditItem.

◆ getSelectableDescription()

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

.

Implements engine::Selectable.

◆ getClipOwnerState()

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

.

Implements engine::ClipOwner.

◆ getClipOwnerID()

EditItemID engine::ClipSlot::getClipOwnerID ( )
overridevirtual

.

Implements engine::ClipOwner.

◆ getClipOwnerSelectable()

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

.

Implements engine::ClipOwner.

◆ getClipOwnerEdit()

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

.

Implements engine::ClipOwner.

Member Data Documentation

◆ state

juce::ValueTree engine::ClipSlot::state

The state of this ClipSlot.

◆ track

Track& engine::ClipSlot::track

The Track this ClipSlot belongs to.


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