From 0c8d2053438d193e7a9bff9a761ca52694f4ae79 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 14 Feb 2003 19:23:37 +0000 Subject: [PATCH] Added ability to make a wxCursor from a wxImage git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19215 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/gdi.i | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wxPython/src/gdi.i b/wxPython/src/gdi.i index ac05b0df6e..5e77f054ab 100644 --- a/wxPython/src/gdi.i +++ b/wxPython/src/gdi.i @@ -338,6 +338,13 @@ public: } %} +%new wxCursor* wxCursorFromImage(const wxImage& image); +%{ + wxCursor* wxCursorFromImage(const wxImage& image) { + return new wxCursor(image); + } +%} + //---------------------------------------------------------------------- class wxColour : public wxObject {