summaryrefslogtreecommitdiff
path: root/gtk2_ardour/draginfo.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2006-03-08 02:50:53 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2006-03-08 02:50:53 +0000
commit0d2c8771a7b0f70fe4cf21cfdcfca709470787c2 (patch)
treed39ee0545b79178894d5216b2c87956e8bedc14c /gtk2_ardour/draginfo.h
parentbe60137cfb31ef1266f5132a9fd465c01ce074a9 (diff)
fix for deferred saves by StateManager-derivatives; changes to new/copy/clear playlist ops (not finished), TRUE/FALSE -> true/false in editor_mouse.cc
git-svn-id: svn://localhost/trunk/ardour2@358 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/draginfo.h')
-rw-r--r--gtk2_ardour/draginfo.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/gtk2_ardour/draginfo.h b/gtk2_ardour/draginfo.h
new file mode 100644
index 0000000000..8b9213ea40
--- /dev/null
+++ b/gtk2_ardour/draginfo.h
@@ -0,0 +1,49 @@
+#ifndef __gtk2_ardour_drag_info_h_
+#define __gtk2_ardour_drag_info_h_
+
+#include <gdk/gdk.h>
+#include <stdint.h>
+
+#include "canvas.h"
+#include <ardour/types.h>
+
+namespace ARDOUR {
+ class Location;
+}
+
+class Editor;
+class TimeAxisView;
+
+struct DragInfo {
+ ArdourCanvas::Item* item;
+ void* data;
+ jack_nframes_t last_frame_position;
+ int32_t pointer_frame_offset;
+ jack_nframes_t grab_frame;
+ jack_nframes_t last_pointer_frame;
+ jack_nframes_t current_pointer_frame;
+ double grab_x, grab_y;
+ double cumulative_x_drag;
+ double cumulative_y_drag;
+ double current_pointer_x;
+ double current_pointer_y;
+ void (Editor::*motion_callback)(ArdourCanvas::Item*, GdkEvent*);
+ void (Editor::*finished_callback)(ArdourCanvas::Item*, GdkEvent*);
+ TimeAxisView* last_trackview;
+ bool x_constrained;
+ bool copy;
+ bool was_rolling;
+ bool first_move;
+ bool move_threshold_passsed;
+ bool want_move_threshold;
+ bool brushing;
+ ARDOUR::Location* copied_location;
+};
+
+struct LineDragInfo {
+ uint32_t before;
+ uint32_t after;
+};
+
+#endif /* __gtk2_ardour_drag_info_h_ */
+