Merge branch 'ct' of git.pipapo.org:cinelerra-ct into ct
[cinelerra_cv/ct.git] / cinelerra / videowindowgui.h
blob9aee8d91c79d1084bf398baaf06ed4cccd930905
1 #ifndef VIDEOWINDOWGUI_H
2 #define VIDEOWINDOWGUI_H
4 #include "guicast.h"
5 #include "videowindow.inc"
7 class VideoWindowGUI : public BC_Window
9 public:
10 VideoWindowGUI(VideoWindow *thread, int w, int h);
11 ~VideoWindowGUI();
13 int create_objects();
14 int resize_event(int w, int h);
15 int close_event();
16 int keypress_event();
17 int update_title();
18 int start_cropping();
19 int stop_cropping();
21 int x1, y1, x2, y2, center_x, center_y;
22 int x_offset, y_offset;
23 VideoWindow *thread;
24 VideoWindowCanvas *canvas;
27 class VideoWindowCanvas : public BC_SubWindow
29 public:
30 VideoWindowCanvas(VideoWindowGUI *gui, int w, int h);
31 ~VideoWindowCanvas();
33 int button_press();
34 int button_release();
35 int cursor_motion();
36 int draw_crop_box();
38 int button_down;
39 VideoWindowGUI *gui;
40 int corner_selected;
44 #endif
46 // Local Variables:
47 // mode: C++
48 // c-file-style: "linux"
49 // End: