From a4e72041fbb4eab7e7d0b6886000d9b28b12f122 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 23 Sep 2014 17:40:22 +0000 Subject: [PATCH] Add GetBitmap support to wxButton in wxUniv git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77787 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/univ/button.h | 1 + src/univ/button.cpp | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/include/wx/univ/button.h b/include/wx/univ/button.h index eaeda50566..ed8d21005c 100644 --- a/include/wx/univ/button.h +++ b/include/wx/univ/button.h @@ -98,6 +98,7 @@ public: protected: virtual void DoSetBitmap(const wxBitmap& bitmap, State which) wxOVERRIDE; + virtual wxBitmap DoGetBitmap(State which) const wxOVERRIDE; virtual void DoSetBitmapMargins(wxCoord x, wxCoord y) wxOVERRIDE; // common part of all ctors diff --git a/src/univ/button.cpp b/src/univ/button.cpp index 924d0407fb..7819391786 100644 --- a/src/univ/button.cpp +++ b/src/univ/button.cpp @@ -146,6 +146,11 @@ void wxButton::Click() // misc // ---------------------------------------------------------------------------- +wxBitmap wxButton::DoGetBitmap(State WXUNUSED(which)) const +{ + return m_bitmap; +} + void wxButton::DoSetBitmap(const wxBitmap& bitmap, State which) { // we support only one bitmap right now, although this wouldn't be