X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fcanvas.h;h=aa4879a125e28e34d763e1ab419061f6ebdaa08f;hb=49b383e5201a002e262ef98a77f5cc976b837acc;hp=27336588f67f166125b6a13d64dc86056837da22;hpb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/canvas.h b/cinelerra-5.1/cinelerra/canvas.h index 27336588..aa4879a1 100644 --- a/cinelerra-5.1/cinelerra/canvas.h +++ b/cinelerra-5.1/cinelerra/canvas.h @@ -25,6 +25,7 @@ #include "edl.inc" #include "guicast.h" #include "mwindow.inc" +#include "videodevice.inc" // Output for all X11 video @@ -96,6 +97,7 @@ public: virtual int button_release_event() { return 0; }; virtual int button_press_event(); virtual int cursor_motion_event() { return 0; }; + virtual int need_overlays() { return 1; } virtual void draw_overlays() { }; virtual void toggle_controls() { } ; virtual int get_cwindow_controls() { return 0; }; @@ -141,8 +143,11 @@ public: virtual int get_xscroll() { return 0; }; virtual int get_yscroll() { return 0; }; virtual float get_zoom() { return 0; }; -// Redraws the image +// Updates the refresh_frame + void update_refresh(VideoDevice *device, VFrame *output_frame); +// Redraws the refresh_frame virtual void draw_refresh(int flush = 1) {}; + virtual void clear(int flush=1); // Get top left offset of canvas relative to output. // Normally negative. Can be positive if output is smaller than canvas.