// ========================================================================
// A mask is a 1-bit alpha bitmap used for drawing bitmaps transparently.
// ========================================================================
// A mask is a 1-bit alpha bitmap used for drawing bitmaps transparently.
// ========================================================================
// wxBitmap
// ========================================================================
// ========================================================================
// wxBitmap
// ========================================================================
// ------------------------------------------------------------------------
// initialization
// ------------------------------------------------------------------------
// ------------------------------------------------------------------------
// initialization
// ------------------------------------------------------------------------
// Initialize with XPM data
wxBitmap(const char* const* bits);
// Load a file or resource
// Initialize with XPM data
wxBitmap(const char* const* bits);
// Load a file or resource
// Construct from Cocoa's NSImage
wxBitmap(NSImage* cocoaNSImage);
// Construct from Cocoa's NSBitmapImageRep
// Construct from Cocoa's NSImage
wxBitmap(NSImage* cocoaNSImage);
// Construct from Cocoa's NSBitmapImageRep
bool Create(NSImage* cocoaNSImage);
bool Create(NSBitmapImageRep* cocoaNSBitmapImageRep);
virtual bool Create(const void* data, wxBitmapType type, int width, int height, int depth = 1);
bool Create(NSImage* cocoaNSImage);
bool Create(NSBitmapImageRep* cocoaNSBitmapImageRep);
virtual bool Create(const void* data, wxBitmapType type, int width, int height, int depth = 1);
virtual bool SaveFile(const wxString& name, wxBitmapType type, const wxPalette *cmap = NULL) const;
// copies the contents and mask of the given (colour) icon to the bitmap
virtual bool SaveFile(const wxString& name, wxBitmapType type, const wxPalette *cmap = NULL) const;
// copies the contents and mask of the given (colour) icon to the bitmap
-class WXDLLIMPEXP_CORE wxBitmapHandler: public wxBitmapHandlerBase
-{
- DECLARE_ABSTRACT_CLASS(wxBitmapHandler)
+protected:
+ wxGDIRefData *CreateGDIRefData() const;
+ wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
+
+ DECLARE_DYNAMIC_CLASS(wxBitmap)