r793: Small API addon, so plugins can 'see' camera and projector automation
[cinelerra_cv/mob.git] / cinelerra / resourcepixmap.h
blob1ece3b62c622ba803d3646f3332b6937ec556ee9
1 #ifndef RESOURCEPIXMAP_H
2 #define RESOURCEPIXMAP_H
4 #include "bctimer.inc"
5 #include "edit.inc"
6 #include "guicast.h"
7 #include "mwindow.inc"
8 #include "trackcanvas.inc"
10 class ResourcePixmap : public BC_Pixmap
12 public:
13 ResourcePixmap(MWindow *mwindow,
14 TrackCanvas *canvas,
15 Edit *edit,
16 int w,
17 int h);
18 ~ResourcePixmap();
20 void resize(int w, int h);
21 void draw_data(Edit *edit,
22 int64_t edit_x,
23 int64_t edit_w,
24 int64_t pixmap_x,
25 int64_t pixmap_w,
26 int64_t pixmap_h,
27 int force,
28 int indexes_only);
29 void draw_audio_resource(Edit *edit,
30 int x,
31 int w);
32 void draw_video_resource(Edit *edit,
33 int64_t edit_x,
34 int64_t edit_w,
35 int64_t pixmap_x,
36 int64_t pixmap_w,
37 int refresh_x,
38 int refresh_w);
39 void draw_audio_source(Edit *edit, int x, int w);
40 void draw_title(Edit *edit, int64_t edit_x, int64_t edit_w, int64_t pixmap_x, int64_t pixmap_w);
41 void reset();
42 // Change to hourglass if timer expired
43 void test_timer();
45 void dump();
47 MWindow *mwindow;
48 TrackCanvas *canvas;
49 // Visible in entire track canvas
50 int visible;
51 // Section drawn
52 int64_t edit_id;
53 int64_t edit_x, pixmap_x, pixmap_w, pixmap_h;
54 int64_t zoom_sample, zoom_track, zoom_y;
55 int64_t startsource;
56 double source_framerate, project_framerate;
57 int64_t source_samplerate, project_samplerate;
58 int data_type;
59 // Timer to cause an hourglass to appear
60 Timer *timer;
63 #endif