Mercurial > projects > dwt-linux
diff dwt/internal/mozilla.old/imgIContainer.d @ 288:4ee8c4237614
old branches... commit by mistake
author | John Reimer<terminal.node@gmail.com> |
---|---|
date | Tue, 05 Aug 2008 18:00:50 -0700 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dwt/internal/mozilla.old/imgIContainer.d Tue Aug 05 18:00:50 2008 -0700 @@ -0,0 +1,49 @@ +module dwt.internal.mozilla.imgIContainer; + +import dwt.internal.mozilla.Common; +import dwt.internal.mozilla.nsID; +import dwt.internal.mozilla.nsISupports; + +import dwt.internal.mozilla.gfxIImageFrame; +import dwt.internal.mozilla.imgIContainerObserver; + +const char[] IMGICONTAINER_IID_STR = "1a6290e6-8285-4e10-963d-d001f8d327b8"; + +const nsIID IMGICONTAINER_IID= + {0x1a6290e6, 0x8285, 0x4e10, + [ 0x96, 0x3d, 0xd0, 0x01, 0xf8, 0xd3, 0x27, 0xb8 ]}; + +extern(System) + +interface imgIContainer : nsISupports { + + static const char[] IID_STR = IMGICONTAINER_IID_STR; + static const nsIID IID = IMGICONTAINER_IID; + + nsresult Init(PRInt32 aWidth, PRInt32 aHeight, imgIContainerObserver aObserver); + nsresult GetPreferredAlphaChannelFormat(gfx_format *aPreferredAlphaChannelFormat); + nsresult GetWidth(PRInt32 *aWidth); + nsresult GetHeight(PRInt32 *aHeight); + nsresult GetCurrentFrame(gfxIImageFrame *aCurrentFrame); + nsresult GetNumFrames(PRUint32 *aNumFrames); + + enum { kNormalAnimMode = 0 }; + enum { kDontAnimMode = 1 }; + enum { kLoopOnceAnimMode = 2 }; + + nsresult GetAnimationMode(PRUint16 *aAnimationMode); + nsresult SetAnimationMode(PRUint16 aAnimationMode); + nsresult GetFrameAt(PRUint32 index, gfxIImageFrame *_retval); + nsresult AppendFrame(gfxIImageFrame item); + nsresult RemoveFrame(gfxIImageFrame item); + nsresult EndFrameDecode(PRUint32 framenumber, PRUint32 timeout); + nsresult DecodingComplete(); + nsresult Clear(); + nsresult StartAnimation(); + nsresult StopAnimation(); + nsresult ResetAnimation(); + nsresult GetLoopCount(PRInt32 *aLoopCount); + nsresult SetLoopCount(PRInt32 aLoopCount); + +} +