summaryrefslogtreecommitdiff
path: root/src/Fl_Window.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2019-02-23 10:21:27 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2019-02-23 10:21:27 +0100
commit21c0134931ef22d6645fc182d7812776e14e369d (patch)
tree14e41d62f041a000214442be26aefb33eb911c02 /src/Fl_Window.cxx
parentf9255e375cb4751404e33837cdddd6f2d31d96b9 (diff)
New member function const Fl_Image* Fl_Window::shape() replaces int Fl_Window::is_shaped()
The new function allows to get the window's shaping image and delete it after use, if appropriate.
Diffstat (limited to 'src/Fl_Window.cxx')
-rw-r--r--src/Fl_Window.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_Window.cxx b/src/Fl_Window.cxx
index 0cde4989d..f664b1fc9 100644
--- a/src/Fl_Window.cxx
+++ b/src/Fl_Window.cxx
@@ -679,8 +679,8 @@ void Fl_Window::shape(const Fl_Image* img) {pWindowDriver->shape(img);}
*/
void Fl_Window::shape(const Fl_Image& img) {pWindowDriver->shape(&img);}
-/** Returns non NULL when the window has been assigned a non-rectangular shape */
-int Fl_Window::is_shaped() {return pWindowDriver->shape_data_ != NULL;}
+/** Returns the image controlling the window shape or NULL */
+const Fl_Image* Fl_Window::shape() {return pWindowDriver->shape();}
//
// End of "$Id$".