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.
|