]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/carbon/taskbarosx.h
Adding support for item font/style/color customization, unfortunately, it does not...
[wxWidgets.git] / include / wx / mac / carbon / taskbarosx.h
CommitLineData
8cf73271
SC
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
65571936 9// Licence: wxWindows licence
8cf73271
SC
10/////////////////////////////////////////////////////////////////////////
11
12#ifndef _TASKBAR_H_
13#define _TASKBAR_H_
14
8cf73271
SC
15class WXDLLEXPORT wxIcon;
16class WXDLLEXPORT wxMenu;
17
18class WXDLLEXPORT wxTaskBarIcon : public wxTaskBarIconBase
19{
d806d30a 20 DECLARE_DYNAMIC_CLASS_NO_COPY(wxTaskBarIcon)
8cf73271 21public:
d806d30a 22 // type of taskbar item to create (currently only DOCK is implemented)
f2641bc2
RD
23 enum wxTaskBarIconType
24 {
d806d30a
DS
25 DOCK
26// , CUSTOM_STATUSITEM
27// , STATUSITEM
28// , MENUEXTRA
29 , DEFAULT_TYPE = DOCK
f2641bc2 30 };
d806d30a
DS
31
32 wxTaskBarIcon(wxTaskBarIconType iconType = DEFAULT_TYPE);
8cf73271
SC
33 virtual ~wxTaskBarIcon();
34
d806d30a
DS
35 bool IsOk() const { return true; }
36
37 bool IsIconInstalled() const;
8cf73271
SC
38 bool SetIcon(const wxIcon& icon, const wxString& tooltip = wxEmptyString);
39 bool RemoveIcon();
40 bool PopupMenu(wxMenu *menu);
41
42protected:
d806d30a
DS
43 class wxTaskBarIconImpl* m_impl;
44 friend class wxTaskBarIconImpl;
8cf73271 45};
8cf73271
SC
46#endif
47 // _TASKBAR_H_