]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_dragimg.i
new wxRect and wxPlatformInformation methods
[wxWidgets.git] / wxPython / src / _dragimg.i
index a0f1d2cc09408b69bbc269c51e7e4c39d1f85fb9..94f0d19fdf06749a996eba39e2d6ae42b21e2131 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();
 
@@ -57,8 +58,8 @@ public:
     // 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
@@ -94,6 +95,8 @@ public:
 
     // Erase and redraw simultaneously if possible
     virtual bool RedrawImage(const wxPoint& oldPos, const wxPoint& newPos, bool eraseOld, bool drawNew);
+
+    %property(ImageRect, GetImageRect, doc="See `GetImageRect`");
 };