]> git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/classic/taskbarosx.h
wxMemoryDC constructor now optionally accepts a wxBitmap parameter,
[wxWidgets.git] / include / wx / mac / classic / 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 public:
21 //type of taskbar item to create (currently only DOCK is implemented)
22 enum wxTaskBarIconType
23 {
24 DOCK,
25 STATUSITEM,
26 MENUEXTRA
27 };
28
29 wxTaskBarIcon(const wxTaskBarIconType& nType = DOCK);
30 virtual ~wxTaskBarIcon();
31
32 // Operations:
33 bool SetIcon(const wxIcon& icon, const wxString& tooltip = wxEmptyString);
34 bool RemoveIcon();
35 bool PopupMenu(wxMenu *menu);
36
37 protected:
38 wxTaskBarIconType m_nType;
39
40 DECLARE_DYNAMIC_CLASS(wxTaskBarIcon)
41 };
42
43 #endif
44 // _TASKBAR_H_