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
,
43 void draw_audio_source(Edit
*edit
, int x
, int w
);
44 // Called by ResourceThread to update pixmap
45 void draw_wave(int x
, double high
, double low
);
46 void draw_title(Edit
*edit
, int64_t edit_x
, int64_t edit_w
, int64_t pixmap_x
, int64_t pixmap_w
);
48 // Change to hourglass if timer expired
55 // Visible in entire track canvas
59 int64_t edit_x
, pixmap_x
, pixmap_w
, pixmap_h
;
60 int64_t zoom_sample
, zoom_track
, zoom_y
;
62 double source_framerate
, project_framerate
;
63 int64_t source_samplerate
, project_samplerate
;
65 // Timer to cause an hourglass to appear