diff options
Diffstat (limited to 'gtk2_ardour/editor_cursors.h')
-rw-r--r-- | gtk2_ardour/editor_cursors.h | 42 |
1 files changed, 31 insertions, 11 deletions
diff --git a/gtk2_ardour/editor_cursors.h b/gtk2_ardour/editor_cursors.h index 2e2c654bd1..93689c6e7b 100644 --- a/gtk2_ardour/editor_cursors.h +++ b/gtk2_ardour/editor_cursors.h @@ -19,22 +19,42 @@ #include "pbd/signals.h" +#include "canvas/arrow.h" +#include "canvas/line.h" +#include "canvas/types.h" + class Editor; class EditorCursor { -public: - Editor& editor; - ArdourCanvas::Points points; - ArdourCanvas::Line canvas_item; - framepos_t current_frame; - double length; - - EditorCursor (Editor&, bool (Editor::*)(GdkEvent*,ArdourCanvas::Item*)); - ~EditorCursor (); + public: + EditorCursor (Editor&, bool (Editor::*)(GdkEvent*,ArdourCanvas::Item*)); + ~EditorCursor (); void set_position (framepos_t); - void set_length (double units); - void set_y_axis (double position); + + + void show (); + void hide (); + void set_color (ArdourCanvas::Color); + + framepos_t current_frame () const { + return _current_frame; + } + + ArdourCanvas::Line& track_canvas_item () { + return _track_canvas_item; + } + + ArdourCanvas::Arrow& time_bar_canvas_item () { + return _time_bars_canvas_item; + } PBD::Signal1<void, framepos_t> PositionChanged; + + private: + Editor& _editor; + ArdourCanvas::Arrow _time_bars_canvas_item; + ArdourCanvas::Line _track_canvas_item; + framepos_t _current_frame; + double _length; }; |