// Construct a mask from a mono bitmap (copies the bitmap).
wxMask(const wxBitmap& bitmap);
- ~wxMask();
+ virtual ~wxMask();
bool Create(const wxBitmap& bitmap, const wxColour& colour);
bool Create(const wxBitmap& bitmap, int paletteIndex);
friend class WXDLLEXPORT wxCursor;
public:
wxBitmapRefData();
- ~wxBitmapRefData();
+ virtual ~wxBitmapRefData();
public:
int m_width;
// Convert from wxImage:
wxBitmap(const wxImage& image, int depth = -1);
- ~wxBitmap();
+ virtual ~wxBitmap();
wxImage ConvertToImage() const;
// copies the contents and mask of the given (colour) icon to the bitmap
virtual bool CopyFromIcon(const wxIcon& icon);
- bool Ok() const;
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const;
int GetWidth() const;
int GetHeight() const;
int GetDepth() const;