git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58237
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
Get = 0x01, // format is supported by GetDataHere()
Set = 0x02 // format is supported by SetData()
{
Get = 0x01, // format is supported by GetDataHere()
Set = 0x02 // format is supported by SetData()
+ Both = 0x03 // format is supported by both (unused currently)
class wxDataObject
{
public:
class wxDataObject
{
public:
+ enum Direction
+ {
+ /** Format is supported by GetDataHere() */
+ Get = 0x01,
+ /** Format is supported by SetData() */
+ Set = 0x02,
+ };
+
@return @true on success, @false on failure.
*/
virtual bool SetData(const wxDataFormat& format, size_t len, const void* buf);
@return @true on success, @false on failure.
*/
virtual bool SetData(const wxDataFormat& format, size_t len, const void* buf);
+
+ /**
+ Returns true if this format is supported.
+ */
+ bool IsSupported(const wxDataFormat& format, Direction dir = Get) const;