tracktion-engine 3.0-10-g034fdde4aa5
Tracktion Engine — High level data model for audio applications

« « « Anklang Documentation
Loading...
Searching...
No Matches
tracktion_MarkerClip.h
Go to the documentation of this file.
1 /*
2 ,--. ,--. ,--. ,--.
3 ,-' '-.,--.--.,--,--.,---.| |,-.,-' '-.`--' ,---. ,--,--, Copyright 2024
4 '-. .-'| .--' ,-. | .--'| /'-. .-',--.| .-. || \ Tracktion Software
5 | | | | \ '-' \ `--.| \ \ | | | |' '-' '| || | Corporation
6 `---' `--' `--`--'`---'`--'`--' `---' `--' `---' `--''--' www.tracktion.com
7
8 Tracktion Engine uses a GPL/commercial licence - see LICENCE.md for details.
9*/
10
11namespace tracktion { inline namespace engine
12{
13
14//==============================================================================
17class MarkerClip : public Clip
18{
19public:
20 MarkerClip (const juce::ValueTree&, EditItemID, ClipOwner& targetParent);
21 ~MarkerClip() override;
22
23 int getMarkerID() { return markerID; }
24 void setMarkerID (int newID);
25
26 bool isSyncAbsolute() const noexcept { return syncType == syncAbsolute; }
27 bool isSyncBarsBeats() const noexcept { return syncType == syncBarsBeats; }
28
30 bool canBeAddedTo (ClipOwner&) override;
31 juce::Colour getColour() const override;
32 juce::Colour getDefaultColour() const override;
33 void initialise() override;
34
35 bool isMidi() const override { return false; }
36 bool isMuted() const override { return false; }
37
38protected:
39 void valueTreePropertyChanged (juce::ValueTree&, const juce::Identifier&) override;
40
41private:
43
45};
46
47}} // namespace tracktion { inline namespace engine
Base class for items that can contain clips.
A clip in an edit.
@ syncBarsBeats
Sync to beats.
@ syncAbsolute
Sync to abslute time.
void initialise() override
Initialises the Clip.
bool isMidi() const override
Returns true if this is a MidiClip.
juce::Colour getDefaultColour() const override
Returns the default colour for this clip.
juce::Colour getColour() const override
Returns the colour property of this clip.
juce::String getSelectableDescription() override
Subclasses must return a description of what they are.
bool canBeAddedTo(ClipOwner &) override
Tests whether this clip can go on the given parent.
bool isMuted() const override
Returns true if the clip is muted.
#define JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(className)
ID for objects of type EditElement - e.g.