webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Types | Public Member Functions | List of all members
WebCore::ShadowBlur Class Reference

#include <ShadowBlur.h>

Public Types

enum  ShadowType { NoShadow, SolidShadow, BlurShadow }
 

Public Member Functions

 ShadowBlur (const FloatSize &radius, const FloatSize &offset, const Color &)
 
 ShadowBlur (const GraphicsContextState &)
 
 ShadowBlur ()
 
void setShadowValues (const FloatSize &, const FloatSize &, const Color &, bool ignoreTransforms=false)
 
void setShadowsIgnoreTransforms (bool ignoreTransforms)
 
bool shadowsIgnoreTransforms () const
 
GraphicsContextbeginShadowLayer (GraphicsContext &, const FloatRect &layerArea)
 
void endShadowLayer (GraphicsContext &)
 
void drawRectShadow (GraphicsContext &, const FloatRoundedRect &)
 
void drawInsetShadow (GraphicsContext &, const FloatRect &, const FloatRoundedRect &holeRect)
 
void blurLayerImage (unsigned char *, const IntSize &, int stride)
 
void clear ()
 
ShadowType type () const
 

Member Enumeration Documentation

◆ ShadowType

Enumerator
NoShadow 
SolidShadow 
BlurShadow 

Constructor & Destructor Documentation

◆ ShadowBlur() [1/3]

WebCore::ShadowBlur::ShadowBlur ( const FloatSize radius,
const FloatSize offset,
const Color color 
)

◆ ShadowBlur() [2/3]

WebCore::ShadowBlur::ShadowBlur ( const GraphicsContextState state)

◆ ShadowBlur() [3/3]

WebCore::ShadowBlur::ShadowBlur ( )

Member Function Documentation

◆ beginShadowLayer()

GraphicsContext * WebCore::ShadowBlur::beginShadowLayer ( GraphicsContext context,
const FloatRect layerArea 
)

◆ blurLayerImage()

void WebCore::ShadowBlur::blurLayerImage ( unsigned char *  imageData,
const IntSize size,
int  stride 
)

◆ clear()

void WebCore::ShadowBlur::clear ( )

◆ drawInsetShadow()

void WebCore::ShadowBlur::drawInsetShadow ( GraphicsContext graphicsContext,
const FloatRect rect,
const FloatRoundedRect holeRect 
)

◆ drawRectShadow()

void WebCore::ShadowBlur::drawRectShadow ( GraphicsContext graphicsContext,
const FloatRoundedRect shadowedRect 
)

◆ endShadowLayer()

void WebCore::ShadowBlur::endShadowLayer ( GraphicsContext context)

◆ setShadowsIgnoreTransforms()

void WebCore::ShadowBlur::setShadowsIgnoreTransforms ( bool  ignoreTransforms)
inline

◆ setShadowValues()

void WebCore::ShadowBlur::setShadowValues ( const FloatSize radius,
const FloatSize offset,
const Color color,
bool  ignoreTransforms = false 
)

◆ shadowsIgnoreTransforms()

bool WebCore::ShadowBlur::shadowsIgnoreTransforms ( ) const
inline

◆ type()

ShadowType WebCore::ShadowBlur::type ( ) const
inline

The documentation for this class was generated from the following files: