]> git.saurik.com Git - wxWidgets.git/commitdiff
no-op methods for ownerdrawn methods in wxMenuItem
authorRobin Dunn <robin@alldunn.com>
Thu, 24 Feb 2005 18:21:57 +0000 (18:21 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 24 Feb 2005 18:21:57 +0000 (18:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/_menu.i

index e756e6fa9f87ac4780e047f11c050c5b3636b6ad..34cdd032a180eda3b5d2defae8ec0655f9b4b035 100644 (file)
@@ -388,9 +388,25 @@ public:
     void SetOwnerDrawn(bool ownerDrawn = true);
     void ResetOwnerDrawn();
 #else
-    // just to keep the global  renamers in sync
     %extend {
+        void SetFont(const wxFont& font) {}
+        wxFont GetFont() { return wxNullFont; }
+        void SetTextColour(const wxColour& colText) {}
+        wxColour GetTextColour() { return wxNullColour; }
+        void SetBackgroundColour(const wxColour& colBack) {}
+        wxColour GetBackgroundColour() { return wxNullColour; }
+        void SetBitmaps(const wxBitmap& bmpChecked,
+                        const wxBitmap& bmpUnchecked = wxNullBitmap) {}
+    
+        void SetDisabledBitmap( const wxBitmap& bmpDisabled ) {}
+        const wxBitmap& GetDisabledBitmap() const { return wxNullBitmap; }
+   
+        void SetMarginWidth(int nWidth) {}
+        int GetMarginWidth() { return 0; }
         static int GetDefaultMarginWidth() { return 0; }
+        bool IsOwnerDrawn() { return false; }
+        void SetOwnerDrawn(bool ownerDrawn = true) {}
+        void ResetOwnerDrawn() {}
     }
 #endif