Add GetBitmap support to wxButton in wxUniv

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77787 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2014-09-23 17:40:22 +00:00
parent 15908f0a43
commit a4e72041fb
2 changed files with 6 additions and 0 deletions

View File

@@ -98,6 +98,7 @@ public:
protected: protected:
virtual void DoSetBitmap(const wxBitmap& bitmap, State which) wxOVERRIDE; virtual void DoSetBitmap(const wxBitmap& bitmap, State which) wxOVERRIDE;
virtual wxBitmap DoGetBitmap(State which) const wxOVERRIDE;
virtual void DoSetBitmapMargins(wxCoord x, wxCoord y) wxOVERRIDE; virtual void DoSetBitmapMargins(wxCoord x, wxCoord y) wxOVERRIDE;
// common part of all ctors // common part of all ctors

View File

@@ -146,6 +146,11 @@ void wxButton::Click()
// misc // misc
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
wxBitmap wxButton::DoGetBitmap(State WXUNUSED(which)) const
{
return m_bitmap;
}
void wxButton::DoSetBitmap(const wxBitmap& bitmap, State which) void wxButton::DoSetBitmap(const wxBitmap& bitmap, State which)
{ {
// we support only one bitmap right now, although this wouldn't be // we support only one bitmap right now, although this wouldn't be