%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;
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 )
// all derived classes must implement it because otherwise wxPostEvent()
// for them wouldn't work (it needs to do a copy of the event)
virtual wxEvent *Clone() /* =0*/;
+
+ %property(EventObject, GetEventObject, SetEventObject, doc="See `GetEventObject` and `SetEventObject`");
+ %property(EventType, GetEventType, SetEventType, doc="See `GetEventType` and `SetEventType`");
+ %property(Id, GetId, SetId, doc="See `GetId` and `SetId`");
+ %property(Skipped, GetSkipped, doc="See `GetSkipped`");
+ %property(Timestamp, GetTimestamp, SetTimestamp, doc="See `GetTimestamp` and `SetTimestamp`");
+
};
virtual wxEvent *Clone() const;
+ %property(ClientData, GetClientData, SetClientData, doc="See `GetClientData` and `SetClientData`");
+ %property(ClientObject, GetClientObject, SetClientObject, doc="See `GetClientObject` and `SetClientObject`");
+ %property(ExtraLong, GetExtraLong, SetExtraLong, doc="See `GetExtraLong` and `SetExtraLong`");
+ %property(Int, GetInt, SetInt, doc="See `GetInt` and `SetInt`");
+ %property(Selection, GetSelection, doc="See `GetSelection`");
+ %property(String, GetString, SetString, doc="See `GetString` and `SetString`");
};
//---------------------------------------------------------------------------
int m_wheelRotation;
int m_wheelDelta;
int m_linesPerAction;
+
+ %property(Button, GetButton, doc="See `GetButton`");
+ %property(LinesPerAction, GetLinesPerAction, doc="See `GetLinesPerAction`");
+ %property(LogicalPosition, GetLogicalPosition, doc="See `GetLogicalPosition`");
+ %property(Position, GetPosition, doc="See `GetPosition`");
+ %property(WheelDelta, GetWheelDelta, doc="See `GetWheelDelta`");
+ %property(WheelRotation, GetWheelRotation, doc="See `GetWheelRotation`");
+ %property(X, GetX, doc="See `GetX`");
+ %property(Y, GetY, doc="See `GetY`");
};
//---------------------------------------------------------------------------
the user entered a character that can be represented in current
locale's default charset. You can obtain the corresponding Unicode
character using `GetUnicodeKey`.", "");
- %pythoncode { KeyCode = GetKeyCode }
+
+// %pythoncode { KeyCode = GetKeyCode } this will be hidden by the property
%extend {
}
%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,
wxUint32 m_rawCode;
wxUint32 m_rawFlags;
+
+ %property(KeyCode, GetKeyCode, doc="See `GetKeyCode`");
+ %property(Modifiers, GetModifiers, doc="See `GetModifiers`");
+ %property(Position, GetPosition, doc="See `GetPosition`");
+ %property(RawKeyCode, GetRawKeyCode, doc="See `GetRawKeyCode`");
+ %property(RawKeyFlags, GetRawKeyFlags, doc="See `GetRawKeyFlags`");
+ %property(UnicodeKey, GetUnicodeKey, SetUnicodeKey, doc="See `GetUnicodeKey` and `SetUnicodeKey`");
+ %property(X, GetX, doc="See `GetX`");
+ %property(Y, GetY, doc="See `GetY`");
};
//---------------------------------------------------------------------------
m_pos = property(GetPosition, SetPosition)
m_rect = property(GetRect, SetRect)
}
+
+ %property(Position, GetPosition, SetPosition, doc="See `GetPosition` and `SetPosition`");
+ %property(Rect, GetRect, SetRect, doc="See `GetRect` and `SetRect`");
+
};
//---------------------------------------------------------------------------
"Returns the device context the event handler should draw upon. If
``None`` is returned then create a temporary `wx.ClientDC` and use
that instead.", "");
+
+ %property(DC, GetDC, doc="See `GetDC`");
};
Warning: the window returned may be None!", "");
void SetWindow(wxWindow *win);
+
+ %property(Window, GetWindow, SetWindow, doc="See `GetWindow` and `SetWindow`");
};
//---------------------------------------------------------------------------
wxWindow *, GetWindow() const,
"The window which has just received the focus.", "");
+ %property(Window, GetWindow, doc="See `GetWindow`");
};
//---------------------------------------------------------------------------
"Returns true if the application or window is being activated, false
otherwise.", "");
+ %property(Active, GetActive, doc="See `GetActive`");
};
"Returns the menu which is being opened or closed. This method should
only be used with the OPEN and CLOSE events.", "");
+ %property(Menu, GetMenu, doc="See `GetMenu`");
+ %property(MenuId, GetMenuId, doc="See `GetMenuId`");
};
//---------------------------------------------------------------------------
code wishes to force the application to exit, and so this function
must be called to check this.", "");
+ %property(LoggingOff, GetLoggingOff, SetLoggingOff, doc="See `GetLoggingOff` and `SetLoggingOff`");
};
return list;
}
}
+
+ %property(Files, GetFiles, doc="See `GetFiles`");
+ %property(NumberOfFiles, GetNumberOfFiles, doc="See `GetNumberOfFiles`");
+ %property(Position, GetPosition, doc="See `GetPosition`");
};
"Returns the window that gained the capture, or ``None`` if it was a
non-wxWidgets window.", "");
+ %property(CapturedWindow, GetCapturedWindow, doc="See `GetCapturedWindow`");
+};
+
+//---------------------------------------------------------------------------
+%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);
};
//---------------------------------------------------------------------------
WinChange,
FromTab
};
+
+ %property(CurrentFocus, GetCurrentFocus, SetCurrentFocus, doc="See `GetCurrentFocus` and `SetCurrentFocus`");
+ %property(Direction, GetDirection, SetDirection, doc="See `GetDirection` and `SetDirection`");
+
};
//---------------------------------------------------------------------------
void , SetPosition(const wxPoint& pos),
"Sets the position at which the menu should be shown.", "");
+ %property(Position, GetPosition, SetPosition, doc="See `GetPosition` and `SetPosition`");
};
//---------------------------------------------------------------------------
"Sets the date carried by the event, normally only used by the library
internally.", "");
+ %property(Date, GetDate, SetDate, doc="See `GetDate` and `SetDate`");
};