TracktionEngine
|
Represents a slot on a track that a Clip can live in to be played as a launched clip. More...
#include <tracktion_ClipSlot.h>
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. | |
Clip * | getClip () |
Returns the currently set clip. | |
int | getIndex () |
Returns slot index on track. | |
InputDeviceInstance::Destination * | getInputDestination () |
juce::String | getName () const override |
juce::String | getSelectableDescription () override |
juce::ValueTree & | getClipOwnerState () override |
EditItemID | getClipOwnerID () override |
Selectable * | getClipOwnerSelectable () override |
Edit & | getClipOwnerEdit () override |
![]() | |
EditItem (EditItemID, Edit &) | |
EditItem (Edit &, const juce::ValueTree &) | |
virtual | ~EditItem ()=default |
![]() | |
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 () |
![]() | |
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. | |
Track & | track |
The Track this ClipSlot belongs to. | |
![]() | |
Edit & | edit |
const EditItemID | itemID |
Every EditItem has an ID which is unique within the edit. | |
![]() | |
WeakRef::Master | masterReference |
Additional Inherited Members | |
![]() | |
using | WeakRef = juce::WeakReference< Selectable > |
![]() | |
static void | initialise () |
static bool | isSelectableValid (const Selectable *) noexcept |
checks whether this object has been deleted. | |
![]() | |
void | initialiseClipOwner (Edit &, juce::ValueTree clipParentState) |
Must be called once from the subclass constructor to init the clip owner. | |
Represents a slot on a track that a Clip can live in to be played as a launched clip.
tracktion::engine::ClipSlot::ClipSlot | ( | const juce::ValueTree & | , |
Track & | |||
) |
|
override |
Destructor.
Clip * tracktion::engine::ClipSlot::getClip | ( | ) |
Returns the currently set clip.
int tracktion::engine::ClipSlot::getIndex | ( | ) |
Returns slot index on track.
InputDeviceInstance::Destination * tracktion::engine::ClipSlot::getInputDestination | ( | ) |
|
overridevirtual |
.
Implements tracktion::engine::EditItem.
|
overridevirtual |
.
Implements tracktion::engine::Selectable.
|
overridevirtual |
.
Implements tracktion::engine::ClipOwner.
|
overridevirtual |
.
Implements tracktion::engine::ClipOwner.
|
overridevirtual |
.
Implements tracktion::engine::ClipOwner.
|
overridevirtual |
.
Implements tracktion::engine::ClipOwner.
juce::ValueTree tracktion::engine::ClipSlot::state |
The state of this ClipSlot.