1 # This file was created automatically by SWIG.
12 from clip_dnd
import *
22 from stattool
import *
24 from controls
import *
26 from controls2
import *
28 from windows2
import *
32 from windows3
import *
44 class wxGLContextPtr(wxObjectPtr
):
45 def __init__(self
,this
):
48 def __del__(self
,glcanvasc
=glcanvasc
):
49 if self
.thisown
== 1 :
50 glcanvasc
.delete_wxGLContext(self
)
51 def SetCurrent(self
, *_args
, **_kwargs
):
52 val
= apply(glcanvasc
.wxGLContext_SetCurrent
,(self
,) + _args
, _kwargs
)
54 def SetColour(self
, *_args
, **_kwargs
):
55 val
= apply(glcanvasc
.wxGLContext_SetColour
,(self
,) + _args
, _kwargs
)
57 def SwapBuffers(self
, *_args
, **_kwargs
):
58 val
= apply(glcanvasc
.wxGLContext_SwapBuffers
,(self
,) + _args
, _kwargs
)
60 def GetWindow(self
, *_args
, **_kwargs
):
61 val
= apply(glcanvasc
.wxGLContext_GetWindow
,(self
,) + _args
, _kwargs
)
64 return "<C wxGLContext instance at %s>" % (self
.this
,)
65 class wxGLContext(wxGLContextPtr
):
66 def __init__(self
,*_args
,**_kwargs
):
67 self
.this
= apply(glcanvasc
.new_wxGLContext
,_args
,_kwargs
)
73 class wxGLCanvasPtr(wxWindowPtr
):
74 def __init__(self
,this
):
77 def SetCurrent(self
, *_args
, **_kwargs
):
78 val
= apply(glcanvasc
.wxGLCanvas_SetCurrent
,(self
,) + _args
, _kwargs
)
80 def SetColour(self
, *_args
, **_kwargs
):
81 val
= apply(glcanvasc
.wxGLCanvas_SetColour
,(self
,) + _args
, _kwargs
)
83 def SwapBuffers(self
, *_args
, **_kwargs
):
84 val
= apply(glcanvasc
.wxGLCanvas_SwapBuffers
,(self
,) + _args
, _kwargs
)
86 def GetContext(self
, *_args
, **_kwargs
):
87 val
= apply(glcanvasc
.wxGLCanvas_GetContext
,(self
,) + _args
, _kwargs
)
88 if val
: val
= wxGLContextPtr(val
)
90 def SetupPixelFormat(self
, *_args
, **_kwargs
):
91 val
= apply(glcanvasc
.wxGLCanvas_SetupPixelFormat
,(self
,) + _args
, _kwargs
)
93 def SetupPalette(self
, *_args
, **_kwargs
):
94 val
= apply(glcanvasc
.wxGLCanvas_SetupPalette
,(self
,) + _args
, _kwargs
)
96 def CreateDefaultPalette(self
, *_args
, **_kwargs
):
97 val
= apply(glcanvasc
.wxGLCanvas_CreateDefaultPalette
,(self
,) + _args
, _kwargs
)
98 if val
: val
= wxPalettePtr(val
) ; val
.thisown
= 1
100 def GetPalette(self
, *_args
, **_kwargs
):
101 val
= apply(glcanvasc
.wxGLCanvas_GetPalette
,(self
,) + _args
, _kwargs
)
102 if val
: val
= wxPalettePtr(val
)
105 return "<C wxGLCanvas instance at %s>" % (self
.this
,)
106 class wxGLCanvas(wxGLCanvasPtr
):
107 def __init__(self
,*_args
,**_kwargs
):
108 self
.this
= apply(glcanvasc
.new_wxGLCanvas
,_args
,_kwargs
)
110 self
._setOORInfo
(self
)
114 def wxGLCanvasWithContext(*_args
,**_kwargs
):
115 val
= wxGLCanvasPtr(apply(glcanvasc
.new_wxGLCanvasWithContext
,_args
,_kwargs
))
117 val
._setOORInfo
(self
)
123 #-------------- FUNCTION WRAPPERS ------------------
127 #-------------- VARIABLE WRAPPERS ------------------