| 1 |
/* File : Fl_Double_Window.i */ |
| 2 |
//%module Fl_Double_Window |
| 3 |
|
| 4 |
%feature("docstring") ::Fl_Double_Window |
| 5 |
""" |
| 6 |
The Fl_Double_Window class provides a double-buffered window. If possible |
| 7 |
this will use the X double buffering extension (Xdbe). If not, it will draw |
| 8 |
the window data into an off-screen pixmap, and then copy it to the on-screen |
| 9 |
window. |
| 10 |
|
| 11 |
It is highly recommended that you put the following code before the first |
| 12 |
show() of any window in your program: |
| 13 |
|
| 14 |
Fl.visual(FL_DOUBLE|FL_INDEX) |
| 15 |
|
| 16 |
This makes sure you can use Xdbe on servers where double buffering does not |
| 17 |
exist for every visual. |
| 18 |
""" ; |
| 19 |
|
| 20 |
%feature("nodirector") Fl_Double_Window::show; |
| 21 |
|
| 22 |
%{ |
| 23 |
#include "FL/Fl_Double_Window.H" |
| 24 |
%} |
| 25 |
|
| 26 |
%include "macros.i" |
| 27 |
|
| 28 |
CHANGE_OWNERSHIP(Fl_Double_Window) |
| 29 |
|
| 30 |
%include "WindowShowTypemap.i" |
| 31 |
|
| 32 |
// override method show |
| 33 |
%extend Fl_Double_Window { |
| 34 |
MACRO_WINDOW_SHOW |
| 35 |
} |
| 36 |
|
| 37 |
// ignore original declaration |
| 38 |
%ignore Fl_Double_Window::show(); |
| 39 |
%ignore Fl_Double_Window::show(int argc, char** argv); |
| 40 |
|
| 41 |
%include "FL/Fl_Double_Window.H" |
| 42 |
|
| 43 |
|