1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: SWIG interface defs for wxTaskBarIcon
7 // Created: 2-June-1998
9 // Copyright: (c) 2003 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
16 //---------------------------------------------------------------------------
21 //---------------------------------------------------------------------------
27 // implement dummy classes and such for wxMac
29 class wxTaskBarIcon : public wxEvtHandler
32 wxTaskBarIcon() { wxPyRaiseNotImplemented(); }
36 class wxTaskBarIconEvent : public wxEvent
39 wxTaskBarIconEvent(wxEventType, wxTaskBarIcon *)
40 { wxPyRaiseNotImplemented(); }
41 virtual wxEvent* Clone() const { return NULL; }
45 wxEVT_TASKBAR_MOVE = 0,
46 wxEVT_TASKBAR_LEFT_DOWN = 0,
47 wxEVT_TASKBAR_LEFT_UP = 0,
48 wxEVT_TASKBAR_RIGHT_DOWN = 0,
49 wxEVT_TASKBAR_RIGHT_UP = 0,
50 wxEVT_TASKBAR_LEFT_DCLICK = 0,
51 wxEVT_TASKBAR_RIGHT_DCLICK = 0,
59 class wxTaskBarIcon : public wxEvtHandler
75 %pythoncode { def __nonzero__(self): return self.IsOk() }
77 bool IsIconInstalled() const;
79 bool SetIcon(const wxIcon& icon, const wxString& tooltip = wxPyEmptyString);
80 bool RemoveIcon(void);
81 bool PopupMenu(wxMenu *menu);
87 class wxTaskBarIconEvent : public wxEvent
90 wxTaskBarIconEvent(wxEventType evtType, wxTaskBarIcon *tbIcon);
95 %constant wxEventType wxEVT_TASKBAR_MOVE;
96 %constant wxEventType wxEVT_TASKBAR_LEFT_DOWN;
97 %constant wxEventType wxEVT_TASKBAR_LEFT_UP;
98 %constant wxEventType wxEVT_TASKBAR_RIGHT_DOWN;
99 %constant wxEventType wxEVT_TASKBAR_RIGHT_UP;
100 %constant wxEventType wxEVT_TASKBAR_LEFT_DCLICK;
101 %constant wxEventType wxEVT_TASKBAR_RIGHT_DCLICK;
105 EVT_TASKBAR_MOVE = wx.PyEventBinder ( wxEVT_TASKBAR_MOVE )
106 EVT_TASKBAR_LEFT_DOWN = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN )
107 EVT_TASKBAR_LEFT_UP = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP )
108 EVT_TASKBAR_RIGHT_DOWN = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN )
109 EVT_TASKBAR_RIGHT_UP = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP )
110 EVT_TASKBAR_LEFT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK )
111 EVT_TASKBAR_RIGHT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK )
114 //---------------------------------------------------------------------------