From 8c33ee2549239437167a4b91f6da612d5d330b58 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Tue, 20 Jan 2009 11:42:01 +0000 Subject: [PATCH] Docuement wxDataObject::IsSupported() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58237 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/wx/dataobj.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/interface/wx/dataobj.h b/interface/wx/dataobj.h index efbd5a98ee..346d553bfa 100644 --- a/interface/wx/dataobj.h +++ b/interface/wx/dataobj.h @@ -547,6 +547,7 @@ public: { Get = 0x01, // format is supported by GetDataHere() Set = 0x02 // format is supported by SetData() + Both = 0x03 // format is supported by both (unused currently) }; @endcode @@ -641,6 +642,14 @@ public: class wxDataObject { public: + enum Direction + { + /** Format is supported by GetDataHere() */ + Get = 0x01, + /** Format is supported by SetData() */ + Set = 0x02, + }; + /** Constructor. */ @@ -690,5 +699,10 @@ public: @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; }; -- 2.45.2