adding data-transfer direction when getting native datatypes
we are publishing exactly what we have internally when data has to be get, and when setting, we might have more formats we can support
This commit is contained in:
@@ -61,9 +61,14 @@ public:
|
||||
// returns true if the format is one of those defined in wxDataFormatId
|
||||
bool IsStandard() const { return m_type > 0 && m_type < wxDF_PRIVATE; }
|
||||
|
||||
// adds all the native formats for this format to an array
|
||||
void AddSupportedTypes(CFMutableArrayRef types) const;
|
||||
// adds all the native formats for this format when calling a GetData
|
||||
void AddSupportedTypesForGetting(CFMutableArrayRef types) const;
|
||||
|
||||
// adds all the native formats for this format when calling a SetData
|
||||
void AddSupportedTypesForSetting(CFMutableArrayRef types) const;
|
||||
private:
|
||||
void DoAddSupportedTypes(CFMutableArrayRef types, bool forSetting) const;
|
||||
|
||||
void ClearNativeFormat();
|
||||
|
||||
wxDataFormatId m_type;
|
||||
|
@@ -33,7 +33,7 @@ public:
|
||||
|
||||
#if wxOSX_USE_COCOA
|
||||
// adds all the native formats (in descending order of preference) this data object supports
|
||||
virtual void AddSupportedTypes( CFMutableArrayRef cfarray) const;
|
||||
virtual void AddSupportedTypes( CFMutableArrayRef cfarray, Direction dir ) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user