* Added bindings for Gecko 11, but they are not used by default due to gecko-bug 720682

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2364 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
loesje_
2012-03-20 09:50:09 +00:00
parent 3b25f366e0
commit 1d62d1e9f3
24 changed files with 1057 additions and 6 deletions

View File

@@ -0,0 +1,46 @@
type
imgIContainer = interface(nsISupports)
['{8c82b89f-f90c-4a31-a544-6e1f759673d4}']
function Getwidth(): PRInt32; safecall;
property width : PRInt32 read Getwidth;
function Getheight(): PRInt32; safecall;
property height : PRInt32 read Getheight;
function Gettype(): idlushort; safecall;
property atype : idlushort read Gettype;
{ function GetType() : PRUint16; safecall;
function Getanimated(): longbool; safecall;
property animated : longbool read Getanimated;
function GetcurrentFrameIsOpaque(): longbool; safecall;
property currentFrameIsOpaque : longbool read GetcurrentFrameIsOpaque;
function getFrame(aWhichFrame: PRUint32; aFlags: PRUint32) : gfxASurface; safecall;
function getImageContainer(aManager: LayerManager) : ImageContainer; safecall;
function copyFrame(aWhichFrame: PRUint32; aFlags: PRUint32) : gfxImageSurface; safecall;
function extractFrame(aWhichFrame: PRUint32; aRect: nsIntRect; aFlags: PRUint32) : imgIContainer; safecall;
procedure draw(aContext: gfxContext; aFilter: gfxGraphicsFilter; aUserSpaceToImageSpace: gfxMatrix; aFill: gfxRect; aSubimage: nsIntRect; aViewportSize: nsIntSize; aFlags: PRUint32); safecall;
function GetRootLayoutFrame() : nsIFrame; safecall;
procedure requestDecode(); safecall;
procedure lockImage(); safecall;
procedure unlockImage(); safecall;
procedure requestRefresh(aTime: TimeStamp); safecall;
function GetanimationMode(): idlushort; safecall;
procedure SetanimationMode(aanimationMode: idlushort); safecall;
property animationMode : idlushort read GetanimationMode write SetanimationMode;
procedure resetAnimation(); safecall;
}
end;
const
imgIContainer_TYPE_RASTER=0;
imgIContainer_TYPE_VECTOR=1;
imgIContainer_FLAG_NONE=$0;
imgIContainer_FLAG_SYNC_DECODE=$1;
imgIContainer_FLAG_DECODE_NO_PREMULTIPLY_ALPHA=$2;
imgIContainer_FLAG_DECODE_NO_COLORSPACE_CONVERSION=$4;
imgIContainer_FRAME_FIRST=0;
imgIContainer_FRAME_CURRENT=1;
imgIContainer_FRAME_MAX_VALUE=1;
imgIContainer_kNormalAnimMode=0;
imgIContainer_kDontAnimMode=1;
imgIContainer_kLoopOnceAnimMode=2;