taskbarosx.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. // Copyright: (c) Ryan Norton, 2003
  8. // Licence: wxWindows licence
  9. /////////////////////////////////////////////////////////////////////////
  10. #ifndef _TASKBAR_H_
  11. #define _TASKBAR_H_
  12. class WXDLLIMPEXP_FWD_CORE wxIcon;
  13. class WXDLLIMPEXP_FWD_CORE wxMenu;
  14. class WXDLLIMPEXP_ADV wxTaskBarIcon : public wxTaskBarIconBase
  15. {
  16. DECLARE_DYNAMIC_CLASS_NO_COPY(wxTaskBarIcon)
  17. public:
  18. wxTaskBarIcon(wxTaskBarIconType iconType = wxTBI_DEFAULT_TYPE);
  19. virtual ~wxTaskBarIcon();
  20. // returns true if the taskbaricon is in the global menubar
  21. #if wxOSX_USE_COCOA
  22. bool OSXIsStatusItem();
  23. #else
  24. bool OSXIsStatusItem() { return false; }
  25. #endif
  26. bool IsOk() const { return true; }
  27. bool IsIconInstalled() const;
  28. bool SetIcon(const wxIcon& icon, const wxString& tooltip = wxEmptyString);
  29. bool RemoveIcon();
  30. bool PopupMenu(wxMenu *menu);
  31. protected:
  32. wxTaskBarIconType m_type;
  33. class wxTaskBarIconImpl* m_impl;
  34. friend class wxTaskBarIconImpl;
  35. };
  36. #endif
  37. // _TASKBAR_H_