| 1 |
/* File : Fl_Overlay_Window.i */ |
| 2 |
//%module Fl_Overlay_Window |
| 3 |
|
| 4 |
%feature("docstring") ::Fl_Overlay_Window |
| 5 |
""" |
| 6 |
This window provides double buffering and also the ability to draw the |
| 7 |
'overlay' which is another picture placed on top of the main image. The |
| 8 |
overlay is designed to be a rapidly-changing but simple graphic such as |
| 9 |
a mouse selection box. Fl_Overlay_Window uses the overlay planes provided |
| 10 |
by your graphics hardware if they are available. |
| 11 |
|
| 12 |
If no hardware support is found the overlay is simulated by drawing directly |
| 13 |
into the on-screen copy of the double-buffered window, and 'erased' by |
| 14 |
copying the backbuffer over it again. This means the overlay will blink if |
| 15 |
you change the image in the window. |
| 16 |
""" ; |
| 17 |
|
| 18 |
%feature("nodirector") Fl_Overlay_Window::show; |
| 19 |
|
| 20 |
%{ |
| 21 |
#include "FL/Fl_Overlay_Window.H" |
| 22 |
%} |
| 23 |
|
| 24 |
%include "macros.i" |
| 25 |
|
| 26 |
CHANGE_OWNERSHIP(Fl_Overlay_Window) |
| 27 |
|
| 28 |
%include "WindowShowTypemap.i" |
| 29 |
|
| 30 |
// override method show |
| 31 |
%extend Fl_Overlay_Window { |
| 32 |
MACRO_WINDOW_SHOW |
| 33 |
} |
| 34 |
|
| 35 |
// ignore original declaration |
| 36 |
%ignore Fl_Overlay_Window::show(); |
| 37 |
%ignore Fl_Overlay_Window::show(int argc, char** argv); |
| 38 |
|
| 39 |
%include "FL/Fl_Overlay_Window.H" |