def __repr__(self):
return "<C wxImageHandler instance at %s>" % (self.this,)
class wxImageHandler(wxImageHandlerPtr):
- def __init__(self,*_args,**_kwargs):
- self.this = apply(imagec.new_wxImageHandler,_args,_kwargs)
- self.thisown = 1
+ def __init__(self,this):
+ self.this = this
+class wxPNMHandlerPtr(wxImageHandlerPtr):
+ def __init__(self,this):
+ self.this = this
+ self.thisown = 0
+ def __repr__(self):
+ return "<C wxPNMHandler instance at %s>" % (self.this,)
+class wxPNMHandler(wxPNMHandlerPtr):
+ def __init__(self,*_args,**_kwargs):
+ self.this = apply(imagec.new_wxPNMHandler,_args,_kwargs)
+ self.thisown = 1
+
+
+
+
+class wxPCXHandlerPtr(wxImageHandlerPtr):
+ def __init__(self,this):
+ self.this = this
+ self.thisown = 0
+ def __repr__(self):
+ return "<C wxPCXHandler instance at %s>" % (self.this,)
+class wxPCXHandler(wxPCXHandlerPtr):
+ def __init__(self,*_args,**_kwargs):
+ self.this = apply(imagec.new_wxPCXHandler,_args,_kwargs)
+ self.thisown = 1
+
+
+
+
class wxImagePtr :
def __init__(self,this):
self.this = this
def GetHeight(self, *_args, **_kwargs):
val = apply(imagec.wxImage_GetHeight,(self,) + _args, _kwargs)
return val
+ def GetSubImage(self, *_args, **_kwargs):
+ val = apply(imagec.wxImage_GetSubImage,(self,) + _args, _kwargs)
+ if val: val = wxImagePtr(val) ; val.thisown = 1
+ return val
def GetData(self, *_args, **_kwargs):
val = apply(imagec.wxImage_GetData,(self,) + _args, _kwargs)
return val
wxImage_AddHandler = imagec.wxImage_AddHandler
+wxInitAllImageHandlers = imagec.wxInitAllImageHandlers
+
#-------------- VARIABLE WRAPPERS ------------------