Merge branch 'ct' of git.pipapo.org:cinelerra-ct into ct
[cinelerra_cv/ct.git] / guicast / bcdragwindow.h
blob7b660ea2b60ebe6b646a09ec2ecd53b4fc8a820e
1 #ifndef BCDRAGWINDOW_H
2 #define BCDRAGWINDOW_H
4 #include "bcpixmap.inc"
5 #include "bcpopup.h"
7 class BC_DragWindow : public BC_Popup
9 public:
10 BC_DragWindow(BC_WindowBase *parent_window, BC_Pixmap *pixmap, int icon_x, int icon_y);
11 BC_DragWindow(BC_WindowBase *parent_window, VFrame *frame, int icon_x, int icon_y);
12 ~BC_DragWindow();
14 int cursor_motion_event();
15 int drag_failure_event();
16 int get_offset_x();
17 int get_offset_y();
18 // Disable failure animation
19 void set_animation(int value);
20 BC_Pixmap *prepare_frame(VFrame *frame, BC_WindowBase *parent_window);
21 private:
22 static int get_init_x(BC_WindowBase *parent_window, int icon_x);
23 static int get_init_y(BC_WindowBase *parent_window, int icon_y);
25 int init_x, init_y;
26 int end_x, end_y;
27 int icon_offset_x, icon_offset_y;
28 int do_animation;
29 VFrame *temp_frame;
30 BC_Pixmap *my_pixmap;
33 #endif
35 // Local Variables:
36 // mode: C++
37 // c-file-style: "linux"
38 // End: