2 Copyright (C) 2000-2007 Paul Davis
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 #ifndef __gtk2_ardour_drag_info_h_
21 #define __gtk2_ardour_drag_info_h_
27 #include "editor_items.h"
29 #include <ardour/types.h>
39 ArdourCanvas::Item* item;
42 nframes64_t last_frame_position;
43 nframes64_t pointer_frame_offset;
44 nframes64_t grab_frame;
45 nframes64_t last_pointer_frame;
46 nframes64_t current_pointer_frame;
47 double grab_x, grab_y;
48 double cumulative_x_drag;
49 double cumulative_y_drag;
50 double current_pointer_x;
51 double current_pointer_y;
52 void (Editor::*motion_callback)(ArdourCanvas::Item*, GdkEvent*);
53 void (Editor::*finished_callback)(ArdourCanvas::Item*, GdkEvent*);
54 TimeAxisView* last_trackview;
60 bool move_threshold_passed;
61 bool want_move_threshold;
63 ARDOUR::Location* copied_location;
71 #endif /* __gtk2_ardour_drag_info_h_ */