r125: This commit was manufactured by cvs2svn to create tag 'r1_1_7-last'.
[cinelerra_cv/mob.git] / hvirtual / cinelerra / resourcepixmap.h
blobd11d443e9b6650811ef9c73069d3c28546eb7080
1 #ifndef RESOURCEPIXMAP_H
2 #define RESOURCEPIXMAP_H
4 #include "edit.inc"
5 #include "guicast.h"
6 #include "mwindow.inc"
7 #include "trackcanvas.inc"
9 class ResourcePixmap : public BC_Pixmap
11 public:
12 ResourcePixmap(MWindow *mwindow,
13 TrackCanvas *canvas,
14 Edit *edit,
15 int w,
16 int h);
17 ~ResourcePixmap();
19 void resize(int w, int h);
20 void draw_data(Edit *edit,
21 int64_t edit_x,
22 int64_t edit_w,
23 int64_t pixmap_x,
24 int64_t pixmap_w,
25 int64_t pixmap_h,
26 int force,
27 int indexes_only);
28 void draw_audio_resource(Edit *edit, int x, int w);
29 void draw_video_resource(Edit *edit,
30 int64_t edit_x,
31 int64_t edit_w,
32 int64_t pixmap_x,
33 int64_t pixmap_w,
34 int refresh_x,
35 int refresh_w);
36 void draw_audio_source(Edit *edit, int x, int w);
37 void draw_title(Edit *edit, int64_t edit_x, int64_t edit_w, int64_t pixmap_x, int64_t pixmap_w);
38 void reset();
40 void dump();
42 MWindow *mwindow;
43 TrackCanvas *canvas;
44 // Visible in entire track canvas
45 int visible;
46 // Section drawn
47 int64_t edit_id;
48 int64_t edit_x, pixmap_x, pixmap_w, pixmap_h;
49 int64_t zoom_sample, zoom_track, zoom_y;
50 int64_t startsource;
51 double source_framerate, project_framerate;
52 int64_t source_samplerate, project_samplerate;
53 int data_type;
56 #endif