wxanimationthis class encapsulates the concept of a platform-dependent animation. an animation is a sequence of frames of the same size. sound is not supported by wxanimation. derived from include files <wx/animate.h> predefined objects objects: wxnullanimation see also members
wxanimation::wxanimation
wxanimation::wxanimationwxanimation() default constructor. wxanimation(const wxanimation& anim) copy constructor, uses reference counting. wxanimation(const wxstring& name, wxanimationtype type = wxanimation_type_any) loads an animation from a file. name
type
wxanimation::~wxanimation~wxanimation() destructor. see reference-counted object destruction for more info.
wxanimation::getdelayint getdelay(unsigned int i) const returns the delay for the i-th frame in milliseconds. if -1 is returned the frame is to be displayed forever.
wxanimation::getframecountunsigned int getframecount() const returns the number of frames for this animation.
wxanimation::getframewximage getframe(unsigned int i) const returns the i-th frame as a wximage.
wxanimation::getsizewxsize getsize() const returns the size of the animation.
wxanimation::isokbool isok() const returns true if animation data is present.
wxanimation::loadbool load(wxinputstream& stream, wxanimationtype type = wxanimation_type_any) loads an animation from the given stream. parameters stream
type
return value true if the operation succeeded, false otherwise.
wxanimation::loadfilebool loadfile(const wxstring& name, wxanimationtype type = wxanimation_type_any) loads an animation from a file. parameters name
type
return value true if the operation succeeded, false otherwise.
wxanimation::operator =wxanimation& operator =(const wxanimation& brush) assignment operator, using reference counting.
|