From c720aae51515907ae82ee02df80bd084f291d4b1 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Tue, 15 Mar 2022 06:42:06 +0100 Subject: Make hybrid Wayland/X11 platform. --- FL/Fl_Image_Surface.H | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'FL/Fl_Image_Surface.H') diff --git a/FL/Fl_Image_Surface.H b/FL/Fl_Image_Surface.H index a22d1d97d..b09d7d4d3 100644 --- a/FL/Fl_Image_Surface.H +++ b/FL/Fl_Image_Surface.H @@ -82,6 +82,7 @@ public: int printable_rect(int *w, int *h); Fl_Offscreen offscreen(); void rescale(); + Fl_Image_Surface *as_image_surface(); }; @@ -98,6 +99,8 @@ public: */ class Fl_Image_Surface_Driver : public Fl_Widget_Surface { friend class Fl_Image_Surface; +private: + Fl_Image_Surface *image_surface_; protected: int width; int height; @@ -110,6 +113,7 @@ protected: virtual void untranslate() = 0; int printable_rect(int *w, int *h); virtual Fl_RGB_Image *image() = 0; + virtual Fl_Image_Surface *as_image_surface(); /** Each platform implements this function its own way. It returns an object implementing all virtual functions of class Fl_Image_Surface_Driver for the plaform. -- cgit v1.2.3