Merge branch 'ct' of git.pipapo.org:cinelerra-ct into ct
[cinelerra_cv/ct.git] / cinelerra / canvastools.h
blob1233715579707cab917729d187272ce0a3807956
1 #ifndef CANVASTOOLS_H
2 #define CANVASTOOLS_H
4 #include "edit.inc"
5 #include "guicast.h"
6 #include "mwindow.inc"
7 #include "trackcanvas.inc"
8 #include "vframe.inc"
11 // This was originally supposed to give a button feel to timeline elements.
12 // It is no longer used.
16 class CanvasTool : public BC_Button
18 public:
19 CanvasTool(MWindow *mwindow,
20 TrackCanvas *trackcanvas,
21 Edit *edit,
22 int x,
23 int y,
24 VFrame **data);
25 virtual ~CanvasTool();
27 int visible;
28 MWindow *mwindow;
29 TrackCanvas *trackcanvas;
30 Edit *edit;
31 int x;
32 int y;
36 class CanvasTools : public ArrayList<CanvasTool*>
38 public:
39 CanvasTools(MWindow *mwindow,
40 TrackCanvas *trackcanvas);
41 virtual ~CanvasTools();
43 void decrease_visible();
44 void delete_invisible();
45 int visible(int x, int y, int w, int h);
47 MWindow *mwindow;
48 TrackCanvas *trackcanvas;
52 #endif
54 // Local Variables:
55 // mode: C++
56 // c-file-style: "linux"
57 // End: