]> git.saurik.com Git - wxWidgets.git/blob - include/wx/osx/taskbarosx.h
Make wxTaskBarIcon's ctor have the same API on all platforms even though setting...
[wxWidgets.git] / include / wx / osx / taskbarosx.h
1 /////////////////////////////////////////////////////////////////////////
2 // File: wx/mac/taskbarosx.h
3 // Purpose: Defines wxTaskBarIcon class for OSX
4 // Author: Ryan Norton
5 // Modified by:
6 // Created: 04/04/2003
7 // RCS-ID: $Id$
8 // Copyright: (c) Ryan Norton, 2003
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////
11
12 #ifndef _TASKBAR_H_
13 #define _TASKBAR_H_
14
15 class WXDLLIMPEXP_FWD_CORE wxIcon;
16 class WXDLLIMPEXP_FWD_CORE wxMenu;
17
18 class WXDLLIMPEXP_ADV wxTaskBarIcon : public wxTaskBarIconBase
19 {
20 DECLARE_DYNAMIC_CLASS_NO_COPY(wxTaskBarIcon)
21 public:
22 wxTaskBarIcon(wxTaskBarIconType iconType = wxTBI_DEFAULT_TYPE);
23 virtual ~wxTaskBarIcon();
24
25 // returns true if the taskbaricon is in the global menubar
26 #if wxOSX_USE_COCOA
27 bool OSXIsStatusItem();
28 #else
29 bool OSXIsStatusItem() { return false; }
30 #endif
31 bool IsOk() const { return true; }
32
33 bool IsIconInstalled() const;
34 bool SetIcon(const wxIcon& icon, const wxString& tooltip = wxEmptyString);
35 bool RemoveIcon();
36 bool PopupMenu(wxMenu *menu);
37
38 protected:
39 wxTaskBarIconType m_type;
40 class wxTaskBarIconImpl* m_impl;
41 friend class wxTaskBarIconImpl;
42 };
43 #endif
44 // _TASKBAR_H_