From: Robin Dunn Date: Thu, 24 Feb 2005 18:21:57 +0000 (+0000) Subject: no-op methods for ownerdrawn methods in wxMenuItem X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6a210755f3b5027ae8b91af6bec25d60c5f2ad36 no-op methods for ownerdrawn methods in wxMenuItem git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/src/_menu.i b/wxPython/src/_menu.i index e756e6fa9f..34cdd032a1 100644 --- a/wxPython/src/_menu.i +++ b/wxPython/src/_menu.i @@ -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