From 4b0b232b3ba6df1ec046d3c74ff06ba8d0139f47 Mon Sep 17 00:00:00 2001 From: Francesco Montorsi Date: Thu, 22 Jan 2009 15:28:26 +0000 Subject: [PATCH] add the wxAnimation ctor which was documented but not present (backport of r52640 from trunk) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@58307 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/generic/animate.h | 2 ++ include/wx/gtk/animate.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/include/wx/generic/animate.h b/include/wx/generic/animate.h index efc1c29446..83aa2b49c9 100644 --- a/include/wx/generic/animate.h +++ b/include/wx/generic/animate.h @@ -23,6 +23,8 @@ WX_DECLARE_LIST_WITH_DECL(wxAnimationDecoder, wxAnimationDecoderList, class WXDL class WXDLLIMPEXP_ADV wxAnimation : public wxAnimationBase { public: + wxAnimation(const wxString &name, wxAnimationType type = wxANIMATION_TYPE_ANY) + { LoadFile(name, type); } virtual bool IsOk() const { return m_refData != NULL; } diff --git a/include/wx/gtk/animate.h b/include/wx/gtk/animate.h index 1bc82afc18..67a5f6d1b3 100644 --- a/include/wx/gtk/animate.h +++ b/include/wx/gtk/animate.h @@ -27,6 +27,8 @@ typedef struct _GdkPixbufAnimationIter GdkPixbufAnimationIter; class WXDLLIMPEXP_ADV wxAnimation : public wxAnimationBase { public: + wxAnimation(const wxString &name, wxAnimationType type = wxANIMATION_TYPE_ANY) + : m_pixbuf(NULL) { LoadFile(name, type); } wxAnimation(GdkPixbufAnimation *p = NULL); wxAnimation(const wxAnimation&); ~wxAnimation() { UnRef(); }