Lines Matching defs:CanvasStyle
30 #include "CanvasStyle.h"
94 CanvasStyle::CanvasStyle(Type type, float overrideAlpha)
100 CanvasStyle::CanvasStyle(RGBA32 rgba)
106 CanvasStyle::CanvasStyle(float grayLevel, float alpha)
112 CanvasStyle::CanvasStyle(float r, float g, float b, float a)
118 CanvasStyle::CanvasStyle(float c, float m, float y, float k, float a)
125 CanvasStyle::CanvasStyle(PassRefPtr<CanvasGradient> gradient)
131 CanvasStyle::CanvasStyle(PassRefPtr<CanvasPattern> pattern)
137 PassRefPtr<CanvasStyle> CanvasStyle::createFromString(const String& color, Document* document)
144 return adoptRef(new CanvasStyle(rgba));
146 return adoptRef(new CanvasStyle(CurrentColor));
155 PassRefPtr<CanvasStyle> CanvasStyle::createFromStringWithOverrideAlpha(const String& color, float alpha)
161 return adoptRef(new CanvasStyle(colorWithOverrideAlpha(rgba, alpha)));
163 return adoptRef(new CanvasStyle(CurrentColorWithOverrideAlpha, alpha));
172 PassRefPtr<CanvasStyle> CanvasStyle::createFromGradient(PassRefPtr<CanvasGradient> gradient)
176 return adoptRef(new CanvasStyle(gradient));
178 PassRefPtr<CanvasStyle> CanvasStyle::createFromPattern(PassRefPtr<CanvasPattern> pattern)
182 return adoptRef(new CanvasStyle(pattern));
185 bool CanvasStyle::isEquivalentColor(const CanvasStyle& other) const
210 bool CanvasStyle::isEquivalentRGBA(float r, float g, float b, float a) const
218 bool CanvasStyle::isEquivalentCMYKA(float c, float m, float y, float k, float a) const
230 void CanvasStyle::applyStrokeColor(GraphicsContext* context)
267 void CanvasStyle::applyFillColor(GraphicsContext* context)