1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/notifmsg.h
3 // Purpose: wxNotificationMessage for wxGTK.
4 // Author: Vadim Zeitlin
7 // Copyright: (c) 2012 Vadim Zeitlin <vadim@wxwidgets.org>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_GTK_NOTIFMSG_H_
12 #define _WX_GTK_NOTIFMSG_H_
14 typedef struct _NotifyNotification NotifyNotification
;
16 // ----------------------------------------------------------------------------
17 // wxNotificationMessage
18 // ----------------------------------------------------------------------------
20 class WXDLLIMPEXP_ADV wxNotificationMessage
: public wxNotificationMessageBase
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
)
33 virtual ~wxNotificationMessage();
36 virtual bool Show(int timeout
= Timeout_Auto
);
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
);
44 void Init() { m_notification
= NULL
; }
46 NotifyNotification
* m_notification
;
49 wxDECLARE_NO_COPY_CLASS(wxNotificationMessage
);
52 #endif // _WX_GTK_NOTIFMSG_H_