all the parameters.
*/
wxAnimationCtrl(wxWindow* parent, wxWindowID id,
- const wxAnimation& anim,
+ const wxAnimation& anim = wxNullAnimation,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxAC_DEFAULT_STYLE,
/**
Creates the control with the given @a anim animation.
-
+
After control creation you must explicitely call Play() to start to play
the animation. Until that function won't be called, the first frame
of the animation is displayed.
-
+
@param parent
Parent window, must be non-@NULL.
@param id
The window style, see wxAC_* flags.
@param name
Control name.
-
+
@returns @true if the control was successfully created or @false if
creation failed.
*/
bool Create(wxWindow* parent, wxWindowID id,
- const wxAnimation& anim,
+ const wxAnimation& anim = wxNullAnimation,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxAC_DEFAULT_STYLE,
/**
@class wxAnimation
- @ingroup group_class_gdi
@wxheader{animate.h}
This class encapsulates the concept of a platform-dependent animation.
class wxAnimation : public wxGDIObject
{
public:
- wxAnimation();
+ /**
+ Copy ctor.
+ */
wxAnimation(const wxAnimation& anim);
/**
Loads an animation from a file.
-
+
@param name
The name of the file to load.
@param type
/**
Loads an animation from the given stream.
-
+
@param stream
The stream to use to load the animation.
@param type
@li wxANIMATION_TYPE_GIF: loads an animated GIF file;
@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.
*/
bool Load(wxInputStream& stream,
/**
Loads an animation from a file.
-
+
@param name
A filename.
@param type
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.
*/
bool LoadFile(const wxString& name,
/**
Assignment operator, using @ref overview_refcount "reference counting".
*/
- wxAnimation operator =(const wxAnimation& brush);
+ wxAnimation& operator =(const wxAnimation& brush);
};
+
+// ============================================================================
+// Global functions/macros
+// ============================================================================
+
/**
An empty animation object.
*/