X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/05b0355af838c4407bf977923d82f07abc098d91..f33230391ae071f0b3c48e4d5a30be229dbf472b:/interface/wx/power.h diff --git a/interface/wx/power.h b/interface/wx/power.h index da34f5c416..ce9b2a9bc8 100644 --- a/interface/wx/power.h +++ b/interface/wx/power.h @@ -61,10 +61,24 @@ enum wxBatteryState class wxPowerEvent : public wxEvent { public: + wxPowerEvent(); + wxPowerEvent(wxEventType evtType); + /** Call this to prevent suspend from taking place in @c wxEVT_POWER_SUSPENDING handler (it is ignored for all the others). */ void Veto(); + + /** + Returns whether Veto has been called. + */ + bool IsVetoed() const; }; +wxEventType wxEVT_POWER_SUSPENDING; +wxEventType wxEVT_POWER_SUSPENDED; +wxEventType wxEVT_POWER_SUSPEND_CANCEL; +wxEventType wxEVT_POWER_RESUME; + +