]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_clipbrd.i
Added selection methods
[wxWidgets.git] / wxPython / src / _clipbrd.i
index d8d439d904a56fe0032d2717c88fea1d201f53e1..ef48ae8daa9d96f3bec9396edc393d118b23c32b 100644 (file)
@@ -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 );
 };