X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e26459c5e72eb33485fe9919b2a4aaafd01e76b..38534f596974042130716a26276e9564b0b72295:/interface/wx/notifmsg.h diff --git a/interface/wx/notifmsg.h b/interface/wx/notifmsg.h index 68a8d1ab73..b2561a3bd0 100644 --- a/interface/wx/notifmsg.h +++ b/interface/wx/notifmsg.h @@ -11,10 +11,9 @@ This class allows to show the user a message non intrusively. - Currently it is implemented natively only for the Maemo platform and uses + Currently it is implemented natively for Windows and GTK and uses (non-modal) dialogs for the display of the notifications under the other - platforms but it will be extended to use the platform-specific notifications - in the other ports in the future. + platforms. Notice that this class is not a window and so doesn't derive from wxWindow. @@ -46,6 +45,14 @@ public: wxNotificationMessage(const wxString& title, const wxString& message = wxEmptyString, wxWindow* parent = NULL, int flags = wxICON_INFORMATION); + /** + Destructor does not hide the notification. + + The notification can continue to be shown even after the C++ object was + destroyed, call Close() explicitly if it needs to be hidden. + */ + virtual ~wxNotificationMessage(); + /** Hides the notification. @@ -95,6 +102,11 @@ public: because the current platform may only support default timeout value and also because the user may be able to close the notification. + @note When using native notifications in wxGTK, the timeout is ignored + for the notifications with @c wxICON_WARNING or @c wxICON_ERROR + flags, they always remain shown unless they're explicitly hidden by + the user, i.e. behave as if Timeout_Auto were given. + @return @false if an error occurred. */ virtual bool Show(int timeout = Timeout_Auto);