This is the base class for implementing bitmap file loading/saving, and bitmap creation from data.
It is used within wxBitmap and is not normally seen by the application.
If you wish to extend the capabilities of wxBitmap, derive a class from wxBitmapHandler and add the handler using wxBitmap::AddHandler() in your application initialization.
Note that all wxBitmapHandlers provided by wxWidgets are part of the wxCore library. For details about the default handlers, please see the note in the wxBitmap class documentation.
- See also
- Bitmaps and Icons, wxBitmap, wxIcon, wxCursor
|
| wxBitmapHandler () |
| Default constructor. More...
|
|
virtual | ~wxBitmapHandler () |
| Destroys the wxBitmapHandler object. More...
|
|
virtual bool | Create (wxBitmap *bitmap, const void *data, wxBitmapType type, int width, int height, int depth=1) |
| Creates a bitmap from the given data, which can be of arbitrary type. More...
|
|
const wxString & | GetExtension () const |
| Gets the file extension associated with this handler. More...
|
|
const wxString & | GetName () const |
| Gets the name of this handler. More...
|
|
wxBitmapType | GetType () const |
| Gets the bitmap type associated with this handler. More...
|
|
virtual bool | LoadFile (wxBitmap *bitmap, const wxString &name, wxBitmapType type, int desiredWidth, int desiredHeight) |
| Loads a bitmap from a file or resource, putting the resulting data into bitmap. More...
|
|
virtual bool | SaveFile (const wxBitmap *bitmap, const wxString &name, wxBitmapType type, const wxPalette *palette=NULL) const |
| Saves a bitmap in the named file. More...
|
|
void | SetExtension (const wxString &extension) |
| Sets the handler extension. More...
|
|
void | SetName (const wxString &name) |
| Sets the handler name. More...
|
|
void | SetType (wxBitmapType type) |
| Sets the handler type. More...
|
|
| wxObject () |
| Default ctor; initializes to NULL the internal reference data. More...
|
|
| wxObject (const wxObject &other) |
| Copy ctor. More...
|
|
virtual | ~wxObject () |
| Destructor. More...
|
|
virtual wxClassInfo * | GetClassInfo () const |
| This virtual function is redefined for every class that requires run-time type information, when using the wxDECLARE_CLASS macro (or similar). More...
|
|
wxObjectRefData * | GetRefData () const |
| Returns the wxObject::m_refData pointer, i.e. the data referenced by this object. More...
|
|
bool | IsKindOf (const wxClassInfo *info) const |
| Determines whether this class is a subclass of (or the same class as) the given class. More...
|
|
bool | IsSameAs (const wxObject &obj) const |
| Returns true if this object has the same data pointer as obj. More...
|
|
void | Ref (const wxObject &clone) |
| Makes this object refer to the data in clone. More...
|
|
void | SetRefData (wxObjectRefData *data) |
| Sets the wxObject::m_refData pointer. More...
|
|
void | UnRef () |
| Decrements the reference count in the associated data, and if it is zero, deletes the data. More...
|
|
void | UnShare () |
| This is the same of AllocExclusive() but this method is public. More...
|
|
void | operator delete (void *buf) |
| The delete operator is defined for debugging versions of the library only, when the identifier WXDEBUG is defined. More...
|
|
void * | operator new (size_t size, const wxString &filename=NULL, int lineNum=0) |
| The new operator is defined for debugging versions of the library only, when the identifier WXDEBUG is defined. More...
|
|