Cleanup up the demo a bit

Added wxWave

Added another patch for SWIG that optimizes the generated code some
and eliminates some unused type mappings in the type registry.
(Reduces it by about half!)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10218 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2001-05-18 21:59:59 +00:00
parent c20a12bd55
commit 493f1553fd
73 changed files with 3330 additions and 14483 deletions

View File

@@ -626,6 +626,29 @@ class wxJoystick(wxJoystickPtr):
class wxWavePtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def __del__(self,misc2c=misc2c):
if self.thisown == 1 :
misc2c.delete_wxWave(self)
def IsOk(self, *_args, **_kwargs):
val = apply(misc2c.wxWave_IsOk,(self,) + _args, _kwargs)
return val
def Play(self, *_args, **_kwargs):
val = apply(misc2c.wxWave_Play,(self,) + _args, _kwargs)
return val
def __repr__(self):
return "<C wxWave instance at %s>" % (self.this,)
class wxWave(wxWavePtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(misc2c.new_wxWave,_args,_kwargs)
self.thisown = 1
#-------------- FUNCTION WRAPPERS ------------------
@@ -687,6 +710,16 @@ def wxGetActiveWindow(*_args, **_kwargs):
val = apply(misc2c.wxGetActiveWindow,_args,_kwargs)
return val
def wxGenericFindWindowAtPoint(*_args, **_kwargs):
val = apply(misc2c.wxGenericFindWindowAtPoint,_args,_kwargs)
return val
def wxFindWindowAtPoint(*_args, **_kwargs):
val = apply(misc2c.wxFindWindowAtPoint,_args,_kwargs)
return val
wxCheckForInterrupt = misc2c.wxCheckForInterrupt
wxResourceAddIdentifier = misc2c.wxResourceAddIdentifier
wxResourceClear = misc2c.wxResourceClear
@@ -798,6 +831,11 @@ wxLogSysError = misc2c.wxLogSysError
wxExecute = misc2c.wxExecute
def wxWaveData(*_args, **_kwargs):
val = apply(misc2c.wxWaveData,_args,_kwargs)
if val: val = wxWavePtr(val); val.thisown = 1
return val
wxLog_IsEnabled = misc2c.wxLog_IsEnabled
wxLog_EnableLogging = misc2c.wxLog_EnableLogging