]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/carbon/taskbarosx.h
non-osx methods bracketed
[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
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////
11
12#ifndef _TASKBAR_H_
13#define _TASKBAR_H_
14
15#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16#pragma interface "taskbarosx.h"
17#endif
18
19class WXDLLEXPORT wxIcon;
20class WXDLLEXPORT wxMenu;
21
22class WXDLLEXPORT wxTaskBarIcon : public wxTaskBarIconBase
23{
24public:
25 //type of taskbar item to create (currently only DOCK is implemented)
26 enum wxTaskBarIconType
27 {
28 DOCK,
29 STATUSITEM,
30 MENUEXTRA
31 };
32
33 wxTaskBarIcon(const wxTaskBarIconType& nType = DOCK);
34 virtual ~wxTaskBarIcon();
35
36 // Operations:
37 bool SetIcon(const wxIcon& icon, const wxString& tooltip = wxEmptyString);
38 bool RemoveIcon();
39 bool PopupMenu(wxMenu *menu);
40
41protected:
42 wxTaskBarIconType m_nType;
43
44 DECLARE_DYNAMIC_CLASS(wxTaskBarIcon)
45};
46
47#endif
48 // _TASKBAR_H_