1 /////////////////////////////////////////////////////////////////////////
2 // File: wx/mac/taskbarosx.h
3 // Purpose: Defines wxTaskBarIcon class for OSX
7 // Copyright: (c) Ryan Norton, 2003
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////
14 class WXDLLIMPEXP_FWD_CORE wxIcon
;
15 class WXDLLIMPEXP_FWD_CORE wxMenu
;
17 class WXDLLIMPEXP_ADV wxTaskBarIcon
: public wxTaskBarIconBase
19 DECLARE_DYNAMIC_CLASS_NO_COPY(wxTaskBarIcon
)
21 wxTaskBarIcon(wxTaskBarIconType iconType
= wxTBI_DEFAULT_TYPE
);
22 virtual ~wxTaskBarIcon();
24 // returns true if the taskbaricon is in the global menubar
26 bool OSXIsStatusItem();
28 bool OSXIsStatusItem() { return false; }
30 bool IsOk() const { return true; }
32 bool IsIconInstalled() const;
33 bool SetIcon(const wxIcon
& icon
, const wxString
& tooltip
= wxEmptyString
);
35 bool PopupMenu(wxMenu
*menu
);
38 wxTaskBarIconType m_type
;
39 class wxTaskBarIconImpl
* m_impl
;
40 friend class wxTaskBarIconImpl
;