X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/591cc82deb5bc6dd0af6047ecfa7ce7cf4f8d859..5bcb6a698f4b4c4bdada95179f5b72c184d503a5:/interface/wx/dataview.h?ds=sidebyside diff --git a/interface/wx/dataview.h b/interface/wx/dataview.h index f4312148ff..c4ac26a10b 100644 --- a/interface/wx/dataview.h +++ b/interface/wx/dataview.h @@ -556,6 +556,10 @@ public: Process a wxEVT_COMMAND_DATAVIEW_COLUMN_REORDERED event. @event{EVT_DATAVIEW_ITEM_BEGIN_DRAG(id, func)} Process a wxEVT_COMMAND_DATAVIEW_ITEM_BEGIN_DRAG event. + @event{EVT_DATAVIEW_ITEM_DROP_POSSIBLE(id, func)} + Process a wxEVT_COMMAND_DATAVIEW_ITEM_DROP_POSSIBLE event. + @event{EVT_DATAVIEW_ITEM_DROP(id, func)} + Process a wxEVT_COMMAND_DATAVIEW_ITEM_DROP event. @endEventTable @library{wxadv} @@ -765,6 +769,16 @@ public: */ virtual bool DeleteColumn(wxDataViewColumn* column); + /** + Enable drag operations using the given @a format. + */ + virtual bool EnableDragSource( const wxDataFormat &format ); + + /** + Enable drop operations using the given @a format. + */ + virtual bool EnableDropTarget( const wxDataFormat &format ); + /** Call this to ensure that the given item is visible. */ @@ -2253,13 +2267,44 @@ public: void SetValue(const wxVariant& value); /** - Set wxDataObject for Drag'n'drop data transfer. + Set wxDataObject for data transfer within a drag operation. */ void SetDataObject( wxDataObject *obj ); + + /** + Used internally. Gets associated wxDataObject for data transfer + within a drag operation. + */ + wxDataObject *GetDataObject() const; + + /** + Used internally. Sets the wxDataFormat during a drop operation. + */ + void SetDataFormat( const wxDataFormat &format ); + + /** + Gets the wxDataFormat during a drop operation. + */ + wxDataFormat GetDataFormat() const; + + /** + Used internally. Sets the data size for a drop data transfer. + */ + void SetDataSize( size_t size ); + + /** + Gets the data size for a drop data transfer. + */ + size_t GetDataSize() const; + + /** + Used internally. Sets the data buffer for a drop data transfer. + */ + void SetDataBuffer( void* buf ); /** - Gets associated wxDataObject for Drag'n'drop data transfer. + Gets the data buffer for a drop data transfer. */ - wxDataObject *GetDataObject(); + void *GetDataBuffer() const; };