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

#include <CanvasStyle.h>

Public Member Functions

 CanvasStyle ()
 
 CanvasStyle (Color)
 
 CanvasStyle (float grayLevel, float alpha)
 
 CanvasStyle (float r, float g, float b, float alpha)
 
 CanvasStyle (float c, float m, float y, float k, float alpha)
 
 CanvasStyle (CanvasGradient &)
 
 CanvasStyle (CanvasPattern &)
 
bool isValid () const
 
bool isCurrentColor () const
 
bool hasOverrideAlpha () const
 
float overrideAlpha () const
 
String color () const
 
CanvasGradientcanvasGradient () const
 
CanvasPatterncanvasPattern () const
 
void applyFillColor (GraphicsContext &) const
 
void applyStrokeColor (GraphicsContext &) const
 
bool isEquivalentColor (const CanvasStyle &) const
 
bool isEquivalentRGBA (float red, float green, float blue, float alpha) const
 
bool isEquivalentCMYKA (float cyan, float magenta, float yellow, float black, float alpha) const
 

Static Public Member Functions

static CanvasStyle createFromString (const String &color, Document *=nullptr)
 
static CanvasStyle createFromStringWithOverrideAlpha (const String &color, float alpha)
 

Constructor & Destructor Documentation

◆ CanvasStyle() [1/7]

WebCore::CanvasStyle::CanvasStyle ( )
inline

◆ CanvasStyle() [2/7]

WebCore::CanvasStyle::CanvasStyle ( Color  color)

◆ CanvasStyle() [3/7]

WebCore::CanvasStyle::CanvasStyle ( float  grayLevel,
float  alpha 
)

◆ CanvasStyle() [4/7]

WebCore::CanvasStyle::CanvasStyle ( float  r,
float  g,
float  b,
float  alpha 
)

◆ CanvasStyle() [5/7]

WebCore::CanvasStyle::CanvasStyle ( float  c,
float  m,
float  y,
float  k,
float  alpha 
)

◆ CanvasStyle() [6/7]

WebCore::CanvasStyle::CanvasStyle ( CanvasGradient gradient)

◆ CanvasStyle() [7/7]

WebCore::CanvasStyle::CanvasStyle ( CanvasPattern pattern)

Member Function Documentation

◆ applyFillColor()

void WebCore::CanvasStyle::applyFillColor ( GraphicsContext context) const

◆ applyStrokeColor()

void WebCore::CanvasStyle::applyStrokeColor ( GraphicsContext context) const

◆ canvasGradient()

CanvasGradient * WebCore::CanvasStyle::canvasGradient ( ) const
inline

◆ canvasPattern()

CanvasPattern * WebCore::CanvasStyle::canvasPattern ( ) const
inline

◆ color()

String WebCore::CanvasStyle::color ( ) const
inline

◆ createFromString()

CanvasStyle WebCore::CanvasStyle::createFromString ( const String color,
Document document = nullptr 
)
static

◆ createFromStringWithOverrideAlpha()

CanvasStyle WebCore::CanvasStyle::createFromStringWithOverrideAlpha ( const String color,
float  alpha 
)
static

◆ hasOverrideAlpha()

bool WebCore::CanvasStyle::hasOverrideAlpha ( ) const
inline

◆ isCurrentColor()

bool WebCore::CanvasStyle::isCurrentColor ( ) const
inline

◆ isEquivalentCMYKA()

bool WebCore::CanvasStyle::isEquivalentCMYKA ( float  cyan,
float  magenta,
float  yellow,
float  black,
float  alpha 
) const

◆ isEquivalentColor()

bool WebCore::CanvasStyle::isEquivalentColor ( const CanvasStyle other) const

◆ isEquivalentRGBA()

bool WebCore::CanvasStyle::isEquivalentRGBA ( float  red,
float  green,
float  blue,
float  alpha 
) const

◆ isValid()

bool WebCore::CanvasStyle::isValid ( ) const
inline

◆ overrideAlpha()

float WebCore::CanvasStyle::overrideAlpha ( ) const
inline

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