diff options
| author | Manolo Gouy <Manolo> | 2016-03-23 13:13:00 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-03-23 13:13:00 +0000 |
| commit | a114e3ab4d9fa408061003c04a95b293b3842f24 (patch) | |
| tree | e2aed2f3ecaba5b38290700159cef16c01fab292 /FL | |
| parent | 270b437500552cba0d082363f9124456f16a1fda (diff) | |
Rewrite Fl_Window::handle(int) under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11403 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Window_Driver.H | 2 | ||||
| -rw-r--r-- | FL/mac.H | 2 | ||||
| -rw-r--r-- | FL/win32.H | 4 |
3 files changed, 2 insertions, 6 deletions
diff --git a/FL/Fl_Window_Driver.H b/FL/Fl_Window_Driver.H index f386e04f4..6ff2a1bab 100644 --- a/FL/Fl_Window_Driver.H +++ b/FL/Fl_Window_Driver.H @@ -85,6 +85,8 @@ public: virtual void resize(int X,int Y,int W,int H) {} virtual void hide() {} int hide_common(); + virtual void map() {} + virtual void unmap() {} // --- window shape stuff void shape_pixmap_(Fl_Image* pixmap); // TODO: check @@ -177,8 +177,6 @@ public: static void GLcontext_makecurrent(NSOpenGLContext*); static void GL_cleardrawable(void); void destroy(void); - void map(void); - void unmap(void); void collapse(void); WindowRef window_ref(void); // useless with cocoa GL windows void set_key_window(void); diff --git a/FL/win32.H b/FL/win32.H index bb8c4050a..f78e63bcc 100644 --- a/FL/win32.H +++ b/FL/win32.H @@ -57,10 +57,6 @@ inline void XClipBox(Fl_Region r,XRectangle* rect) { rect->width=win_rect.right-win_rect.left; rect->height=win_rect.bottom-win_rect.top; } -#define XDestroyWindow(a,b) DestroyWindow(b) -#define XMapWindow(a,b) ShowWindow(b, SW_RESTORE) -#define XUnmapWindow(a,b) ShowWindow(b, SW_HIDE) - // this object contains all win32-specific stuff about a window: // Warning: this object is highly subject to change! class FL_EXPORT Fl_X { |
