{
private:
wxEvent& operator=(const wxEvent&);
-
+
protected:
wxEvent(const wxEvent&); // for implementing Clone()
{
private:
wxCommandEvent& operator=(const wxCommandEvent& event);
-
+
public:
wxCommandEvent(wxEventType commandType = wxEVT_NULL, int id = 0);
{
public:
wxMouseEvent(wxEventType mouseType = wxEVT_NULL);
+ wxMouseEvent(const wxMouseEvent& event) { Assign(event); }
+
+ wxMouseEvent& operator=(const wxMouseEvent& event)
+ { Assign(event); return *this; }
// Was it a button event? (*doesn't* mean: is any button *down*?)
bool IsButton() const { return Button(-1); }
int m_wheelDelta;
int m_linesPerAction;
+protected:
+ void Assign(const wxMouseEvent& evt);
+
private:
DECLARE_DYNAMIC_CLASS(wxMouseEvent)
};
{
private:
wxEraseEvent& operator=(const wxEraseEvent& event);
-
+
public:
wxEraseEvent(int Id = 0, wxDC *dc = (wxDC *) NULL)
: wxEvent(Id, wxEVT_ERASE_BACKGROUND)
{
private:
wxFocusEvent& operator=(const wxFocusEvent& event);
-
+
public:
wxFocusEvent(wxEventType type = wxEVT_NULL, int id = 0)
: wxEvent(id, type)
{
private:
wxDropFilesEvent& operator=(const wxDropFilesEvent& event);
-
+
public:
int m_noFiles;
wxPoint m_pos;
wxUpdateUIEvent(wxWindowID commandId = 0)
: wxCommandEvent(wxEVT_UPDATE_UI, commandId)
, m_checked(FALSE)
- , m_enabled(FALSE)
+ , m_enabled(FALSE)
, m_setEnabled(FALSE)
, m_setText(FALSE)
, m_setChecked(FALSE)
{
private:
wxMouseCaptureChangedEvent operator=(const wxMouseCaptureChangedEvent& event);
-
+
public:
wxMouseCaptureChangedEvent(wxWindowID id = 0, wxWindow* gainedCapture = NULL)
: wxEvent(id, wxEVT_MOUSE_CAPTURE_CHANGED)
{
private:
wxPaletteChangedEvent& operator=(const wxPaletteChangedEvent& event);
-
+
public:
wxPaletteChangedEvent(wxWindowID id = 0)
: wxEvent(id, wxEVT_PALETTE_CHANGED)
{
private:
wxNavigationKeyEvent& operator=(const wxNavigationKeyEvent& event);
-
+
public:
wxNavigationKeyEvent()
: wxEvent(0, wxEVT_NAVIGATION_KEY)
{
private:
wxEventTableEntryBase& operator=(const wxEventTableEntryBase& event);
-
+
public:
wxEventTableEntryBase(int id, int idLast,
wxObjectEventFunction fn, wxObject *data)
, m_lastId(event.m_lastId)
, m_fn(event.m_fn)
, m_callbackUserData(event.m_callbackUserData)
- { }
+ { }
// the range of ids for this entry: if m_lastId == -1, the range consists
// only of m_id, otherwise it is m_id..m_lastId inclusive
m_linesPerAction = 0;
}
+void wxMouseEvent::Assign(const wxMouseEvent& event)
+{
+ m_x = event.m_x;
+ m_y = event.m_y;
+
+ m_leftDown = event.m_leftDown;
+ m_middleDown = event.m_middleDown;
+ m_rightDown = event.m_rightDown;
+
+ m_controlDown = event.m_controlDown;
+ m_shiftDown = event.m_shiftDown;
+ m_altDown = event.m_altDown;
+ m_metaDown = event.m_metaDown;
+
+ m_wheelRotation = event.m_wheelRotation;
+ m_wheelDelta = event.m_wheelDelta;
+ m_linesPerAction = event.m_linesPerAction;
+}
+
// True if was a button dclick event (1 = left, 2 = middle, 3 = right)
// or any button dclick event (but = -1)
bool wxMouseEvent::ButtonDClick(int but) const
static TEXTMETRIC wxGetTextMetrics(const wxWindowMSW *win);
// find the window for the mouse event at the specified position
-static wxWindowMSW *FindWindowForMouseEvent(wxWindow *win, int *x, int *y);
+static wxWindowMSW *FindWindowForMouseEvent(wxWindowMSW *win, int *x, int *y); //TW:REQ:Univ
// wrapper around BringWindowToTop() API
static inline void wxBringWindowToTop(HWND hwnd)
}
else
{
- wxWindow *win = FindWindowForMouseEvent(this, &x, &y);
+ wxWindowMSW *win = FindWindowForMouseEvent(this, &x, &y); //TW:REQ:Univ
processed = win->HandleMouseEvent(message, x, y, wParam);
}
}
// Notice that this is not done for the mouse move events because this could
// (would?) be too slow, but only for clicks which means that the static texts
// still don't get move, enter nor leave events.
-static wxWindowMSW *FindWindowForMouseEvent(wxWindow *win, int *x, int *y)
+static wxWindowMSW *FindWindowForMouseEvent(wxWindowMSW *win, int *x, int *y) //TW:REQ:Univ
{
wxCHECK_MSG( x && y, win, _T("NULL pointer in FindWindowForMouseEvent") );