X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/526954c5968baa29218c994ec48e476ae2bd4b9f..8ea079b33ed5dc9345fbfe0aae33db2276b68724:/interface/wx/animate.h diff --git a/interface/wx/animate.h b/interface/wx/animate.h index 320f49fd4a..77d5ecf423 100644 --- a/interface/wx/animate.h +++ b/interface/wx/animate.h @@ -23,6 +23,11 @@ enum wxAnimationType wxANIMATION_TYPE_ANY }; + +#define wxAC_NO_AUTORESIZE (0x0010) +#define wxAC_DEFAULT_STYLE (wxBORDER_NONE) + + /** @class wxAnimationCtrl @@ -49,7 +54,7 @@ enum wxAnimationType @nativeimpl{wxgtk,wxmsw} - @appearance{animationctrl.png} + @appearance{animationctrl} @see wxAnimation, @sample{animate} */ @@ -70,7 +75,7 @@ public: /** Creates the control with the given @a anim animation. - After control creation you must explicitely call Play() to start to play + After control creation you must explicitly call Play() to start to play the animation. Until that function won't be called, the first frame of the animation is displayed. @@ -183,7 +188,7 @@ public: Note that on wxGTK wxAnimation is capable of loading the formats supported by the internally-used @c gdk-pixbuf library (typically this means only - or @c wxANIMATION_TYPE_GIF). + @c wxANIMATION_TYPE_GIF). On other platforms wxAnimation is always capable of loading both GIF and ANI formats (i.e. both @c wxANIMATION_TYPE_GIF and @c wxANIMATION_TYPE_ANI). @@ -195,9 +200,14 @@ public: @see wxAnimationCtrl, @sample{animate} */ -class wxAnimation : public wxGDIObject +class wxAnimation : public wxObject { public: + /** + Default ctor. + */ + wxAnimation(); + /** Copy ctor. */ @@ -228,11 +238,17 @@ public: /** Returns the i-th frame as a wxImage. + + This method is not implemented in the native wxGTK implementation of + this class and always returns an invalid image there. */ virtual wxImage GetFrame(unsigned int i) const; /** Returns the number of frames for this animation. + + This method is not implemented in the native wxGTK implementation of + this class and always returns 0 there. */ virtual unsigned int GetFrameCount() const;