from misc import *
from gdi import *
-class wxEventPtr :
+class wxEventPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def Skip(self, *_args, **_kwargs):
val = apply(eventsc.wxEvent_Skip,(self,) + _args, _kwargs)
return val
+ def Clone(self, *_args, **_kwargs):
+ val = apply(eventsc.wxEvent_Clone,(self,) + _args, _kwargs)
+ if val: val = wxEventPtr(val)
+ return val
def __repr__(self):
return "<C wxEvent instance at %s>" % (self.this,)
class wxEvent(wxEventPtr):
- def __init__(self,*_args,**_kwargs):
- self.this = apply(eventsc.new_wxEvent,_args,_kwargs)
- self.thisown = 1
+ def __init__(self,this):
+ self.this = this
def SetInt(self, *_args, **_kwargs):
val = apply(eventsc.wxCommandEvent_SetInt,(self,) + _args, _kwargs)
return val
+ def GetClientData(self, *_args, **_kwargs):
+ val = apply(eventsc.wxCommandEvent_GetClientData,(self,) + _args, _kwargs)
+ return val
def __repr__(self):
return "<C wxCommandEvent instance at %s>" % (self.this,)
class wxCommandEvent(wxCommandEventPtr):
return val
def GetCurrentFocus(self, *_args, **_kwargs):
val = apply(eventsc.wxNavigationKeyEvent_GetCurrentFocus,(self,) + _args, _kwargs)
- if val: val = wxWindowPtr(val)
return val
def SetCurrentFocus(self, *_args, **_kwargs):
val = apply(eventsc.wxNavigationKeyEvent_SetCurrentFocus,(self,) + _args, _kwargs)
self.thisown = 0
def GetDC(self, *_args, **_kwargs):
val = apply(eventsc.wxEraseEvent_GetDC,(self,) + _args, _kwargs)
- if val: val = wxDCPtr(val)
return val
def __repr__(self):
return "<C wxEraseEvent instance at %s>" % (self.this,)
+class wxChildFocusEventPtr(wxCommandEventPtr):
+ def __init__(self,this):
+ self.this = this
+ self.thisown = 0
+ def GetWindow(self, *_args, **_kwargs):
+ val = apply(eventsc.wxChildFocusEvent_GetWindow,(self,) + _args, _kwargs)
+ return val
+ def __repr__(self):
+ return "<C wxChildFocusEvent instance at %s>" % (self.this,)
+class wxChildFocusEvent(wxChildFocusEventPtr):
+ def __init__(self,*_args,**_kwargs):
+ self.this = apply(eventsc.new_wxChildFocusEvent,_args,_kwargs)
+ self.thisown = 1
+
+
+
+
class wxActivateEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this
def __init__(self,this):
self.this = this
self.thisown = 0
+ def Iconized(self, *_args, **_kwargs):
+ val = apply(eventsc.wxIconizeEvent_Iconized,(self,) + _args, _kwargs)
+ return val
def __repr__(self):
return "<C wxIconizeEvent instance at %s>" % (self.this,)
class wxIconizeEvent(wxIconizeEventPtr):
return val
def GetChangedWindow(self, *_args, **_kwargs):
val = apply(eventsc.wxPaletteChangedEvent_GetChangedWindow,(self,) + _args, _kwargs)
- if val: val = wxWindowPtr(val)
return val
def __repr__(self):
return "<C wxPaletteChangedEvent instance at %s>" % (self.this,)
self.thisown = 0
def GetWindow(self, *_args, **_kwargs):
val = apply(eventsc.wxWindowCreateEvent_GetWindow,(self,) + _args, _kwargs)
- if val: val = wxWindowPtr(val)
return val
def __repr__(self):
return "<C wxWindowCreateEvent instance at %s>" % (self.this,)
self.thisown = 0
def GetWindow(self, *_args, **_kwargs):
val = apply(eventsc.wxWindowDestroyEvent_GetWindow,(self,) + _args, _kwargs)
- if val: val = wxWindowPtr(val)
return val
def __repr__(self):
return "<C wxWindowDestroyEvent instance at %s>" % (self.this,)
+class wxTextUrlEventPtr(wxCommandEventPtr):
+ def __init__(self,this):
+ self.this = this
+ self.thisown = 0
+ def GetMouseEvent(self, *_args, **_kwargs):
+ val = apply(eventsc.wxTextUrlEvent_GetMouseEvent,(self,) + _args, _kwargs)
+ return val
+ def GetURLStart(self, *_args, **_kwargs):
+ val = apply(eventsc.wxTextUrlEvent_GetURLStart,(self,) + _args, _kwargs)
+ return val
+ def GetURLEnd(self, *_args, **_kwargs):
+ val = apply(eventsc.wxTextUrlEvent_GetURLEnd,(self,) + _args, _kwargs)
+ return val
+ def __repr__(self):
+ return "<C wxTextUrlEvent instance at %s>" % (self.this,)
+class wxTextUrlEvent(wxTextUrlEventPtr):
+ def __init__(self,*_args,**_kwargs):
+ self.this = apply(eventsc.new_wxTextUrlEvent,_args,_kwargs)
+ self.thisown = 1
+
+
+
+
class wxPyEventPtr(wxEventPtr):
def __init__(self,this):
self.this = this