]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_dragimg.i
Added the PseudoDC class from Paul Lanier. It provides a way to
[wxWidgets.git] / wxPython / src / _dragimg.i
index fdbbb93d1f39fab39dcb3a82299fd51552de5b02..d0d6eca9e7b263e9420e8a210e1d7592cb9aa01b 100644 (file)
 
 MustHaveApp(wxGenericDragImage);
 
-%name (DragImage) class wxGenericDragImage : public wxObject
+%rename (DragImage) wxGenericDragImage;
+class wxGenericDragImage : public wxObject
 {
 public:
 
     wxGenericDragImage(const wxBitmap& image,
                        const wxCursor& cursor = wxNullCursor);
     
-    %name(DragIcon)wxGenericDragImage(const wxIcon& image,
-                                        const wxCursor& cursor = wxNullCursor);
+    %RenameCtor(DragIcon, wxGenericDragImage(const wxIcon& image,
+                                        const wxCursor& cursor = wxNullCursor));
 
-    %name(DragString)wxGenericDragImage(const wxString& str,
-                                          const wxCursor& cursor = wxNullCursor);
+    %RenameCtor(DragString, wxGenericDragImage(const wxString& str,
+                                          const wxCursor& cursor = wxNullCursor));
 
-    %name(DragTreeItem)wxGenericDragImage(const wxPyTreeCtrl& treeCtrl, wxTreeItemId& id);
+    %RenameCtor(DragTreeItem, wxGenericDragImage(const wxPyTreeCtrl& treeCtrl, wxTreeItemId& id));
 
-    %name(DragListItem)wxGenericDragImage(const wxPyListCtrl& listCtrl, long id);
+    %RenameCtor(DragListItem, wxGenericDragImage(const wxPyListCtrl& listCtrl, long id));
 
     ~wxGenericDragImage();
 
@@ -52,13 +53,13 @@ public:
     // Begin drag. hotspot is the location of the drag position relative to the upper-left
     // corner of the image.
     bool BeginDrag(const wxPoint& hotspot, wxWindow* window,
-                   bool fullScreen = False, wxRect* rect = NULL);
+                   bool fullScreen = false, wxRect* rect = NULL);
 
     // Begin drag. hotspot is the location of the drag position relative to the upper-left
     // corner of the image. This is full screen only. fullScreenRect gives the
     // position of the window on the screen, to restrict the drag to.
-    %name(BeginDragBounded) bool BeginDrag(const wxPoint& hotspot, wxWindow* window,
-                                           wxWindow* boundingWindow);
+    %Rename(BeginDragBounded,  bool, BeginDrag(const wxPoint& hotspot, wxWindow* window,
+                                           wxWindow* boundingWindow));
 
 
     // End drag