JUCE  v6.1.6 (6.0.8-1114)
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::MarkerList::Marker Class Reference

Represents a marker in a MarkerList. More...

#include <juce_MarkerList.h>

Collaboration diagram for juce::MarkerList::Marker:

Public Member Functions

 Marker (const Marker &)
 Creates a copy of another Marker. More...
 
 Marker (const String &name, const RelativeCoordinate &position)
 Creates a Marker with a given name and position. More...
 
bool operator!= (const Marker &) const noexcept
 Returns true if either the name or position of these two markers differ. More...
 
bool operator== (const Marker &) const noexcept
 Returns true if both the names and positions of these two markers match. More...
 

Public Attributes

String name
 The marker's name. More...
 
RelativeCoordinate position
 The marker's position. More...
 

Detailed Description

Represents a marker in a MarkerList.

Constructor & Destructor Documentation

◆ Marker() [1/2]

juce::MarkerList::Marker::Marker ( const Marker )

Creates a copy of another Marker.

◆ Marker() [2/2]

juce::MarkerList::Marker::Marker ( const String name,
const RelativeCoordinate position 
)

Creates a Marker with a given name and position.

Member Function Documentation

◆ operator!=()

bool juce::MarkerList::Marker::operator!= ( const Marker ) const
noexcept

Returns true if either the name or position of these two markers differ.

◆ operator==()

bool juce::MarkerList::Marker::operator== ( const Marker ) const
noexcept

Returns true if both the names and positions of these two markers match.

Member Data Documentation

◆ name

String juce::MarkerList::Marker::name

The marker's name.

◆ position

RelativeCoordinate juce::MarkerList::Marker::position

The marker's position.

The expression used to define the coordinate may use the names of other markers, so that markers can be linked in arbitrary ways, but be careful not to create recursive loops of markers whose positions are based on each other! It can also refer to "parent.right" and "parent.bottom" so that you can set markers which are relative to the size of the component that contains them.

To resolve the coordinate, you can use the MarkerList::getMarkerPosition() method.


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