wxEventType wxNewEventType();
+%constant wxEventType wxEVT_ANY;
%constant wxEventType wxEVT_NULL;
%constant wxEventType wxEVT_FIRST;
class wxMouseEvent : public wxEvent
{
public:
+ // turn off this typemap
+ %typemap(out) wxMouseEvent*;
+
DocCtorStr(
wxMouseEvent(wxEventType mouseType = wxEVT_NULL),
"Constructs a wx.MouseEvent. Valid event types are:
* wxEVT_MOTION
* wxEVT_MOUSEWHEEL ", "");
+ // Turn it back on again
+ %typemap(out) wxMouseEvent* { $result = wxPyMake_wxObject($1, $owner); }
DocDeclStr(
bool , IsButton() const,
taken, and one such action (for example, scrolling one increment)
should occur for each delta.", "");
+ DocDeclStr(
+ int , GetWheelAxis() const,
+ "Gets the axis the wheel operation concerns, 0 being the y axis as on
+most mouse wheels, 1 is the x axis for things like MightyMouse scrolls
+or horizontal trackpad scrolling.", "");
+
DocDeclStr(
int , GetLinesPerAction() const,
}
+//---------------------------------------------------------------------------
+
+DocStr(wxEventBlocker,
+"Helper class to temporarily disable event handling for a window.", "");
+
+class wxEventBlocker : public wxEvtHandler
+{
+public:
+ wxEventBlocker(wxWindow *win, wxEventType type = wxEVT_ANY);
+ virtual ~wxEventBlocker();
+
+ void Block(wxEventType type);
+};
+
+
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------