add wxMask::GetBitmap(), closes #9381
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73409 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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;
|
||||
|
||||
|
@@ -160,7 +160,6 @@ public:
|
||||
#endif // wxUSE_PALETTE
|
||||
|
||||
wxMask *GetMask() const;
|
||||
wxBitmap GetMaskBitmap() const;
|
||||
void SetMask(wxMask *mask);
|
||||
|
||||
// these functions are internal and shouldn't be used, they risk to
|
||||
@@ -238,6 +237,8 @@ public:
|
||||
bool Create(const wxBitmap& bitmap, int paletteIndex);
|
||||
bool Create(const wxBitmap& bitmap);
|
||||
|
||||
wxBitmap GetBitmap() const;
|
||||
|
||||
// Implementation
|
||||
WXHBITMAP GetMaskBitmap() const { return m_maskBitmap; }
|
||||
void SetMaskBitmap(WXHBITMAP bmp) { m_maskBitmap = bmp; }
|
||||
|
@@ -57,6 +57,8 @@ public:
|
||||
bool Create(const wxBitmap& bitmap);
|
||||
bool Create(const wxMemoryBuffer& buf, int width , int height , int bytesPerRow ) ;
|
||||
|
||||
wxBitmap GetBitmap() const;
|
||||
|
||||
// Implementation below
|
||||
|
||||
void Init() ;
|
||||
|
Reference in New Issue
Block a user