WebCore::Image Class Reference
#include <Image.h>
List of all members.
|
Public Types |
enum | TileRule { StretchTile,
RoundTile,
RepeatTile
} |
Public Member Functions |
SharedBuffer * | data () |
virtual bool | dataChanged (bool allDataReceived) |
virtual unsigned | decodedSize () const |
virtual void | destroyDecodedData (bool incremental=false) |
virtual bool | hasRelativeHeight () const |
virtual bool | hasRelativeWidth () const |
int | height () const |
| Image (ImageObserver *=0) |
ImageObserver * | imageObserver () const |
bool | isNull () const |
virtual NativeImagePtr | nativeImageForCurrentFrame () |
IntRect | rect () const |
virtual void | resetAnimation () |
virtual void | setContainerSize (const IntSize &) |
bool | setData (PassRefPtr< SharedBuffer > data, bool allDataReceived) |
virtual IntSize | size () const =0 |
virtual void | stopAnimation () |
virtual bool | usesContainerSize () const |
int | width () const |
virtual | ~Image () |
Static Public Member Functions |
static Image * | loadPlatformResource (const char *name) |
static bool | supportsType (const String &) |
Protected Member Functions |
virtual void | draw (GraphicsContext *, const FloatRect &dstRect, const FloatRect &srcRect, CompositeOperator)=0 |
virtual void | drawPattern (GraphicsContext *, const FloatRect &srcRect, const AffineTransform &patternTransform, const FloatPoint &phase, CompositeOperator, const FloatRect &destRect) |
void | drawTiled (GraphicsContext *, const FloatRect &dstRect, const FloatRect &srcRect, TileRule hRule, TileRule vRule, CompositeOperator) |
void | drawTiled (GraphicsContext *, const FloatRect &dstRect, const FloatPoint &srcPoint, const FloatSize &tileSize, CompositeOperator) |
virtual bool | mayFillWithSolidColor () const |
virtual Color | solidColor () const |
virtual void | startAnimation () |
Static Protected Member Functions |
static void | fillWithSolidColor (GraphicsContext *ctxt, const FloatRect &dstRect, const Color &color, CompositeOperator op) |
Protected Attributes |
RefPtr< SharedBuffer > | m_data |
ImageObserver * | m_imageObserver |
Detailed Description
Definition at line 72 of file Image.h.
Member Enumeration Documentation
- Enumerator:
-
StretchTile |
|
RoundTile |
|
RepeatTile |
|
Definition at line 114 of file Image.h.
Constructor & Destructor Documentation
WebCore::Image::Image |
( |
ImageObserver * |
observer = 0 |
) |
|
WebCore::Image::~Image |
( |
|
) |
[virtual] |
Member Function Documentation
virtual bool WebCore::Image::dataChanged |
( |
bool |
allDataReceived |
) |
[inline, virtual] |
virtual unsigned WebCore::Image::decodedSize |
( |
|
) |
const [inline, virtual] |
virtual void WebCore::Image::destroyDecodedData |
( |
bool |
incremental = false |
) |
[inline, virtual] |
virtual bool WebCore::Image::hasRelativeHeight |
( |
|
) |
const [inline, virtual] |
virtual bool WebCore::Image::hasRelativeWidth |
( |
|
) |
const [inline, virtual] |
int WebCore::Image::height |
( |
|
) |
const |
ImageObserver* WebCore::Image::imageObserver |
( |
|
) |
const [inline] |
bool WebCore::Image::isNull |
( |
|
) |
const |
static Image* WebCore::Image::loadPlatformResource |
( |
const char * |
name |
) |
[static] |
virtual bool WebCore::Image::mayFillWithSolidColor |
( |
|
) |
const [inline, protected, virtual] |
virtual NativeImagePtr WebCore::Image::nativeImageForCurrentFrame |
( |
|
) |
[inline, virtual] |
IntRect WebCore::Image::rect |
( |
|
) |
const |
virtual void WebCore::Image::resetAnimation |
( |
|
) |
[inline, virtual] |
virtual void WebCore::Image::setContainerSize |
( |
const IntSize & |
|
) |
[inline, virtual] |
bool WebCore::Image::setData |
( |
PassRefPtr< SharedBuffer > |
data, |
|
|
bool |
allDataReceived | |
|
) |
| | |
virtual IntSize WebCore::Image::size |
( |
|
) |
const [pure virtual] |
virtual Color WebCore::Image::solidColor |
( |
|
) |
const [inline, protected, virtual] |
virtual void WebCore::Image::startAnimation |
( |
|
) |
[inline, protected, virtual] |
virtual void WebCore::Image::stopAnimation |
( |
|
) |
[inline, virtual] |
bool WebCore::Image::supportsType |
( |
const String & |
type |
) |
[static] |
virtual bool WebCore::Image::usesContainerSize |
( |
|
) |
const [inline, virtual] |
int WebCore::Image::width |
( |
|
) |
const |
Member Data Documentation
The documentation for this class was generated from the following files: