1 /////////////////////////////////////////////////////////////////////////
2 // File: wx/mac/taskbarosx.h
3 // Purpose: Defines wxTaskBarIcon class for OSX
8 // Copyright: (c) Ryan Norton, 2003
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////
15 class WXDLLIMPEXP_FWD_CORE wxIcon
;
16 class WXDLLIMPEXP_FWD_CORE wxMenu
;
18 class WXDLLIMPEXP_ADV wxTaskBarIcon
: public wxTaskBarIconBase
20 DECLARE_DYNAMIC_CLASS_NO_COPY(wxTaskBarIcon
)
22 wxTaskBarIcon(wxTaskBarIconType iconType
= wxTBI_DEFAULT_TYPE
);
23 virtual ~wxTaskBarIcon();
25 // returns true if the taskbaricon is in the global menubar
27 bool OSXIsStatusItem();
29 bool OSXIsStatusItem() { return false; }
31 bool IsOk() const { return true; }
33 bool IsIconInstalled() const;
34 bool SetIcon(const wxIcon
& icon
, const wxString
& tooltip
= wxEmptyString
);
36 bool PopupMenu(wxMenu
*menu
);
39 wxTaskBarIconType m_type
;
40 class wxTaskBarIconImpl
* m_impl
;
41 friend class wxTaskBarIconImpl
;