]>
git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/modules/glcanvas/msw/glcanvas.py
1 # This file was created automatically by SWIG.
12 from clip_dnd
import *
20 from stattool
import *
22 from controls
import *
24 from controls2
import *
26 from windows2
import *
30 from windows3
import *
38 class wxGLContextPtr
:
39 def __init__(self
,this
):
42 def __del__(self
,glcanvasc
=glcanvasc
):
43 if self
.thisown
== 1 :
44 glcanvasc
.delete_wxGLContext(self
)
45 def SetCurrent(self
, *_args
, **_kwargs
):
46 val
= apply(glcanvasc
.wxGLContext_SetCurrent
,(self
,) + _args
, _kwargs
)
48 def SetColour(self
, *_args
, **_kwargs
):
49 val
= apply(glcanvasc
.wxGLContext_SetColour
,(self
,) + _args
, _kwargs
)
51 def SwapBuffers(self
, *_args
, **_kwargs
):
52 val
= apply(glcanvasc
.wxGLContext_SwapBuffers
,(self
,) + _args
, _kwargs
)
54 def GetWindow(self
, *_args
, **_kwargs
):
55 val
= apply(glcanvasc
.wxGLContext_GetWindow
,(self
,) + _args
, _kwargs
)
56 if val
: val
= wxWindowPtr(val
)
59 return "<C wxGLContext instance at %s>" % (self
.this
,)
60 class wxGLContext(wxGLContextPtr
):
61 def __init__(self
,*_args
,**_kwargs
):
62 self
.this
= apply(glcanvasc
.new_wxGLContext
,_args
,_kwargs
)
68 class wxGLCanvasPtr(wxScrolledWindowPtr
):
69 def __init__(self
,this
):
72 def SetCurrent(self
, *_args
, **_kwargs
):
73 val
= apply(glcanvasc
.wxGLCanvas_SetCurrent
,(self
,) + _args
, _kwargs
)
75 def SetColour(self
, *_args
, **_kwargs
):
76 val
= apply(glcanvasc
.wxGLCanvas_SetColour
,(self
,) + _args
, _kwargs
)
78 def SwapBuffers(self
, *_args
, **_kwargs
):
79 val
= apply(glcanvasc
.wxGLCanvas_SwapBuffers
,(self
,) + _args
, _kwargs
)
81 def GetContext(self
, *_args
, **_kwargs
):
82 val
= apply(glcanvasc
.wxGLCanvas_GetContext
,(self
,) + _args
, _kwargs
)
83 if val
: val
= wxGLContextPtr(val
)
86 return "<C wxGLCanvas instance at %s>" % (self
.this
,)
87 class wxGLCanvas(wxGLCanvasPtr
):
88 def __init__(self
,*_args
,**_kwargs
):
89 self
.this
= apply(glcanvasc
.new_wxGLCanvas
,_args
,_kwargs
)
91 wx
._StdWindowCallbacks
(self
)
98 #-------------- FUNCTION WRAPPERS ------------------
102 #-------------- VARIABLE WRAPPERS ------------------