seen by other modules.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39602
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
//---------------------------------------------------------------------------
+#ifndef wxHAS_POWER_EVENTS
+class wxPowerEvent : public wxEvent
+{
+public:
+ wxPowerEvent(wxEventType evtType) : wxEvent(wxID_NONE, evtType) {}
+ void Veto() {}
+ bool IsVetoed() const { return false; }
+ virtual wxEvent *Clone() const { return new wxPowerEvent(*this); }
+};
+#endif
+
+//---------------------------------------------------------------------------
typedef unsigned char byte;
typedef wxPoint2DDouble wxPoint2D;
//---------------------------------------------------------------------------
%newgroup
+
%{
#ifndef wxHAS_POWER_EVENTS
// Dummy class and other definitions for platforms that don't have them
-class wxPowerEvent : public wxEvent
-{
-public:
- wxPowerEvent(wxEventType evtType) : wxEvent(wxID_NONE, evtType) {}
- void Veto() {}
- bool IsVetoed() const { return false; }
-
- virtual wxEvent *Clone() const { return new wxPowerEvent(*this); }
-};
-
+// See wxPython_int.h for wxPowerEvent
+
enum {
wxEVT_POWER_SUSPENDING,
wxEVT_POWER_SUSPENDED,