rc changes to fix invisible checkboxes in export dialog for some themes. Fixed the...
[ardour.git] / gtk2_ardour / draginfo.h
1 #ifndef __gtk2_ardour_drag_info_h_
2 #define __gtk2_ardour_drag_info_h_
3
4 #include <gdk/gdk.h>
5 #include <stdint.h>
6
7 #include "canvas.h"
8 #include <ardour/types.h>
9
10 namespace ARDOUR {
11         class Location;
12 }
13
14 class Editor;
15 class TimeAxisView;
16
17 struct DragInfo {
18     ArdourCanvas::Item* item;
19     void* data;
20     jack_nframes_t last_frame_position;
21     int32_t pointer_frame_offset;
22     jack_nframes_t grab_frame;
23     jack_nframes_t last_pointer_frame;
24     jack_nframes_t current_pointer_frame;
25     double grab_x, grab_y;
26     double cumulative_x_drag;
27     double cumulative_y_drag;
28     double current_pointer_x;
29     double current_pointer_y;
30     void (Editor::*motion_callback)(ArdourCanvas::Item*, GdkEvent*);
31     void (Editor::*finished_callback)(ArdourCanvas::Item*, GdkEvent*);
32     TimeAxisView* last_trackview;
33     bool x_constrained;
34     bool copy;
35     bool was_rolling;
36     bool first_move;
37     bool move_threshold_passsed;
38     bool want_move_threshold;
39     bool brushing;
40     ARDOUR::Location* copied_location;
41 };
42
43 struct LineDragInfo {
44     uint32_t before;
45     uint32_t after;
46 };
47
48 #endif /* __gtk2_ardour_drag_info_h_ */
49