X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d14a1e28567de23c586bc80017073d0c39f8d18f..927d7cfa7091043841e0243e04a6cdf168bdfde8:/wxPython/src/_clipbrd.i diff --git a/wxPython/src/_clipbrd.i b/wxPython/src/_clipbrd.i index d8d439d904..ef48ae8daa 100644 --- a/wxPython/src/_clipbrd.i +++ b/wxPython/src/_clipbrd.i @@ -40,6 +40,9 @@ public: // query whether the clipboard is opened virtual bool IsOpened() const; + + %apply SWIGTYPE *DISOWN { wxDataObject *data }; + // add to the clipboard data // // NB: the clipboard owns the pointer and will delete it, so data must be @@ -50,6 +53,8 @@ public: // AddData() virtual bool SetData( wxDataObject *data ); + %clear wxDataObject *data; + // ask if data in correct format is available virtual bool IsSupported( const wxDataFormat& format ); @@ -65,7 +70,7 @@ public: virtual bool Flush(); // X11 has two clipboards which get selected by this call. Empty on MSW. - virtual void UsePrimarySelection( bool primary = FALSE ); + virtual void UsePrimarySelection( bool primary = False ); };