diff options
| author | Manolo Gouy <Manolo> | 2014-09-21 14:10:36 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2014-09-21 14:10:36 +0000 |
| commit | f1b2c92fcea255c692177689f178a2eb74613f4e (patch) | |
| tree | 5575726e6e330b2d32b38d5bb26bb80e805357fe /examples | |
| parent | 67817899484ce2299550c09791aa2a794bbf01f0 (diff) | |
STR#3093 continued: deleted the Fl_Shaped_Window class. Instead, added new member function Fl_Window::shape(Fl_Image*)
that gives a non-rectangular shape to a standard window. The benefit is that it works with Fl_Double_Window and Fl_Menu_Window as well.
It also works for free with Fl_Gl_Window on the X11 platform only.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10325 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/shapedwindow.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/shapedwindow.cxx b/examples/shapedwindow.cxx index 0c489a31e..bcfabd20c 100644 --- a/examples/shapedwindow.cxx +++ b/examples/shapedwindow.cxx @@ -20,7 +20,7 @@ #include <FL/Fl_Button.H> #include <FL/Fl_Box.H> #include <FL/Fl.H> -#include <FL/Fl_Shaped_Window.H> +#include <FL/Fl_Double_Window.H> #include <FL/Fl_Image.H> #include <FL/Fl_Tiled_Image.H> #include <FL/Fl_Image_Surface.H> @@ -91,7 +91,7 @@ Fl_RGB_Image* prepare_shape(int w) int main(int argc, char **argv) { int dim = 200; - Fl_Shaped_Window *win = new Fl_Shaped_Window(100, 100, dim, dim, "Testing1"); + Fl_Double_Window *win = new Fl_Double_Window(100, 100, dim, dim, "Testing1"); Fl_RGB_Image *img = prepare_shape(dim); win->shape(img); dragbox *box = new dragbox(0, 0, win->w(), win->h()); |
