Allow using wxBitmapBundle for wxButton bitmaps
Take wxBitmapBundle in wxButton::SetBitmapLabel() and related functions in order to be able to associate several bitmaps to be used in different resolutions with the button, instead of just a single bitmap.
This commit is contained in:
@@ -33,18 +33,18 @@ public:
|
||||
|
||||
protected:
|
||||
virtual wxBitmap DoGetBitmap(State state) const wxOVERRIDE;
|
||||
virtual void DoSetBitmap(const wxBitmap& bitmap, State which) wxOVERRIDE;
|
||||
virtual void DoSetBitmap(const wxBitmapBundle& bitmap, State which) wxOVERRIDE;
|
||||
|
||||
QPushButton *m_qtPushButton;
|
||||
|
||||
void QtCreate(wxWindow *parent);
|
||||
void QtSetBitmap( const wxBitmap &bitmap );
|
||||
void QtSetBitmap( const wxBitmapBundle &bitmap );
|
||||
|
||||
private:
|
||||
State QtGetCurrentState() const;
|
||||
|
||||
typedef wxAnyButtonBase base_type;
|
||||
wxBitmap m_bitmaps[State_Max];
|
||||
wxBitmapBundle m_bitmaps[State_Max];
|
||||
|
||||
wxDECLARE_NO_COPY_CLASS(wxAnyButton);
|
||||
};
|
||||
|
Reference in New Issue
Block a user