78 bool operator== (
const Marker&)
const noexcept;
80 bool operator!= (
const Marker&)
const noexcept;
85 int getNumMarkers() const noexcept;
88 const
Marker* getMarker (
int index) const noexcept;
93 const
Marker* getMarker (const
String& name) const noexcept;
99 double getMarkerPosition (const
Marker& marker,
Component* parentComponent) const;
109 void removeMarker (
int index);
112 void removeMarker (const
String& name);
115 bool operator== (const
MarkerList&) const noexcept;
117 bool operator!= (const
MarkerList&) const noexcept;
138 virtual void markerListBeingDeleted (
MarkerList* markerList);
142 void addListener (
Listener* listener);
145 void removeListener (
Listener* listener);
148 void markersHaveChanged();
167 ValueTree& getState()
noexcept {
return state; }
168 int getNumMarkers()
const;
169 ValueTree getMarkerState (
int index)
const;
171 bool containsMarker (
const ValueTree& state)
const;
179 static const Identifier markerTag, nameProperty, posProperty;
190 Marker* getMarkerByName (
const String& name)
const noexcept;
The base class for all JUCE user-interface objects.
Represents a string identifier, designed for accessing properties by name.
Holds a set of objects and can invoke a member function callback on each object in the set with a sin...
A class for receiving events when changes are made to a MarkerList.
virtual void markersChanged(MarkerList *markerList)=0
Called when something in the given marker list changes.
virtual ~Listener()=default
Destructor.
Represents a marker in a MarkerList.
String name
The marker's name.
RelativeCoordinate position
The marker's position.
Forms a wrapper around a ValueTree that can be used for storing a MarkerList.
Holds a set of named marker points along a one-dimensional axis.
An array designed for holding objects.
Expresses a coordinate as a dynamically evaluated expression.
Manages a list of undo/redo commands.
A powerful tree structure that can be used to hold free-form data, and which can handle its own undo ...
#define JUCE_LEAK_DETECTOR(OwnerClass)
This macro lets you embed a leak-detecting object inside a class.
A base class for objects that want to provide a MarkerList.
virtual MarkerList * getMarkers(bool xAxis)=0
Objects can implement this method to provide a MarkerList.