wxAnimation
generated from ../src/mod_gui/misc/anim.cppThis 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 ![]() |
Integer | Returns the number of frames for this animation. |
ok ![]() |
Boolean | Returns true if animation data is present. |
size ![]() |
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.

© 2002 - 2007 Franky Braem.