summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_cursors.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-24 02:54:10 +0000
committerDavid Robillard <d@drobilla.net>2012-05-24 02:54:10 +0000
commit27a1cf2cf73703267cac5bda2acca386afb374b3 (patch)
tree122ceba55fef1d183d1b32dca1fd60ffdc113112 /gtk2_ardour/editor_cursors.h
parenteffe4de1889bfefba6550dff4244e06c2c7261bd (diff)
Compile cleanly with clang.
To compile Ardour with LLVM/clang, do the usual thing but set the CXX and CC environment variables, e.g.: CC=/usr/bin/clang CXX=/usr/bin/clang++ ./waf configure build git-svn-id: svn://localhost/ardour2/branches/3.0@12418 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_cursors.h')
-rw-r--r--gtk2_ardour/editor_cursors.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/gtk2_ardour/editor_cursors.h b/gtk2_ardour/editor_cursors.h
index b5c228a54a..2e2c654bd1 100644
--- a/gtk2_ardour/editor_cursors.h
+++ b/gtk2_ardour/editor_cursors.h
@@ -21,12 +21,13 @@
class Editor;
-struct EditorCursor {
- Editor& editor;
- ArdourCanvas::Points points;
- ArdourCanvas::Line canvas_item;
+class EditorCursor {
+public:
+ Editor& editor;
+ ArdourCanvas::Points points;
+ ArdourCanvas::Line canvas_item;
framepos_t current_frame;
- double length;
+ double length;
EditorCursor (Editor&, bool (Editor::*)(GdkEvent*,ArdourCanvas::Item*));
~EditorCursor ();
@@ -35,5 +36,5 @@ struct EditorCursor {
void set_length (double units);
void set_y_axis (double position);
- PBD::Signal1<void, framepos_t> PositionChanged;
+ PBD::Signal1<void, framepos_t> PositionChanged;
};