Mercurial > projects > dwt-win
comparison dwt/internal/mozilla/gfxIImageFrame.d @ 327:b0d7eb5bd76c
Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
author | John Reimer <terminal.node@gmail.com> |
---|---|
date | Fri, 02 Jan 2009 17:45:10 -0800 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
326:e4d29367b1fa | 327:b0d7eb5bd76c |
---|---|
1 module dwt.internal.mozilla.gfxIImageFrame; | |
2 | |
3 import dwt.internal.mozilla.Common; | |
4 import dwt.internal.mozilla.nsID; | |
5 import dwt.internal.mozilla.nsISupports; | |
6 | |
7 const char[] GFXIIMAGEFRAME_IID_STR = "f6d00ee7-defc-4101-b2dc-e72cf4c37c3c"; | |
8 | |
9 const nsIID GFXIIMAGEFRAME_IID= | |
10 {0xf6d00ee7, 0xdefc, 0x4101, | |
11 [ 0xb2, 0xdc, 0xe7, 0x2c, 0xf4, 0xc3, 0x7c, 0x3c ]}; | |
12 | |
13 interface gfxIImageFrame : nsISupports { | |
14 | |
15 | |
16 static const char[] IID_STR = GFXIIMAGEFRAME_IID_STR; | |
17 static const nsIID IID = GFXIIMAGEFRAME_IID; | |
18 | |
19 extern(System): | |
20 | |
21 nsresult Init(PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight, gfx_format aFormat, gfx_depth aDepth); | |
22 nsresult GetMutable(PRBool *aMutable); | |
23 nsresult SetMutable(PRBool aMutable); | |
24 nsresult GetX(PRInt32 *aX); | |
25 nsresult GetY(PRInt32 *aY); | |
26 nsresult GetWidth(PRInt32 *aWidth); | |
27 nsresult GetHeight(PRInt32 *aHeight); | |
28 nsresult GetRect(nsIntRect * rect); | |
29 nsresult GetFormat(gfx_format *aFormat); | |
30 nsresult GetNeedsBackground(PRBool *aNeedsBackground); | |
31 nsresult GetImageBytesPerRow(PRUint32 *aImageBytesPerRow); | |
32 nsresult GetImageDataLength(PRUint32 *aImageDataLength); | |
33 nsresult GetImageData(PRUint8 **bits, PRUint32 *length); | |
34 nsresult SetImageData(PRUint8 *data, PRUint32 length, PRInt32 offset); | |
35 nsresult LockImageData(); | |
36 nsresult UnlockImageData(); | |
37 nsresult GetAlphaBytesPerRow(PRUint32 *aAlphaBytesPerRow); | |
38 nsresult GetAlphaDataLength(PRUint32 *aAlphaDataLength); | |
39 nsresult GetAlphaData(PRUint8 **bits, PRUint32 *length); | |
40 nsresult SetAlphaData(PRUint8 *data, PRUint32 length, PRInt32 offset); | |
41 nsresult LockAlphaData(); | |
42 nsresult UnlockAlphaData(); | |
43 nsresult DrawTo(gfxIImageFrame aDst, PRInt32 aDX, PRInt32 aDY, PRInt32 aDWidth, PRInt32 aDHeight); | |
44 nsresult GetTimeout(PRInt32 *aTimeout); | |
45 nsresult SetTimeout(PRInt32 aTimeout); | |
46 nsresult GetFrameDisposalMethod(PRInt32 *aFrameDisposalMethod); | |
47 nsresult SetFrameDisposalMethod(PRInt32 aFrameDisposalMethod); | |
48 nsresult GetBackgroundColor(gfx_color *aBackgroundColor); | |
49 nsresult SetBackgroundColor(gfx_color aBackgroundColor); | |
50 | |
51 } | |
52 |