From 21c0134931ef22d6645fc182d7812776e14e369d Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sat, 23 Feb 2019 10:21:27 +0100 Subject: 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. --- src/Fl_Window.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Fl_Window.cxx') 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$". -- cgit v1.2.3