bool ButtonIsDown(int but = wxJOY_BUTTON_ANY) const
{ return (((but == wxJOY_BUTTON_ANY) && (m_buttonState != 0)) ||
((m_buttonState & but) == but)); }
+
+ void CopyObject(wxObject& obj) const;
};
// Drop files event class
wxPoint GetPosition() const { return m_pos; }
int GetNumberOfFiles() const { return m_noFiles; }
wxString *GetFiles() const { return m_files; }
+
+ void CopyObject(wxObject& obj) const;
};
// Idle event
void RequestMore(bool needMore = TRUE) { m_requestMore = needMore; }
bool MoreRequested() const { return m_requestMore; }
+ void CopyObject(wxObject& obj) const;
+
protected:
bool m_requestMore;
};
void Enable(bool enable) { m_enabled = enable; m_setEnabled = TRUE; }
void SetText(const wxString& text) { m_text = text; m_setText = TRUE; }
+ void CopyObject(wxObject& obj) const;
+
protected:
bool m_checked;
bool m_enabled;
void SetChangedWindow(wxWindow* win) { m_changedWindow = win; }
wxWindow* GetChangedWindow() const { return m_changedWindow; }
+ void CopyObject(wxObject& obj) const;
+
protected:
wxWindow* m_changedWindow;
};
void SetPaletteRealized(bool realized) { m_paletteRealized = realized; }
bool GetPaletteRealized() const { return m_paletteRealized; }
+ void CopyObject(wxObject& obj) const;
+
protected:
bool m_paletteRealized;
};
obj->m_show = m_show;
}
-
+
+void wxJoystickEvent::CopyObject(wxObject& obj_d) const
+{
+ wxJoystickEvent *obj = (wxJoystickEvent *)&obj_d;
+ wxEvent::CopyObject(obj_d);
+
+ obj->m_pos = m_pos;
+ obj->m_zPosition = m_zPosition;
+ obj->m_buttonChange = m_buttonChange;
+ obj->m_buttonState = m_buttonState;
+ obj->m_joyStick = m_joyStick;
+}
+
+void wxDropFilesEvent::CopyObject(wxObject& obj_d) const
+{
+ wxDropFilesEvent *obj = (wxDropFilesEvent *)&obj_d;
+ wxEvent::CopyObject(obj_d);
+
+ obj->m_noFiles = m_noFiles;
+ obj->m_pos = m_pos;
+ // TODO: Problem with obj->m_files. It should be deallocated by the
+ // destructor of the event.
+}
+
+void wxIdleEvent::CopyObject(wxObject& obj_d) const
+{
+ wxIdleEvent *obj = (wxIdleEvent *)&obj_d;
+ wxEvent::CopyObject(obj_d);
+
+ obj->m_requestMore = m_requestMore;
+}
+
+void wxUpdateUIEvent::CopyObject(wxObject &obj_d) const
+{
+ wxUpdateUIEvent *obj = (wxUpdateUIEvent *)&obj_d;
+ wxEvent::CopyObject(obj_d);
+
+ obj->m_checked = m_checked;
+ obj->m_enabled = m_enabled;
+ obj->m_text = m_text;
+ obj->m_setText = m_setText;
+ obj->m_setChecked = m_setChecked;
+ obj->m_setEnabled = m_setEnabled;
+}
+
+void wxPaletteChangedEvent::CopyObject(wxObject &obj_d) const
+{
+ wxPaletteChangedEvent *obj = (wxPaletteChangedEvent *)&obj_d;
+ wxEvent::CopyObject(obj_d);
+
+ obj->m_changedWindow = m_changedWindow;
+}
+
+void wxQueryNewPaletteEvent::CopyObject(wxObject& obj_d) const
+{
+ wxQueryNewPaletteEvent *obj = (wxQueryNewPaletteEvent *)&obj_d;
+ wxEvent::CopyObject(obj_d);
+
+ obj->m_paletteRealized = m_paletteRealized;
+}
/*
* Event handler