X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9dc44eff0235c5f30940f32ccc6d9d82a236e7d2..33f3e2b31ed781ba1446b49ec6d3e226c0a5c652:/include/wx/gtk/bitmap.h?ds=sidebyside diff --git a/include/wx/gtk/bitmap.h b/include/wx/gtk/bitmap.h index d176833ca8..afd8247eb4 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,7 +81,7 @@ 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); @@ -132,6 +133,7 @@ public: GdkPixmap *GetPixmap() const; bool HasPixmap() const; bool HasPixbuf() const; + wxBitmap(GdkPixmap* pixmap); #endif GdkPixbuf *GetPixbuf() const;