]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/notifmsg.h
Applied rowspan patch #15276 (dghart)
[wxWidgets.git] / include / wx / gtk / notifmsg.h
CommitLineData
afbf46a3
VZ
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
14typedef struct _NotifyNotification NotifyNotification;
15
16// ----------------------------------------------------------------------------
17// wxNotificationMessage
18// ----------------------------------------------------------------------------
19
20class WXDLLIMPEXP_ADV wxNotificationMessage : public wxNotificationMessageBase
21{
22public:
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
c589dc03
VZ
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
afbf46a3
VZ
43private:
44 void Init() { m_notification = NULL; }
45
46 NotifyNotification* m_notification;
c589dc03 47 wxString m_iconName;
afbf46a3
VZ
48
49 wxDECLARE_NO_COPY_CLASS(wxNotificationMessage);
50};
51
52#endif // _WX_GTK_NOTIFMSG_H_