]>
Commit | Line | Data |
---|---|---|
fb29dcac VS |
1 | ///////////////////////////////////////////////////////////////////////// |
2 | // File: wx/unix/taskbarx11.h | |
3 | // Purpose: Defines wxTaskBarIcon class for most common X11 desktops | |
4 | // Author: Vaclav Slavik | |
5 | // Modified by: | |
6 | // Created: 04/04/2003 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) Vaclav Slavik, 2003 | |
65571936 | 9 | // Licence: wxWindows licence |
fb29dcac VS |
10 | ///////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef _TASKBAR_H_ | |
13 | #define _TASKBAR_H_ | |
14 | ||
b5dbe15d VS |
15 | class WXDLLIMPEXP_FWD_CORE wxIcon; |
16 | class WXDLLIMPEXP_FWD_CORE wxFrame; | |
17 | class WXDLLIMPEXP_FWD_CORE wxWindow; | |
fb29dcac | 18 | |
b5dbe15d | 19 | class WXDLLIMPEXP_FWD_ADV wxTaskBarIconArea; |
ac258944 VS |
20 | |
21 | class WXDLLIMPEXP_ADV wxTaskBarIcon: public wxTaskBarIconBase | |
fb29dcac VS |
22 | { |
23 | public: | |
24 | wxTaskBarIcon(); | |
25 | virtual ~wxTaskBarIcon(); | |
26 | ||
27 | // Accessors: | |
28 | bool IsOk() const; | |
29 | bool IsIconInstalled() const; | |
30 | ||
31 | // Operations: | |
32 | bool SetIcon(const wxIcon& icon, const wxString& tooltip = wxEmptyString); | |
33 | bool RemoveIcon(); | |
34 | bool PopupMenu(wxMenu *menu); | |
35 | ||
36 | protected: | |
ac258944 | 37 | wxTaskBarIconArea *m_iconWnd; |
fb29dcac | 38 | |
3abc7566 PC |
39 | private: |
40 | void OnDestroy(wxWindowDestroyEvent&); | |
41 | ||
fb29dcac VS |
42 | DECLARE_DYNAMIC_CLASS(wxTaskBarIcon) |
43 | }; | |
44 | ||
45 | #endif | |
46 | // _TASKBAR_H_ |