virtual wxDragResult OnData(wxCoord x, wxCoord y, wxDragResult def);
virtual bool GetData();
+ // Can only be called during OnXXX methods.
+ wxDataFormat GetMatchingPair();
// implementation
-
+
GdkAtom GtkGetMatchingPair();
void GtkRegisterWidget( GtkWidget *widget );
virtual bool OnDrop(wxCoord x, wxCoord y);
virtual bool GetData();
+ // Can only be called during OnXXX methods.
+ wxDataFormat GetMatchingPair();
+
// implementation only from now on
// -------------------------------
return GetData() ? def : wxDragNone;
}
+
+wxDataFormat wxDropTarget::GetMatchingPair()
+{
+ return wxDataFormat( GtkGetMatchingPair() );
+}
+
GdkAtom wxDropTarget::GtkGetMatchingPair()
{
if (!m_dataObject)
// helper functions
// ----------------------------------------------------------------------------
+wxDataFormat wxDropTarget::GetMatchingPair()
+{
+ return GetSupportedFormat( m_pIDataSource );
+}
+
wxDataFormat wxDropTarget::GetSupportedFormat(IDataObject *pIDataSource) const
{
// this strucutre describes a data of any type (first field will be