- wxAnimation(const wxAnimation &tocopy)
- { m_pixbuf=tocopy.m_pixbuf; if (m_pixbuf) g_object_ref(m_pixbuf); }
- wxAnimation(GdkPixbufAnimation *p = NULL)
- { m_pixbuf=p; }
- ~wxAnimation()
- { UnRef(); }
-
- wxAnimation &operator= (const wxAnimation &tocopy)
- {
- m_pixbuf=tocopy.m_pixbuf;
- if (m_pixbuf) g_object_ref(m_pixbuf);
- return *this;
- }
-
- bool operator == (const wxAnimation& anim) const
- { return m_pixbuf == anim.m_pixbuf; }
- bool operator != (const wxAnimation& anim) const
- { return m_pixbuf != anim.m_pixbuf; }
+ wxAnimation(const wxString &name, wxAnimationType type = wxANIMATION_TYPE_ANY)
+ : m_pixbuf(NULL) { LoadFile(name, type); }
+ wxAnimation(GdkPixbufAnimation *p = NULL);
+ wxAnimation(const wxAnimation&);
+ ~wxAnimation() { UnRef(); }
+
+ wxAnimation& operator= (const wxAnimation&);