JUCE  v5.1.1-3-g1a0b28c73
JUCE API
MarkerList::ValueTreeWrapper Class Reference

Forms a wrapper around a ValueTree that can be used for storing a MarkerList. More...

#include <juce_MarkerList.h>

Collaboration diagram for MarkerList::ValueTreeWrapper:

Public Member Functions

 ValueTreeWrapper (const ValueTree &state)
 
void applyTo (MarkerList &markerList)
 
bool containsMarker (const ValueTree &state) const
 
MarkerList::Marker getMarker (const ValueTree &state) const
 
ValueTree getMarkerState (int index) const
 
ValueTree getMarkerState (const String &name) const
 
int getNumMarkers () const
 
ValueTreegetState () noexcept
 
void readFrom (const MarkerList &markerList, UndoManager *undoManager)
 
void removeMarker (const ValueTree &state, UndoManager *undoManager)
 
void setMarker (const MarkerList::Marker &marker, UndoManager *undoManager)
 

Static Public Attributes

static const Identifier markerTag
 
static const Identifier nameProperty
 
static const Identifier posProperty
 

Private Attributes

ValueTree state
 

Detailed Description

Forms a wrapper around a ValueTree that can be used for storing a MarkerList.

Constructor & Destructor Documentation

◆ ValueTreeWrapper()

MarkerList::ValueTreeWrapper::ValueTreeWrapper ( const ValueTree state)

Member Function Documentation

◆ applyTo()

void MarkerList::ValueTreeWrapper::applyTo ( MarkerList markerList)

◆ containsMarker()

bool MarkerList::ValueTreeWrapper::containsMarker ( const ValueTree state) const

◆ getMarker()

MarkerList::Marker MarkerList::ValueTreeWrapper::getMarker ( const ValueTree state) const

◆ getMarkerState() [1/2]

ValueTree MarkerList::ValueTreeWrapper::getMarkerState ( int  index) const

◆ getMarkerState() [2/2]

ValueTree MarkerList::ValueTreeWrapper::getMarkerState ( const String name) const

◆ getNumMarkers()

int MarkerList::ValueTreeWrapper::getNumMarkers ( ) const

◆ getState()

ValueTree& MarkerList::ValueTreeWrapper::getState ( )
inlinenoexcept

◆ readFrom()

void MarkerList::ValueTreeWrapper::readFrom ( const MarkerList markerList,
UndoManager undoManager 
)

◆ removeMarker()

void MarkerList::ValueTreeWrapper::removeMarker ( const ValueTree state,
UndoManager undoManager 
)

◆ setMarker()

void MarkerList::ValueTreeWrapper::setMarker ( const MarkerList::Marker marker,
UndoManager undoManager 
)

Member Data Documentation

◆ markerTag

const Identifier MarkerList::ValueTreeWrapper::markerTag
static

◆ nameProperty

const Identifier MarkerList::ValueTreeWrapper::nameProperty
static

◆ posProperty

const Identifier MarkerList::ValueTreeWrapper::posProperty
static

◆ state

ValueTree MarkerList::ValueTreeWrapper::state
private

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