Mercurial > projects > dwt-linux
view dwt/internal/mozilla/imgIContainer.d @ 341:942da4b6558a
Ongoing fixup for compile
author | John Reimer <terminal.node@gmail.com> |
---|---|
date | Sun, 26 Oct 2008 21:19:51 -0700 |
parents | dd63eb078d7a |
children | 9a4d7706df52 |
line wrap: on
line source
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); }