]>
Commit | Line | Data |
---|---|---|
52479aef | 1 | ///////////////////////////////////////////////////////////////////////// |
1b88201f | 2 | // File: wx/mac/classic/taskbarosx.h |
52479aef SC |
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 | |
65571936 | 9 | // Licence: wxWindows licence |
52479aef SC |
10 | ///////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef _TASKBAR_H_ | |
13 | #define _TASKBAR_H_ | |
14 | ||
52479aef SC |
15 | class WXDLLEXPORT wxIcon; |
16 | class WXDLLEXPORT wxMenu; | |
17 | ||
18 | class WXDLLEXPORT wxTaskBarIcon : public wxTaskBarIconBase | |
19 | { | |
20 | public: | |
1b88201f WS |
21 | //type of taskbar item to create (currently only DOCK is implemented) |
22 | enum wxTaskBarIconType | |
23 | { | |
24 | DOCK, | |
25 | STATUSITEM, | |
26 | MENUEXTRA | |
27 | }; | |
28 | ||
52479aef SC |
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; | |
1b88201f | 39 | |
52479aef SC |
40 | DECLARE_DYNAMIC_CLASS(wxTaskBarIcon) |
41 | }; | |
42 | ||
43 | #endif | |
44 | // _TASKBAR_H_ |