Move code for creating a disabled bitmap to wxBitmap

To allow using it from multiple places
This commit is contained in:
Paul Cornett
2019-12-29 09:08:40 -08:00
parent dda052d38a
commit 8db62d179c
3 changed files with 28 additions and 14 deletions

View File

@@ -136,6 +136,7 @@ public:
cairo_t* CairoCreate() const;
void Draw(cairo_t* cr, int x, int y, bool useMask = true, const wxColour* fg = NULL, const wxColour* bg = NULL) const;
void SetSourceSurface(cairo_t* cr, int x, int y, const wxColour* fg = NULL, const wxColour* bg = NULL) const;
wxBitmap CreateDisabled() const;
#else
GdkPixmap *GetPixmap() const;
bool HasPixmap() const;