/* *ThisSourceCodeFormissubjecttothetermsoftheMozillaPublic *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include"nsISupports.idl"
interface imgIRequest;
%{C++ #include"nsRect.h"
%}
[ptr] native nsIntRect(nsIntRect);
[scriptable, builtinclass, uuid(03da5641-a333-454a-a859-036d0bb683b7)]
interface imgINotificationObserver : nsISupports
{ // GetWidth() and GetHeight() can now be used to retrieve the size of the // image. constlong SIZE_AVAILABLE = 1;
// A region of the image (indicated by the |aRect| argument to |notify|) has // changed, and needs to be redrawn. This is triggered both for incremental // rendering as the image gets decoded and for changes due to animation. constlong FRAME_UPDATE = 2;
// The first frame of the image is now decoded and ready to draw. constlong FRAME_COMPLETE = 3;
// The entire image has been loaded. That doesn't mean that it has been // decoded, but it does mean that imgIContainer::Draw is guaranteed to succeed // (modulo decode errors, at least) if you specify FLAG_SYNC_DECODE. constlong LOAD_COMPLETE = 4;
// The entire image has been decoded. constlong DECODE_COMPLETE = 5;
// The decoded version of the image has been discarded. Content should never // change as a result of this notification - discarding is an implementation // detail. This notification should normally only be observed by tests. constlong DISCARD = 6;
// The image was drawn without being locked. This notification is part of the // image locking mechanism that prevents visible images from being discarded; // generally only image locking code needs to observe it. constlong UNLOCKED_DRAW = 7;
// The image is animated. constlong IS_ANIMATED = 8;
// The image is transparent. constlong HAS_TRANSPARENCY = 9;
[noscript, notxpcom, nostdcall] void notify(in imgIRequest aProxy, in long aType,
[const] in nsIntRect aRect);
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.