Ardour  9.0-pre0-350-gf17a656217
MetricMarker Class Referenceabstract

#include <marker.h>

Inheritance diagram for MetricMarker:
[legend]

Public Member Functions

 MetricMarker (PublicEditor &ed, ArdourCanvas::Item &parent, std::string const &color_name, const std::string &annotation, Type type, Temporal::timepos_t const &pos, bool handle_events)
 
virtual Temporal::Point const & point () const =0
 
virtual void update ()=0
 
- Public Member Functions inherited from ArdourMarker
 ArdourMarker (PublicEditor &editor, ArdourCanvas::Item &, std::string const &color_name, std::string const &text, Type, Temporal::timepos_t const &position, bool handle_events=true, RegionView *rv=nullptr, bool use_tooltip=true)
 
virtual ~ArdourMarker ()
 
ArdourCanvas::Itemthe_item () const
 
void set_selected (bool)
 
void set_entered (bool)
 
void set_show_line (bool)
 
void set_line_height (double)
 
virtual void reposition ()
 
virtual void set_position (Temporal::timepos_t const &)
 
void set_name (const std::string &, const std::string &tooltip=std::string())
 
void set_color (std::string const &color_name)
 
void set_points_color (std::string const &color_name)
 
void setup_line ()
 
ARDOUR::timepos_t position () const
 
ArdourCanvas::Itemget_parent ()
 
void reparent (ArdourCanvas::Item &parent)
 
void hide ()
 
void show ()
 
Type type ()
 
void set_left_label_limit (double)
 
void set_right_label_limit (double)
 
std::string name () const
 
bool label_on_left () const
 
RegionViewregion_view () const
 
void set_cue_index (int c)
 
int cue_index () const
 

Additional Inherited Members

- Public Types inherited from ArdourMarker
enum  Type {
  Mark , Tempo , Meter , BBTPosition ,
  SessionStart , SessionEnd , Section , RangeStart ,
  RangeEnd , LoopStart , LoopEnd , PunchIn ,
  PunchOut , RegionCue , Cue , SelectionStart ,
  SelectionEnd
}
 
- Static Public Member Functions inherited from ArdourMarker
static void setup_sizes (const double timebar_height)
 
- Static Public Attributes inherited from ArdourMarker
static PBD::Signal< void(ArdourMarker *)> CatchDeletion
 
- Protected Member Functions inherited from ArdourMarker
void setup_line_x ()
 
void setup_name_display ()
 
- Protected Attributes inherited from ArdourMarker
PublicEditoreditor
 
Pango::FontDescription name_font
 
ArdourCanvas::Item_parent
 
ArdourCanvas::Itemgroup
 
ArdourCanvas::Circle_pcue
 
ArdourCanvas::Polygon_pmark
 
ArdourCanvas::Text_name_item
 
ArdourCanvas::Pointspoints
 
ArdourCanvas::Line_track_canvas_line
 
ArdourCanvas::Rectangle_name_flag
 
std::string _name
 
double unit_position
 
ARDOUR::timepos_t _position
 
double _shift
 
Type _type
 
int name_height
 
int name_descent
 
bool _selected
 
bool _entered
 
bool _shown
 
bool _line_shown
 
bool _use_tooltip
 
std::string _color
 
std::string _points_color
 
double _left_label_limit
 the number of pixels available to the left of this marker for a label More...
 
double _right_label_limit
 the number of pixels available to the right of this marker for a label More...
 
double _label_offset
 
double _line_height
 
RegionView_region_view
 
int _cue_index
 

Detailed Description

Definition at line 187 of file marker.h.

Constructor & Destructor Documentation

◆ MetricMarker()

MetricMarker::MetricMarker ( PublicEditor ed,
ArdourCanvas::Item parent,
std::string const &  color_name,
const std::string &  annotation,
Type  type,
Temporal::timepos_t const &  pos,
bool  handle_events 
)

Member Function Documentation

◆ point()

virtual Temporal::Point const& MetricMarker::point ( ) const
pure virtual

Implemented in BBTMarker, MeterMarker, and TempoMarker.

◆ update()

virtual void MetricMarker::update ( )
pure virtual

Implemented in BBTMarker, MeterMarker, and TempoMarker.


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