Add wxDataViewEvent::InitData() helper

Reuse it from both the generic and macOS versions to avoid doing the
same thing in both of them.
This commit is contained in:
Vadim Zeitlin
2021-12-10 20:11:33 +01:00
parent 31bdfd6523
commit 7797ffc730
4 changed files with 22 additions and 7 deletions

View File

@@ -936,6 +936,9 @@ public:
// insertion of items, this is the proposed child index for the insertion.
void SetProposedDropIndex(int index) { m_proposedDropIndex = index; }
int GetProposedDropIndex() const { return m_proposedDropIndex;}
// Internal, only used by wxWidgets itself.
void InitData(wxDataObjectComposite* obj, wxDataFormat format);
#endif // wxUSE_DRAG_AND_DROP
virtual wxEvent *Clone() const wxOVERRIDE { return new wxDataViewEvent(*this); }