]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/notifmsg.h
No real changes, just make wxWindow::CanScroll() virtual.
[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
afbf46a3
VZ
6// Copyright: (c) 2012 Vadim Zeitlin <vadim@wxwidgets.org>
7// Licence: wxWindows licence
8///////////////////////////////////////////////////////////////////////////////
9
10#ifndef _WX_GTK_NOTIFMSG_H_
11#define _WX_GTK_NOTIFMSG_H_
12
13typedef struct _NotifyNotification NotifyNotification;
14
15// ----------------------------------------------------------------------------
16// wxNotificationMessage
17// ----------------------------------------------------------------------------
18
19class WXDLLIMPEXP_ADV wxNotificationMessage : public wxNotificationMessageBase
20{
21public:
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)
28 {
29 Init();
30 }
31
32 virtual ~wxNotificationMessage();
33
34
35 virtual bool Show(int timeout = Timeout_Auto);
36 virtual bool Close();
37
c589dc03
VZ
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);
41
afbf46a3
VZ
42private:
43 void Init() { m_notification = NULL; }
44
45 NotifyNotification* m_notification;
c589dc03 46 wxString m_iconName;
afbf46a3
VZ
47
48 wxDECLARE_NO_COPY_CLASS(wxNotificationMessage);
49};
50
51#endif // _WX_GTK_NOTIFMSG_H_