@param name
Control name.
- @returns @true if the control was successfully created or @false if
- creation failed.
+ @return @true if the control was successfully created or @false if
+ creation failed.
*/
bool Create(wxWindow* parent, wxWindowID id,
const wxAnimation& anim = wxNullAnimation,
virtual bool LoadFile(const wxString& file,
wxAnimationType animType = wxANIMATION_TYPE_ANY);
+ /**
+ Loads the animation from the given stream and calls SetAnimation().
+ See wxAnimation::Load() for more info.
+ */
+ virtual bool Load(wxInputStream& file,
+ wxAnimationType animType = wxANIMATION_TYPE_ANY);
+
/**
Starts playing the animation.
@li wxANIMATION_TYPE_ANI: load an ANI file;
@li wxANIMATION_TYPE_ANY: tries to autodetect the filetype.
- @returns @true if the operation succeeded, @false otherwise.
+ @return @true if the operation succeeded, @false otherwise.
*/
virtual bool Load(wxInputStream& stream,
wxAnimationType type = wxANIMATION_TYPE_ANY);
One of the wxAnimationType values; wxANIMATION_TYPE_ANY
means that the function should try to autodetect the filetype.
- @returns @true if the operation succeeded, @false otherwise.
+ @return @true if the operation succeeded, @false otherwise.
*/
virtual bool LoadFile(const wxString& name,
wxAnimationType type = wxANIMATION_TYPE_ANY);