diff options
author | Dominic Letz <dominic@diode.io> | 2021-01-13 19:01:42 +0100 |
---|---|---|
committer | Dominic Letz <dominic@diode.io> | 2021-01-22 12:23:27 +0100 |
commit | 4e66a2fe996c91c93612a6d2ffd1b0a3564def04 (patch) | |
tree | 2b9bc6373519d3ac3804dfdc1fa386119d6b498a /lib/wx/c_src/gen/wxe_derived_dest.h | |
parent | 1a99d780d5e3d8de060cd5aba38abac35b4cf669 (diff) | |
download | erlang-4e66a2fe996c91c93612a6d2ffd1b0a3564def04.tar.gz |
wxNotificationMessage support
This enables native os notification events on the platform. For implementing messaging and background apps this is especially important. E.g. imagine an app wanting to announce 'Update available' or 'New Mail Received' or 'Download Completed'.
For MacOS even which discourages applications raising themself to focus, using the native OS notifications is the only correct way to get the users attention to an app.
Note that the underlying wxWidgets implementation in 3.0.x is very basic and has been completely reworked in 3.1.x for best experience use wxWidgets 3.1
Diffstat (limited to 'lib/wx/c_src/gen/wxe_derived_dest.h')
-rw-r--r-- | lib/wx/c_src/gen/wxe_derived_dest.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/wx/c_src/gen/wxe_derived_dest.h b/lib/wx/c_src/gen/wxe_derived_dest.h index 861d8ca4b7..33b988eb18 100644 --- a/lib/wx/c_src/gen/wxe_derived_dest.h +++ b/lib/wx/c_src/gen/wxe_derived_dest.h @@ -1,7 +1,7 @@ /* * %CopyrightBegin% * - * Copyright Ericsson AB 2008-2020. All Rights Reserved. + * Copyright Ericsson AB 2008-2021. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -861,3 +861,9 @@ class EwxGCDC : public wxGCDC { }; #endif // wxUSE_GRAPHICS_CONTEXT +class EwxNotificationMessage : public wxNotificationMessage { + public: ~EwxNotificationMessage() {((WxeApp *)wxTheApp)->clearPtr(this);}; + EwxNotificationMessage(const wxString& title,const wxString& message,wxWindow * parent,int flags) : wxNotificationMessage(title,message,parent,flags) {}; + EwxNotificationMessage() : wxNotificationMessage() {}; +}; + |