X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e19b9131cb2d7c0f5d05dc75889172de49f788d0..5541976c17c0550eb2a5ea010c701d9119780193:/wxPython/src/animate.i diff --git a/wxPython/src/animate.i b/wxPython/src/animate.i index 94149e1cac..2efc3fd6e8 100644 --- a/wxPython/src/animate.i +++ b/wxPython/src/animate.i @@ -77,12 +77,12 @@ public: virtual bool IsOk() const; // can be -1 - virtual int GetDelay(size_t i) const; + virtual int GetDelay(int i) const; - virtual size_t GetFrameCount() const; + virtual int GetFrameCount() const; %newobject GetFrame; - virtual wxImage GetFrame(size_t i) const; + virtual wxImage GetFrame(int i) const; virtual wxSize GetSize() const; virtual bool LoadFile(const wxString &name, wxAnimationType type = wxANIMATION_TYPE_ANY); @@ -112,13 +112,17 @@ public: public: // extended interface used by the generic implementation of wxAnimationCtrl #ifndef __WXGTK__ - wxPoint GetFramePosition(size_t frame) const; - wxAnimationDisposal GetDisposalMethod(size_t frame) const; + wxPoint GetFramePosition(int frame) const; + wxSize GetFrameSize(int frame) const; + wxAnimationDisposal GetDisposalMethod(int frame) const; + wxColour GetTransparentColour(int frame) const; wxColour GetBackgroundColour() const; #else %extend { - wxPoint GetFramePosition(size_t frame) const { return wxDefaultPosition; } - wxAnimationDisposal GetDisposalMethod(size_t frame) const { return wxANIM_UNSPECIFIED; } + wxPoint GetFramePosition(int frame) const { return wxDefaultPosition; } + wxSize GetFrameSize(int frame) const { return wxDefaultSize; } + wxAnimationDisposal GetDisposalMethod(int frame) const { return wxANIM_UNSPECIFIED; } + wxColour GetTransparentColour(int frame) const { return wxNullColour; } wxColour GetBackgroundColour() const { return wxNullColour; } } #endif @@ -174,6 +178,10 @@ public: virtual void Stop(); virtual bool IsPlaying() const; + virtual void SetInactiveBitmap(const wxBitmap &bmp); + wxBitmap GetInactiveBitmap() const; + + %property(InactiveBitmap, GetInactiveBitmap, SetInactiveBitmap); };