1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/notifmsg.h
3 // Purpose: wxNotificationMessage for wxGTK.
4 // Author: Vadim Zeitlin
6 // Copyright: (c) 2012 Vadim Zeitlin <vadim@wxwidgets.org>
7 // Licence: wxWindows licence
8 ///////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_GTK_NOTIFMSG_H_
11 #define _WX_GTK_NOTIFMSG_H_
13 typedef struct _NotifyNotification NotifyNotification
;
15 // ----------------------------------------------------------------------------
16 // wxNotificationMessage
17 // ----------------------------------------------------------------------------
19 class WXDLLIMPEXP_ADV wxNotificationMessage
: public wxNotificationMessageBase
22 wxNotificationMessage() { Init(); }
23 wxNotificationMessage(const wxString
& title
,
24 const wxString
& message
= wxString(),
25 wxWindow
*parent
= NULL
,
26 int flags
= wxICON_INFORMATION
)
27 : wxNotificationMessageBase(title
, message
, parent
, flags
)
32 virtual ~wxNotificationMessage();
35 virtual bool Show(int timeout
= Timeout_Auto
);
38 // Set the name of the icon to use, overriding the default icon determined
39 // by the flags. Call with empty string to reset custom icon.
40 bool GTKSetIconName(const wxString
& name
);
43 void Init() { m_notification
= NULL
; }
45 NotifyNotification
* m_notification
;
48 wxDECLARE_NO_COPY_CLASS(wxNotificationMessage
);
51 #endif // _WX_GTK_NOTIFMSG_H_