File: Fl_Double_Window.i

package info (click to toggle)
pyfltk 1.4.4.0%2Brepack-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,556 kB
  • sloc: python: 7,769; cpp: 356; makefile: 24
file content (43 lines) | stat: -rw-r--r-- 1,009 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/* File : Fl_Double_Window.i */
//%module Fl_Double_Window

%feature("docstring") ::Fl_Double_Window
"""
The Fl_Double_Window class provides a double-buffered window. If possible 
this will use the X double buffering extension (Xdbe). If not, it will draw 
the window data into an off-screen pixmap, and then copy it to the on-screen 
window.

It is highly recommended that you put the following code before the first 
show() of any window in your program:

      Fl.visual(FL_DOUBLE|FL_INDEX)

This makes sure you can use Xdbe on servers where double buffering does not 
exist for every visual.
""" ;

%feature("nodirector") Fl_Double_Window::show;

%{
#include "FL/Fl_Double_Window.H"
%}

%include "macros.i"

CHANGE_OWNERSHIP(Fl_Double_Window)

%include "WindowShowTypemap.i"

// override method show
%extend Fl_Double_Window {
	MACRO_WINDOW_SHOW
}

// ignore original declaration
%ignore Fl_Double_Window::show();
%ignore Fl_Double_Window::show(int argc, char** argv);

%include "FL/Fl_Double_Window.H"