It is only available if @c wxUSE_ANIMATIONCTRL is set to 1 (the default).
@beginStyleTable
- @style{wxAC_DEFAULT_STYLE}:
+ @style{wxAC_DEFAULT_STYLE}
The default style: wxBORDER_NONE.
- @style{wxAC_NO_AUTORESIZE}:
+ @style{wxAC_NO_AUTORESIZE}
By default, the control will adjust its size to exactly fit to the
size of the animation when SetAnimation is called. If this style
flag is given, the control will not change its size
@nativeimpl{wxgtk,wxmsw}
- @appearance{animationctrl.png}
+ <!-- @appearance{animationctrl.png} -->
@see wxAnimation
*/
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxAC_DEFAULT_STYLE,
- const wxString& name = "animationctrl");
+ const wxString& name = wxAnimationCtrlNameStr);
/**
Creates the control with the given @a anim animation.
@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);