summaryrefslogtreecommitdiff
path: root/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.H
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-03-10 22:26:40 +0000
committerManolo Gouy <Manolo>2016-03-10 22:26:40 +0000
commit31fcd84ca990ded6b96f0e3a82adc3f38d0cdb2c (patch)
tree13212ec1fa76ebbfb144b831df6edd669acf5d69 /src/drivers/WinAPI/Fl_WinAPI_Window_Driver.H
parent7098924b82110cf468d3cbdc4742bd9a2632296d (diff)
Rewrite all window icon-related Fl_Window API with the window driver approach.
It seems this allows not to #include <windows.h> in the public header files. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11342 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/WinAPI/Fl_WinAPI_Window_Driver.H')
-rw-r--r--src/drivers/WinAPI/Fl_WinAPI_Window_Driver.H15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.H b/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.H
index 2517130bb..605a0547c 100644
--- a/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.H
+++ b/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.H
@@ -26,6 +26,7 @@
#define FL_WINAPI_WINDOW_DRIVER_H
#include <FL/Fl_Window_Driver.H>
+#include <windows.h>
/*
Move everything here that manages the native window interface.
@@ -42,6 +43,14 @@
? 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;
+ HICON big_icon;
+ HICON small_icon;
+};
+
struct Fl_Window_Driver::shape_data_type {
int lw_; ///< width of shape image
int lh_; ///< height of shape image
@@ -59,10 +68,14 @@ public:
~Fl_WinAPI_Window_Driver();
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();
+ void icons(HICON big_icon, HICON small_icon);
};
-
#endif // FL_WINAPI_WINDOW_DRIVER_H
//