X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9dc44eff0235c5f30940f32ccc6d9d82a236e7d2..ec2df34e27ba41f202ecbf096cdfed082a9ddb8f:/include/wx/gtk/bitmap.h diff --git a/include/wx/gtk/bitmap.h b/include/wx/gtk/bitmap.h index d176833ca8..e1b6e792ad 100644 --- a/include/wx/gtk/bitmap.h +++ b/include/wx/gtk/bitmap.h @@ -32,14 +32,15 @@ public: #endif // wxUSE_PALETTE wxMask( const wxBitmap& bitmap ); virtual ~wxMask(); + wxBitmap GetBitmap() const; // implementation #ifdef __WXGTK3__ wxMask(cairo_surface_t*); - cairo_surface_t* GetBitmap() const; + operator cairo_surface_t*() const; #else wxMask(GdkPixmap*); - GdkPixmap* GetBitmap() const; + operator GdkPixmap*() const; #endif protected: @@ -80,12 +81,15 @@ public: #if wxUSE_IMAGE wxBitmap(const wxImage& image, int depth = wxBITMAP_SCREEN_DEPTH); #endif // wxUSE_IMAGE - wxBitmap(GdkPixbuf* pixbuf); + wxBitmap(GdkPixbuf* pixbuf, int depth = 0); virtual ~wxBitmap(); bool Create(int width, int height, int depth = wxBITMAP_SCREEN_DEPTH); bool Create(const wxSize& sz, int depth = wxBITMAP_SCREEN_DEPTH) { return Create(sz.GetWidth(), sz.GetHeight(), depth); } + bool Create(int width, int height, const wxDC& WXUNUSED(dc)) + { return Create(width,height); } + virtual int GetHeight() const; virtual int GetWidth() const; @@ -132,6 +136,7 @@ public: GdkPixmap *GetPixmap() const; bool HasPixmap() const; bool HasPixbuf() const; + wxBitmap(GdkPixmap* pixmap); #endif GdkPixbuf *GetPixbuf() const;