back to gui 

wxAnimation

generated from ../src/mod_gui/misc/anim.cpp

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

Constants

type

Name Description
TYPE_GIF
TYPE_ANI
TYPE_ANY

Constructor

wxAnimation

wxAnimation()
 

Constructor

Properties

Name Type Description
frameCount read only Integer Returns the number of frames for this animation.
ok read only Boolean Returns true if animation data is present.
size read only wxSize Returns the size of the animation.

Methods

getDelay

getDelay(Frame) : Integer
 
Name Type Default Description
Frame Integer

Returns the delay for the i-th frame in milliseconds. If -1 is returned the frame is to be displayed forever.

getFrame

getFrame(Frame) : wxImage
 
Name Type Default Description
Frame Integer

Returns the i-th frame as a wxImage.

loadFile

loadFile(Name, 
         Type = wxAnimation.TYPE_ANY)
 
Name Type Default Description
Name String Filename
Type Integer wxAnimation.TYPE_ANY

Loads an animation from a file.



SourceForge.net Logo Support This Project

Table of Contents

Constructor

wxAnimation

Properties

frameCount
ok
size

Methods

getDelay
getFrame
loadFile


Design downloaded from Zeroweb.org: Free website templates, layouts, and tools.