2003-04-05 22:27:47 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////
|
|
|
|
// File: wx/unix/taskbarx11.h
|
|
|
|
// Purpose: Defines wxTaskBarIcon class for most common X11 desktops
|
|
|
|
// Author: Vaclav Slavik
|
|
|
|
// Modified by:
|
|
|
|
// Created: 04/04/2003
|
|
|
|
// Copyright: (c) Vaclav Slavik, 2003
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
2003-04-05 22:27:47 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2009-12-05 19:57:58 +00:00
|
|
|
#ifndef _WX_UNIX_TASKBAR_H_
|
|
|
|
#define _WX_UNIX_TASKBAR_H_
|
2003-04-05 22:27:47 +00:00
|
|
|
|
2007-07-09 10:09:52 +00:00
|
|
|
class WXDLLIMPEXP_FWD_ADV wxTaskBarIconArea;
|
2004-05-29 17:01:57 +00:00
|
|
|
|
|
|
|
class WXDLLIMPEXP_ADV wxTaskBarIcon: public wxTaskBarIconBase
|
2003-04-05 22:27:47 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxTaskBarIcon();
|
|
|
|
virtual ~wxTaskBarIcon();
|
|
|
|
|
|
|
|
// Accessors:
|
|
|
|
bool IsOk() const;
|
|
|
|
bool IsIconInstalled() const;
|
|
|
|
|
|
|
|
// Operations:
|
2014-03-30 00:02:23 +00:00
|
|
|
bool SetIcon(const wxIcon& icon, const wxString& tooltip = wxEmptyString) wxOVERRIDE;
|
|
|
|
bool RemoveIcon() wxOVERRIDE;
|
|
|
|
bool PopupMenu(wxMenu *menu) wxOVERRIDE;
|
2003-04-05 22:27:47 +00:00
|
|
|
|
|
|
|
protected:
|
2004-05-29 17:01:57 +00:00
|
|
|
wxTaskBarIconArea *m_iconWnd;
|
2003-04-05 22:27:47 +00:00
|
|
|
|
2008-05-11 22:45:36 +00:00
|
|
|
private:
|
|
|
|
void OnDestroy(wxWindowDestroyEvent&);
|
|
|
|
|
2015-04-23 11:49:01 +00:00
|
|
|
wxDECLARE_DYNAMIC_CLASS(wxTaskBarIcon);
|
2003-04-05 22:27:47 +00:00
|
|
|
};
|
|
|
|
|
2009-12-05 19:57:58 +00:00
|
|
|
#endif // _WX_UNIX_TASKBAR_H_
|