]>
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 | |
fb29dcac | 7 | // Copyright: (c) Vaclav Slavik, 2003 |
65571936 | 8 | // Licence: wxWindows licence |
fb29dcac VS |
9 | ///////////////////////////////////////////////////////////////////////// |
10 | ||
65391c8f PC |
11 | #ifndef _WX_UNIX_TASKBAR_H_ |
12 | #define _WX_UNIX_TASKBAR_H_ | |
fb29dcac | 13 | |
b5dbe15d | 14 | class WXDLLIMPEXP_FWD_ADV wxTaskBarIconArea; |
ac258944 VS |
15 | |
16 | class WXDLLIMPEXP_ADV wxTaskBarIcon: public wxTaskBarIconBase | |
fb29dcac VS |
17 | { |
18 | public: | |
19 | wxTaskBarIcon(); | |
20 | virtual ~wxTaskBarIcon(); | |
21 | ||
22 | // Accessors: | |
23 | bool IsOk() const; | |
24 | bool IsIconInstalled() const; | |
25 | ||
26 | // Operations: | |
27 | bool SetIcon(const wxIcon& icon, const wxString& tooltip = wxEmptyString); | |
28 | bool RemoveIcon(); | |
29 | bool PopupMenu(wxMenu *menu); | |
30 | ||
31 | protected: | |
ac258944 | 32 | wxTaskBarIconArea *m_iconWnd; |
fb29dcac | 33 | |
3abc7566 PC |
34 | private: |
35 | void OnDestroy(wxWindowDestroyEvent&); | |
36 | ||
fb29dcac VS |
37 | DECLARE_DYNAMIC_CLASS(wxTaskBarIcon) |
38 | }; | |
39 | ||
65391c8f | 40 | #endif // _WX_UNIX_TASKBAR_H_ |