From 31fcd84ca990ded6b96f0e3a82adc3f38d0cdb2c Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Thu, 10 Mar 2016 22:26:40 +0000 Subject: Rewrite all window icon-related Fl_Window API with the window driver approach. It seems this allows not to #include in the public header files. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11342 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/drivers/X11/Fl_X11_Window_Driver.H | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/drivers/X11/Fl_X11_Window_Driver.H') diff --git a/src/drivers/X11/Fl_X11_Window_Driver.H b/src/drivers/X11/Fl_X11_Window_Driver.H index c7ea3d382..e4f8862bd 100644 --- a/src/drivers/X11/Fl_X11_Window_Driver.H +++ b/src/drivers/X11/Fl_X11_Window_Driver.H @@ -42,6 +42,13 @@ ? where do we handle the interface between OpenGL/DirectX and Cocoa/WIN32/Glx? */ +struct Fl_Window_Driver::icon_data { + const void *legacy_icon; + Fl_RGB_Image **icons; + int count; +}; + + struct Fl_Window_Driver::shape_data_type { int lw_; ///< width of shape image int lh_; ///< height of shape image @@ -62,6 +69,10 @@ public: virtual void take_focus(); virtual void shape(const Fl_Image* img); virtual void draw(); + virtual void icons(const Fl_RGB_Image *icons[], int count); + virtual const void *icon() const; + virtual void icon(const void * ic); + virtual void free_icons(); }; -- cgit v1.2.3