]> git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/carbon/taskbarosx.h
Implemented Mac-style button toggling within wxButtonToolBar, and line
[wxWidgets.git] / include / wx / mac / carbon / 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 WXDLLEXPORT wxIcon;
16 class WXDLLEXPORT wxMenu;
17
18 class WXDLLEXPORT wxTaskBarIcon : public wxTaskBarIconBase
19 {
20 DECLARE_DYNAMIC_CLASS_NO_COPY(wxTaskBarIcon)
21 public:
22 // type of taskbar item to create (currently only DOCK is implemented)
23 enum wxTaskBarIconType
24 {
25 DOCK
26 // , CUSTOM_STATUSITEM
27 // , STATUSITEM
28 // , MENUEXTRA
29 , DEFAULT_TYPE = DOCK
30 };
31
32 wxTaskBarIcon(wxTaskBarIconType iconType = DEFAULT_TYPE);
33 virtual ~wxTaskBarIcon();
34
35 bool IsOk() const { return true; }
36
37 bool IsIconInstalled() const;
38 bool SetIcon(const wxIcon& icon, const wxString& tooltip = wxEmptyString);
39 bool RemoveIcon();
40 bool PopupMenu(wxMenu *menu);
41
42 protected:
43 class wxTaskBarIconImpl* m_impl;
44 friend class wxTaskBarIconImpl;
45 };
46 #endif
47 // _TASKBAR_H_