from misc import *
from gdi import *
-class wxEventPtr :
+class wxEventPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetY(self, *_args, **_kwargs):
val = apply(eventsc.wxMouseEvent_GetY,(self,) + _args, _kwargs)
return val
+ def GetWheelRotation(self, *_args, **_kwargs):
+ val = apply(eventsc.wxMouseEvent_GetWheelRotation,(self,) + _args, _kwargs)
+ return val
+ def GetWheelDelta(self, *_args, **_kwargs):
+ val = apply(eventsc.wxMouseEvent_GetWheelDelta,(self,) + _args, _kwargs)
+ return val
+ def GetLinesPerAction(self, *_args, **_kwargs):
+ val = apply(eventsc.wxMouseEvent_GetLinesPerAction,(self,) + _args, _kwargs)
+ return val
def __setattr__(self,name,value):
if name == "m_x" :
eventsc.wxMouseEvent_m_x_set(self,value)
if name == "m_metaDown" :
eventsc.wxMouseEvent_m_metaDown_set(self,value)
return
+ if name == "m_wheelRotation" :
+ eventsc.wxMouseEvent_m_wheelRotation_set(self,value)
+ return
+ if name == "m_wheelDelta" :
+ eventsc.wxMouseEvent_m_wheelDelta_set(self,value)
+ return
+ if name == "m_linesPerAction" :
+ eventsc.wxMouseEvent_m_linesPerAction_set(self,value)
+ return
self.__dict__[name] = value
def __getattr__(self,name):
if name == "m_x" :
return eventsc.wxMouseEvent_m_altDown_get(self)
if name == "m_metaDown" :
return eventsc.wxMouseEvent_m_metaDown_get(self)
+ if name == "m_wheelRotation" :
+ return eventsc.wxMouseEvent_m_wheelRotation_get(self)
+ if name == "m_wheelDelta" :
+ return eventsc.wxMouseEvent_m_wheelDelta_get(self)
+ if name == "m_linesPerAction" :
+ return eventsc.wxMouseEvent_m_linesPerAction_get(self)
raise AttributeError,name
def __repr__(self):
return "<C wxMouseEvent instance at %s>" % (self.this,)
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,)
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,)
#-------------- FUNCTION WRAPPERS ------------------
+wxNewEventType = eventsc.wxNewEventType
+
#-------------- VARIABLE WRAPPERS ------------------