]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/notifmsg.h
Really fix the problem with caret in wxGrid text editor under MSW.
[wxWidgets.git] / include / wx / gtk / notifmsg.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/notifmsg.h
3 // Purpose: wxNotificationMessage for wxGTK.
4 // Author: Vadim Zeitlin
5 // Created: 2012-07-25
6 // RCS-ID: $Id$
7 // Copyright: (c) 2012 Vadim Zeitlin <vadim@wxwidgets.org>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_GTK_NOTIFMSG_H_
12 #define _WX_GTK_NOTIFMSG_H_
13
14 typedef struct _NotifyNotification NotifyNotification;
15
16 // ----------------------------------------------------------------------------
17 // wxNotificationMessage
18 // ----------------------------------------------------------------------------
19
20 class WXDLLIMPEXP_ADV wxNotificationMessage : public wxNotificationMessageBase
21 {
22 public:
23 wxNotificationMessage() { Init(); }
24 wxNotificationMessage(const wxString& title,
25 const wxString& message = wxString(),
26 wxWindow *parent = NULL,
27 int flags = wxICON_INFORMATION)
28 : wxNotificationMessageBase(title, message, parent, flags)
29 {
30 Init();
31 }
32
33 virtual ~wxNotificationMessage();
34
35
36 virtual bool Show(int timeout = Timeout_Auto);
37 virtual bool Close();
38
39 // Set the name of the icon to use, overriding the default icon determined
40 // by the flags. Call with empty string to reset custom icon.
41 bool GTKSetIconName(const wxString& name);
42
43 private:
44 void Init() { m_notification = NULL; }
45
46 NotifyNotification* m_notification;
47 wxString m_iconName;
48
49 wxDECLARE_NO_COPY_CLASS(wxNotificationMessage);
50 };
51
52 #endif // _WX_GTK_NOTIFMSG_H_