1 #ifndef RESOURCEPIXMAP_H
2 #define RESOURCEPIXMAP_H
8 #include "trackcanvas.inc"
11 // Can't use garbage collection for GUI elements because they need to
12 // lock the window for deletion.
13 class ResourcePixmap
: public BC_Pixmap
16 ResourcePixmap(MWindow
*mwindow
,
23 void resize(int w
, int h
);
24 void draw_data(Edit
*edit
,
32 void draw_audio_resource(Edit
*edit
,
35 void draw_video_resource(Edit
*edit
,
42 void draw_audio_source(Edit
*edit
, int x
, int w
);
43 void draw_title(Edit
*edit
, int64_t edit_x
, int64_t edit_w
, int64_t pixmap_x
, int64_t pixmap_w
);
45 // Change to hourglass if timer expired
52 // Visible in entire track canvas
56 int64_t edit_x
, pixmap_x
, pixmap_w
, pixmap_h
;
57 int64_t zoom_sample
, zoom_track
, zoom_y
;
59 double source_framerate
, project_framerate
;
60 int64_t source_samplerate
, project_samplerate
;
62 // Timer to cause an hourglass to appear