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 SetupPixelFormat(self
, *_args
, **_kwargs
): 
  55         val 
= apply(glcanvasc
.wxGLContext_SetupPixelFormat
,(self
,) + _args
, _kwargs
) 
  57     def SetupPalette(self
, *_args
, **_kwargs
): 
  58         val 
= apply(glcanvasc
.wxGLContext_SetupPalette
,(self
,) + _args
, _kwargs
) 
  60     def CreateDefaultPalette(self
, *_args
, **_kwargs
): 
  61         val 
= apply(glcanvasc
.wxGLContext_CreateDefaultPalette
,(self
,) + _args
, _kwargs
) 
  62         if val
: val 
= wxPalettePtr(val
) ; val
.thisown 
= 1 
  64     def GetPalette(self
, *_args
, **_kwargs
): 
  65         val 
= apply(glcanvasc
.wxGLContext_GetPalette
,(self
,) + _args
, _kwargs
) 
  66         if val
: val 
= wxPalettePtr(val
)  
  68     def GetWindow(self
, *_args
, **_kwargs
): 
  69         val 
= apply(glcanvasc
.wxGLContext_GetWindow
,(self
,) + _args
, _kwargs
) 
  70         if val
: val 
= wxWindowPtr(val
)  
  73         return "<C wxGLContext instance at %s>" % (self
.this
,) 
  74 class wxGLContext(wxGLContextPtr
): 
  75     def __init__(self
,*_args
,**_kwargs
): 
  76         self
.this 
= apply(glcanvasc
.new_wxGLContext
,_args
,_kwargs
) 
  82 class wxGLCanvasPtr(wxScrolledWindowPtr
): 
  83     def __init__(self
,this
): 
  86     def SetCurrent(self
, *_args
, **_kwargs
): 
  87         val 
= apply(glcanvasc
.wxGLCanvas_SetCurrent
,(self
,) + _args
, _kwargs
) 
  89     def SetColour(self
, *_args
, **_kwargs
): 
  90         val 
= apply(glcanvasc
.wxGLCanvas_SetColour
,(self
,) + _args
, _kwargs
) 
  92     def SwapBuffers(self
, *_args
, **_kwargs
): 
  93         val 
= apply(glcanvasc
.wxGLCanvas_SwapBuffers
,(self
,) + _args
, _kwargs
) 
  95     def GetContext(self
, *_args
, **_kwargs
): 
  96         val 
= apply(glcanvasc
.wxGLCanvas_GetContext
,(self
,) + _args
, _kwargs
) 
  97         if val
: val 
= wxGLContextPtr(val
)  
 100         return "<C wxGLCanvas instance at %s>" % (self
.this
,) 
 101 class wxGLCanvas(wxGLCanvasPtr
): 
 102     def __init__(self
,*_args
,**_kwargs
): 
 103         self
.this 
= apply(glcanvasc
.new_wxGLCanvas
,_args
,_kwargs
) 
 105         #wx._StdWindowCallbacks(self) 
 112 #-------------- FUNCTION WRAPPERS ------------------ 
 116 #-------------- VARIABLE WRAPPERS ------------------