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 
: 
  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 SetupPixelFormat(self
, *_args
, **_kwargs
): 
  61         val 
= apply(glcanvasc
.wxGLContext_SetupPixelFormat
,(self
,) + _args
, _kwargs
) 
  63     def SetupPalette(self
, *_args
, **_kwargs
): 
  64         val 
= apply(glcanvasc
.wxGLContext_SetupPalette
,(self
,) + _args
, _kwargs
) 
  66     def CreateDefaultPalette(self
, *_args
, **_kwargs
): 
  67         val 
= apply(glcanvasc
.wxGLContext_CreateDefaultPalette
,(self
,) + _args
, _kwargs
) 
  68         if val
: val 
= wxPalettePtr(val
) ; val
.thisown 
= 1 
  70     def GetPalette(self
, *_args
, **_kwargs
): 
  71         val 
= apply(glcanvasc
.wxGLContext_GetPalette
,(self
,) + _args
, _kwargs
) 
  72         if val
: val 
= wxPalettePtr(val
)  
  74     def GetWindow(self
, *_args
, **_kwargs
): 
  75         val 
= apply(glcanvasc
.wxGLContext_GetWindow
,(self
,) + _args
, _kwargs
) 
  76         if val
: val 
= wxWindowPtr(val
)  
  79         return "<C wxGLContext instance at %s>" % (self
.this
,) 
  80 class wxGLContext(wxGLContextPtr
): 
  81     def __init__(self
,*_args
,**_kwargs
): 
  82         self
.this 
= apply(glcanvasc
.new_wxGLContext
,_args
,_kwargs
) 
  88 class wxGLCanvasPtr(wxScrolledWindowPtr
): 
  89     def __init__(self
,this
): 
  92     def SetCurrent(self
, *_args
, **_kwargs
): 
  93         val 
= apply(glcanvasc
.wxGLCanvas_SetCurrent
,(self
,) + _args
, _kwargs
) 
  95     def SetColour(self
, *_args
, **_kwargs
): 
  96         val 
= apply(glcanvasc
.wxGLCanvas_SetColour
,(self
,) + _args
, _kwargs
) 
  98     def SwapBuffers(self
, *_args
, **_kwargs
): 
  99         val 
= apply(glcanvasc
.wxGLCanvas_SwapBuffers
,(self
,) + _args
, _kwargs
) 
 101     def GetContext(self
, *_args
, **_kwargs
): 
 102         val 
= apply(glcanvasc
.wxGLCanvas_GetContext
,(self
,) + _args
, _kwargs
) 
 103         if val
: val 
= wxGLContextPtr(val
)  
 106         return "<C wxGLCanvas instance at %s>" % (self
.this
,) 
 107 class wxGLCanvas(wxGLCanvasPtr
): 
 108     def __init__(self
,*_args
,**_kwargs
): 
 109         self
.this 
= apply(glcanvasc
.new_wxGLCanvas
,_args
,_kwargs
) 
 111         #wx._StdWindowCallbacks(self) 
 118 #-------------- FUNCTION WRAPPERS ------------------ 
 122 #-------------- VARIABLE WRAPPERS ------------------