20 #ifndef __gtk_ardour_marker_h__
21 #define __gtk_ardour_marker_h__
26 #include <sigc++/signal.h>
31 #include "canvas/fwd.h"
32 #include "canvas/types.h"
41 class Marker :
public sigc::trackable
60 framepos_t frame = 0,
bool handle_events =
true);
66 static void setup_sizes (
const double timebar_height);
68 ArdourCanvas::Item&
the_item()
const;
82 void reparent (ArdourCanvas::Container & parent);
92 std::string
name ()
const {
void setup_name_display()
ArdourCanvas::Points * points
void set_left_label_limit(double)
framepos_t position() const
Representation of the interface of the Editor class.
MeterMarker(PublicEditor &editor, ArdourCanvas::Container &, guint32 rgba, const std::string &text, ARDOUR::MeterSection &)
ARDOUR::TempoSection & tempo() const
static PBD::Signal1< void, Marker * > CatchDeletion
Pango::FontDescription name_font
ARDOUR::MeterSection & _meter
ArdourCanvas::Rectangle * _name_background
void reparent(ArdourCanvas::Container &parent)
ArdourCanvas::Line * _track_canvas_line
ArdourCanvas::Container * _parent
framepos_t frame_position
void canvas_height_set(double)
void set_right_label_limit(double)
double _right_label_limit
the number of pixels available to the right of this marker for a label
void set_color_rgba(uint32_t rgba)
ArdourCanvas::Item & the_item() const
bool label_on_left() const
ARDOUR::MeterSection & meter() const
ArdourCanvas::Container * group
void set_position(framepos_t)
static void setup_sizes(const double timebar_height)
Marker(PublicEditor &editor, ArdourCanvas::Container &, guint32 rgba, const std::string &text, Type, framepos_t frame=0, bool handle_events=true)
ArdourCanvas::Polygon * mark
ArdourCanvas::Container * get_parent()
double _left_label_limit
the number of pixels available to the left of this marker for a label
void set_name(const std::string &)
TempoMarker(PublicEditor &editor, ArdourCanvas::Container &, guint32 rgba, const std::string &text, ARDOUR::TempoSection &)
Marker & operator=(Marker const &)
ARDOUR::TempoSection & _tempo
ArdourCanvas::Text * _name_item