imgIContainer

IID:1a6290e6-8285-4e10-963d-d001f8d327b8
Inherits From:nsISupports

GfxIImageContainer interface

This interface is implemented by the following components:


Constants

Animation mode Constants 0 = normal 1 = don't animate 2 = loop once
PRInt16 kNormalAnimMode = 0
PRInt16 kDontAnimMode = 1
PRInt16 kLoopOnceAnimMode = 2

Properties

PRUint16 animationMode

readonly gfxIImageFrame* currentFrame

Get the current frame that would be drawn if the image was to be drawn now

readonly PRInt32 height

The height of the container rectangle.

PRInt32 loopCount

Number of times to loop the image.

readonly PRUint32 numFrames

readonly gfx_format preferredAlphaChannelFormat

readonly PRInt32 width

The width of the container rectangle.


Methods

void appendFrame ( gfxIImageFrame* item ) void clear ( ) void decodingComplete ( ) void endFrameDecode ( PRUint32 framenumber , PRUint32 timeout ) gfxIImageFrame* getFrameAt ( PRUint32 index ) void init ( PRInt32 width , PRInt32 height , imgIContainerObserver* observer ) void removeFrame ( gfxIImageFrame* item ) void resetAnimation ( ) void startAnimation ( ) void stopAnimation ( )

void appendFrame ( gfxIImageFrame* item )

Adds \a item to the end of the list of frames.

Arguments:
item: frame to add.

void clear ( )


void decodingComplete ( )


void endFrameDecode ( PRUint32 framenumber , PRUint32 timeout )

Arguments:
framenumber
timeout

gfxIImageFrame* getFrameAt ( PRUint32 index )

Arguments:
index

void init ( PRInt32 width , PRInt32 height , imgIContainerObserver* observer )

Create a new \a width x \a height sized image container.

Arguments:
width: The width of the container in which all the gfxIImageFrame children will fit.
height: The height of the container in which all the gfxIImageFrame children will fit.
observer: Observer to send animation notifications to.

void removeFrame ( gfxIImageFrame* item )

Arguments:
item

void resetAnimation ( )


void startAnimation ( )


void stopAnimation ( )

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com