diff options
| author | Manolo Gouy <Manolo> | 2016-01-28 11:51:07 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-01-28 11:51:07 +0000 |
| commit | 1c3c544edf1af6884e4002f04aa28cce4a06fbec (patch) | |
| tree | 26f72eccf3d60dc04d5026df9678eec7652d33d1 /FL | |
| parent | e2cc1a80f09b7b33665be2ae14ef20673f9d6f7b (diff) | |
Added Fl_Window::capture_titlebar_and_borders a new private member function
that triggers a warning when FL_PORTING is ON and with a default platform-neutral
implementation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11074 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Window.H | 3 | ||||
| -rw-r--r-- | FL/mac.H | 1 | ||||
| -rw-r--r-- | FL/win32.H | 1 | ||||
| -rw-r--r-- | FL/x.H | 1 |
4 files changed, 3 insertions, 3 deletions
diff --git a/FL/Fl_Window.H b/FL/Fl_Window.H index a8f2515e8..49b511a71 100644 --- a/FL/Fl_Window.H +++ b/FL/Fl_Window.H @@ -70,6 +70,7 @@ class FL_EXPORT Fl_Window : public Fl_Group { int fullscreen_screen_right; friend class Fl_X; + friend class Fl_Paged_Device; Fl_X *i; // points at the system-specific stuff struct icon_data { @@ -97,6 +98,8 @@ class FL_EXPORT Fl_Window : public Fl_Group { uchar size_range_set; // cursor stuff Fl_Cursor cursor_default; + // Captures the titlebar and borders of the window, if they exist. + void capture_titlebar_and_borders(Fl_RGB_Image*& top, Fl_RGB_Image*& left, Fl_RGB_Image*& bottom, Fl_RGB_Image*& right); protected: /** Data supporting a non-rectangular window shape */ @@ -187,7 +187,6 @@ public: void set_icons() {}; int set_cursor(Fl_Cursor); int set_cursor(const Fl_RGB_Image*, int, int); - void capture_titlebar_and_borders(Fl_RGB_Image*& top, Fl_RGB_Image*& left, Fl_RGB_Image*& bottom, Fl_RGB_Image*& right); static CGImageRef CGImage_from_window_rect(Fl_Window *win, int x, int y, int w, int h); static unsigned char *bitmap_from_window_rect(Fl_Window *win, int x, int y, int w, int h, int *bytesPerPixel); static Fl_Region intersect_region_and_rect(Fl_Region current, int x,int y,int w, int h); diff --git a/FL/win32.H b/FL/win32.H index c7f689ede..657a66d9f 100644 --- a/FL/win32.H +++ b/FL/win32.H @@ -90,7 +90,6 @@ public: void set_icons(); int set_cursor(Fl_Cursor); int set_cursor(const Fl_RGB_Image*, int, int); - void capture_titlebar_and_borders(Fl_RGB_Image*& top, Fl_RGB_Image*& left, Fl_RGB_Image*& bottom, Fl_RGB_Image*& right); static Fl_X* make(Fl_Window*); }; extern FL_EXPORT UINT fl_wake_msg; @@ -147,7 +147,6 @@ public: void set_icons(); int set_cursor(Fl_Cursor); int set_cursor(const Fl_RGB_Image*, int, int); - void capture_titlebar_and_borders(Fl_RGB_Image*& top, Fl_RGB_Image*& left, Fl_RGB_Image*& bottom, Fl_RGB_Image*& right); static void make_xid(Fl_Window*,XVisualInfo* =fl_visual, Colormap=fl_colormap); static Fl_X* set_xid(Fl_Window*, Window); // kludges to get around protection: |
