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:
@@ -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
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user