X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d0e2ede057148772415ee526344f1a1597db3ae7..feffc1b546b896b64b24def29d03e1d404f92a70:/wxPython/src/_event.i diff --git a/wxPython/src/_event.i b/wxPython/src/_event.i index f2a5aab355..614030cf29 100644 --- a/wxPython/src/_event.i +++ b/wxPython/src/_event.i @@ -149,6 +149,7 @@ wxEventType wxNewEventType(); %constant wxEventType wxEVT_ICONIZE; %constant wxEventType wxEVT_MAXIMIZE; %constant wxEventType wxEVT_MOUSE_CAPTURE_CHANGED; +%constant wxEventType wxEVT_MOUSE_CAPTURE_LOST; %constant wxEventType wxEVT_PAINT; %constant wxEventType wxEVT_ERASE_BACKGROUND; %constant wxEventType wxEVT_NC_PAINT; @@ -235,6 +236,7 @@ EVT_WINDOW_CREATE = wx.PyEventBinder( wxEVT_CREATE ) EVT_WINDOW_DESTROY = wx.PyEventBinder( wxEVT_DESTROY ) EVT_SET_CURSOR = wx.PyEventBinder( wxEVT_SET_CURSOR ) EVT_MOUSE_CAPTURE_CHANGED = wx.PyEventBinder( wxEVT_MOUSE_CAPTURE_CHANGED ) +EVT_MOUSE_CAPTURE_LOST = wx.PyEventBinder( wxEVT_MOUSE_CAPTURE_LOST ) EVT_LEFT_DOWN = wx.PyEventBinder( wxEVT_LEFT_DOWN ) EVT_LEFT_UP = wx.PyEventBinder( wxEVT_LEFT_UP ) @@ -1330,6 +1332,17 @@ function is only meaningfule in a Unicode build of wxPython.", ""); } %pythoncode { GetUniChar = GetUnicodeKey } + %extend { + DocStr( + SetUnicodeKey, + "Set the Unicode value of the key event, but only if this is a Unicode +build of wxPython.", ""); + void SetUnicodeKey(int uniChar) { + %#if wxUSE_UNICODE + self->m_uniChar = uniChar; + %#endif + } + } DocDeclStr( wxUint32 , GetRawKeyCode() const, @@ -2138,6 +2151,30 @@ non-wxWidgets window.", ""); //--------------------------------------------------------------------------- %newgroup; +DocStr(wxMouseCaptureLostEvent, +"A mouse capture lost event is sent to a window that obtained mouse +capture, which was subsequently loss due to \"external\" event, for +example when a dialog box is shown or if another application captures +the mouse. + +If this happens, this event is sent to all windows that are on the +capture stack (i.e. a window that called `wx.Window.CaptureMouse`, but +didn't call `wx.Window.ReleaseMouse` yet). The event is *not* sent +if the capture changes because of a call to CaptureMouse or +ReleaseMouse. + +This event is currently emitted under Windows only. +", ""); + +class wxMouseCaptureLostEvent : public wxEvent +{ +public: + wxMouseCaptureLostEvent(wxWindowID winid = 0); +}; + +//--------------------------------------------------------------------------- +%newgroup; + DocStr(wxDisplayChangedEvent, "An EVT_DISPLAY_CHANGED event is sent to all windows when the display resolution has changed.