#include <wx/anidecod.h>
An animation decoder supporting animated cursor (.ani) files.
Public Member Functions | |
wxANIDecoder () | |
~wxANIDecoder () | |
virtual bool | Load (wxInputStream &stream) |
Load the animation image frames from the given stream. More... | |
virtual wxAnimationDecoder * | Clone () const |
Create a copy of this decoder. More... | |
virtual wxAnimationType | GetType () const |
Return the animation type this decoder implements. More... | |
virtual bool | ConvertToImage (unsigned int frame, wxImage *image) const |
Convert given frame to wxImage . More... | |
virtual wxSize | GetFrameSize (unsigned int frame) const |
virtual wxPoint | GetFramePosition (unsigned int frame) const |
virtual wxAnimationDisposal | GetDisposalMethod (unsigned int frame) const |
What should be done after displaying this frame. More... | |
virtual long | GetDelay (unsigned int frame) const |
Return the number of milliseconds this frame should be displayed. More... | |
virtual wxColour | GetTransparentColour (unsigned int frame) const |
The transparent colour for this frame, if any, or wxNullColour . More... | |
Public Member Functions inherited from wxAnimationDecoder | |
wxAnimationDecoder () | |
bool | CanRead (wxInputStream &stream) const |
Returns true if this decoder supports loading from the given stream. More... | |
wxSize | GetAnimationSize () const |
wxColour | GetBackgroundColour () const |
unsigned int | GetFrameCount () const |
Protected Member Functions | |
virtual bool | DoCanRead (wxInputStream &stream) const |
Checks the signature of the data in the given stream and returns true if it appears to be a valid animation format recognized by the animation decoder; this function should modify the stream current position without taking care of restoring it since CanRead() will do it. More... | |
wxANIDecoder::wxANIDecoder | ( | ) |
wxANIDecoder::~wxANIDecoder | ( | ) |
|
virtual |
Create a copy of this decoder.
Implements wxAnimationDecoder.
|
virtual |
Convert given frame to wxImage
.
Implements wxAnimationDecoder.
|
protectedvirtual |
Checks the signature of the data in the given stream and returns true if it appears to be a valid animation format recognized by the animation decoder; this function should modify the stream current position without taking care of restoring it since CanRead()
will do it.
Implements wxAnimationDecoder.
|
virtual |
Return the number of milliseconds this frame should be displayed.
If -1 is returned then the frame must be displayed forever.
Implements wxAnimationDecoder.
|
virtual |
What should be done after displaying this frame.
Implements wxAnimationDecoder.
|
virtual |
Implements wxAnimationDecoder.
|
virtual |
Implements wxAnimationDecoder.
|
virtual |
The transparent colour for this frame, if any, or wxNullColour
.
Implements wxAnimationDecoder.
|
virtual |
Return the animation type this decoder implements.
Implements wxAnimationDecoder.
|
virtual |
Load the animation image frames from the given stream.
Implements wxAnimationDecoder.