1999-08-23 18:00:34 +00:00
|
|
|
# This file was created automatically by SWIG.
|
|
|
|
import glcanvasc
|
|
|
|
|
|
|
|
from misc import *
|
|
|
|
|
|
|
|
from misc2 import *
|
|
|
|
|
|
|
|
from windows import *
|
|
|
|
|
|
|
|
from gdi import *
|
|
|
|
|
1999-12-29 22:10:32 +00:00
|
|
|
from clip_dnd import *
|
|
|
|
|
1999-08-23 18:00:34 +00:00
|
|
|
from events import *
|
|
|
|
|
2000-12-11 02:53:24 +00:00
|
|
|
from streams import *
|
|
|
|
|
1999-08-23 18:00:34 +00:00
|
|
|
from mdi import *
|
|
|
|
|
|
|
|
from frames import *
|
|
|
|
|
|
|
|
from stattool import *
|
|
|
|
|
|
|
|
from controls import *
|
|
|
|
|
|
|
|
from controls2 import *
|
|
|
|
|
|
|
|
from windows2 import *
|
|
|
|
|
|
|
|
from cmndlgs import *
|
|
|
|
|
|
|
|
from windows3 import *
|
|
|
|
|
|
|
|
from image import *
|
|
|
|
|
|
|
|
from printfw import *
|
1999-12-29 22:10:32 +00:00
|
|
|
|
|
|
|
from sizers import *
|
2000-12-11 02:53:24 +00:00
|
|
|
|
|
|
|
from filesys import *
|
|
|
|
|
|
|
|
from utils import *
|
1999-08-23 18:00:34 +00:00
|
|
|
import wx
|
2001-05-18 05:20:01 +00:00
|
|
|
class wxGLContextPtr(wxObjectPtr):
|
1999-08-23 18:00:34 +00:00
|
|
|
def __init__(self,this):
|
|
|
|
self.this = this
|
|
|
|
self.thisown = 0
|
1999-08-24 12:51:54 +00:00
|
|
|
def __del__(self,glcanvasc=glcanvasc):
|
1999-08-23 18:00:34 +00:00
|
|
|
if self.thisown == 1 :
|
1999-08-24 12:51:54 +00:00
|
|
|
glcanvasc.delete_wxGLContext(self)
|
|
|
|
def SetCurrent(self, *_args, **_kwargs):
|
|
|
|
val = apply(glcanvasc.wxGLContext_SetCurrent,(self,) + _args, _kwargs)
|
1999-08-23 18:00:34 +00:00
|
|
|
return val
|
1999-08-24 12:51:54 +00:00
|
|
|
def SetColour(self, *_args, **_kwargs):
|
|
|
|
val = apply(glcanvasc.wxGLContext_SetColour,(self,) + _args, _kwargs)
|
1999-08-23 18:00:34 +00:00
|
|
|
return val
|
1999-08-24 12:51:54 +00:00
|
|
|
def SwapBuffers(self, *_args, **_kwargs):
|
|
|
|
val = apply(glcanvasc.wxGLContext_SwapBuffers,(self,) + _args, _kwargs)
|
1999-08-23 18:00:34 +00:00
|
|
|
return val
|
1999-08-24 12:51:54 +00:00
|
|
|
def SetupPixelFormat(self, *_args, **_kwargs):
|
|
|
|
val = apply(glcanvasc.wxGLContext_SetupPixelFormat,(self,) + _args, _kwargs)
|
1999-08-23 18:00:34 +00:00
|
|
|
return val
|
1999-08-24 12:51:54 +00:00
|
|
|
def SetupPalette(self, *_args, **_kwargs):
|
|
|
|
val = apply(glcanvasc.wxGLContext_SetupPalette,(self,) + _args, _kwargs)
|
1999-08-23 18:00:34 +00:00
|
|
|
return val
|
1999-08-24 12:51:54 +00:00
|
|
|
def CreateDefaultPalette(self, *_args, **_kwargs):
|
|
|
|
val = apply(glcanvasc.wxGLContext_CreateDefaultPalette,(self,) + _args, _kwargs)
|
|
|
|
if val: val = wxPalettePtr(val) ; val.thisown = 1
|
1999-08-23 18:00:34 +00:00
|
|
|
return val
|
1999-08-24 12:51:54 +00:00
|
|
|
def GetPalette(self, *_args, **_kwargs):
|
|
|
|
val = apply(glcanvasc.wxGLContext_GetPalette,(self,) + _args, _kwargs)
|
|
|
|
if val: val = wxPalettePtr(val)
|
1999-08-23 18:00:34 +00:00
|
|
|
return val
|
1999-08-24 12:51:54 +00:00
|
|
|
def GetWindow(self, *_args, **_kwargs):
|
|
|
|
val = apply(glcanvasc.wxGLContext_GetWindow,(self,) + _args, _kwargs)
|
1999-08-23 18:00:34 +00:00
|
|
|
return val
|
|
|
|
def __repr__(self):
|
1999-08-24 12:51:54 +00:00
|
|
|
return "<C wxGLContext instance at %s>" % (self.this,)
|
1999-08-23 18:00:34 +00:00
|
|
|
class wxGLContext(wxGLContextPtr):
|
1999-08-24 12:51:54 +00:00
|
|
|
def __init__(self,*_args,**_kwargs):
|
|
|
|
self.this = apply(glcanvasc.new_wxGLContext,_args,_kwargs)
|
1999-08-23 18:00:34 +00:00
|
|
|
self.thisown = 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class wxGLCanvasPtr(wxScrolledWindowPtr):
|
|
|
|
def __init__(self,this):
|
|
|
|
self.this = this
|
|
|
|
self.thisown = 0
|
1999-08-24 12:51:54 +00:00
|
|
|
def SetCurrent(self, *_args, **_kwargs):
|
|
|
|
val = apply(glcanvasc.wxGLCanvas_SetCurrent,(self,) + _args, _kwargs)
|
1999-08-23 18:00:34 +00:00
|
|
|
return val
|
1999-08-24 12:51:54 +00:00
|
|
|
def SetColour(self, *_args, **_kwargs):
|
|
|
|
val = apply(glcanvasc.wxGLCanvas_SetColour,(self,) + _args, _kwargs)
|
1999-08-23 18:00:34 +00:00
|
|
|
return val
|
1999-08-24 12:51:54 +00:00
|
|
|
def SwapBuffers(self, *_args, **_kwargs):
|
|
|
|
val = apply(glcanvasc.wxGLCanvas_SwapBuffers,(self,) + _args, _kwargs)
|
1999-08-23 18:00:34 +00:00
|
|
|
return val
|
1999-08-24 12:51:54 +00:00
|
|
|
def GetContext(self, *_args, **_kwargs):
|
|
|
|
val = apply(glcanvasc.wxGLCanvas_GetContext,(self,) + _args, _kwargs)
|
|
|
|
if val: val = wxGLContextPtr(val)
|
1999-08-23 18:00:34 +00:00
|
|
|
return val
|
|
|
|
def __repr__(self):
|
1999-08-24 12:51:54 +00:00
|
|
|
return "<C wxGLCanvas instance at %s>" % (self.this,)
|
1999-08-23 18:00:34 +00:00
|
|
|
class wxGLCanvas(wxGLCanvasPtr):
|
1999-08-24 12:51:54 +00:00
|
|
|
def __init__(self,*_args,**_kwargs):
|
|
|
|
self.this = apply(glcanvasc.new_wxGLCanvas,_args,_kwargs)
|
1999-08-23 18:00:34 +00:00
|
|
|
self.thisown = 1
|
2000-07-15 19:51:35 +00:00
|
|
|
#wx._StdWindowCallbacks(self)
|
1999-08-23 18:00:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#-------------- FUNCTION WRAPPERS ------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#-------------- VARIABLE WRAPPERS ------------------
|
|
|
|
|