X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/05b0355af838c4407bf977923d82f07abc098d91..3fc2ee048d6b937017b56104061ad1fff08de09a:/interface/wx/power.h?ds=sidebyside 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; + +