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

#include <GraphicsContext.h>

Public Types

enum  Change : uint32_t {
  NoChange = 0, StrokeGradientChange = 1 << 1, StrokePatternChange = 1 << 2, FillGradientChange = 1 << 3,
  FillPatternChange = 1 << 4, StrokeThicknessChange = 1 << 5, StrokeColorChange = 1 << 6, StrokeStyleChange = 1 << 7,
  FillColorChange = 1 << 8, FillRuleChange = 1 << 9, ShadowChange = 1 << 10, ShadowColorChange = 1 << 11,
  ShadowsIgnoreTransformsChange = 1 << 12, AlphaChange = 1 << 13, CompositeOperationChange = 1 << 14, BlendModeChange = 1 << 15,
  TextDrawingModeChange = 1 << 16, ShouldAntialiasChange = 1 << 17, ShouldSmoothFontsChange = 1 << 18, ShouldSubpixelQuantizeFontsChange = 1 << 19,
  DrawLuminanceMaskChange = 1 << 20, ImageInterpolationQualityChange = 1 << 21, NoChange = 0, StrokeGradientChange = 1 << 1,
  StrokePatternChange = 1 << 2, FillGradientChange = 1 << 3, FillPatternChange = 1 << 4, StrokeThicknessChange = 1 << 5,
  StrokeColorChange = 1 << 6, StrokeStyleChange = 1 << 7, FillColorChange = 1 << 8, FillRuleChange = 1 << 9,
  ShadowChange = 1 << 10, ShadowColorChange = 1 << 11, ShadowsIgnoreTransformsChange = 1 << 12, AlphaChange = 1 << 13,
  CompositeOperationChange = 1 << 14, BlendModeChange = 1 << 15, TextDrawingModeChange = 1 << 16, ShouldAntialiasChange = 1 << 17,
  ShouldSmoothFontsChange = 1 << 18, ShouldSubpixelQuantizeFontsChange = 1 << 19, DrawLuminanceMaskChange = 1 << 20, ImageInterpolationQualityChange = 1 << 21
}
 
enum  Change : uint32_t {
  NoChange = 0, StrokeGradientChange = 1 << 1, StrokePatternChange = 1 << 2, FillGradientChange = 1 << 3,
  FillPatternChange = 1 << 4, StrokeThicknessChange = 1 << 5, StrokeColorChange = 1 << 6, StrokeStyleChange = 1 << 7,
  FillColorChange = 1 << 8, FillRuleChange = 1 << 9, ShadowChange = 1 << 10, ShadowColorChange = 1 << 11,
  ShadowsIgnoreTransformsChange = 1 << 12, AlphaChange = 1 << 13, CompositeOperationChange = 1 << 14, BlendModeChange = 1 << 15,
  TextDrawingModeChange = 1 << 16, ShouldAntialiasChange = 1 << 17, ShouldSmoothFontsChange = 1 << 18, ShouldSubpixelQuantizeFontsChange = 1 << 19,
  DrawLuminanceMaskChange = 1 << 20, ImageInterpolationQualityChange = 1 << 21, NoChange = 0, StrokeGradientChange = 1 << 1,
  StrokePatternChange = 1 << 2, FillGradientChange = 1 << 3, FillPatternChange = 1 << 4, StrokeThicknessChange = 1 << 5,
  StrokeColorChange = 1 << 6, StrokeStyleChange = 1 << 7, FillColorChange = 1 << 8, FillRuleChange = 1 << 9,
  ShadowChange = 1 << 10, ShadowColorChange = 1 << 11, ShadowsIgnoreTransformsChange = 1 << 12, AlphaChange = 1 << 13,
  CompositeOperationChange = 1 << 14, BlendModeChange = 1 << 15, TextDrawingModeChange = 1 << 16, ShouldAntialiasChange = 1 << 17,
  ShouldSmoothFontsChange = 1 << 18, ShouldSubpixelQuantizeFontsChange = 1 << 19, DrawLuminanceMaskChange = 1 << 20, ImageInterpolationQualityChange = 1 << 21
}
 
typedef uint32_t StateChangeFlags
 
typedef uint32_t StateChangeFlags
 

Public Member Functions

 GraphicsContextState ()
 
 GraphicsContextState ()
 

Public Attributes

RefPtr< GradientstrokeGradient
 
RefPtr< PatternstrokePattern
 
RefPtr< GradientfillGradient
 
RefPtr< PatternfillPattern
 
FloatSize shadowOffset
 
float strokeThickness { 0 }
 
float shadowBlur { 0 }
 
TextDrawingModeFlags textDrawingMode { TextModeFill }
 
Color strokeColor { Color::black }
 
Color fillColor { Color::black }
 
Color shadowColor
 
StrokeStyle strokeStyle { SolidStroke }
 
WindRule fillRule { RULE_NONZERO }
 
float alpha { 1 }
 
CompositeOperator compositeOperator { CompositeSourceOver }
 
BlendMode blendMode { BlendModeNormal }
 
InterpolationQuality imageInterpolationQuality { InterpolationDefault }
 
bool shouldAntialias: 1
 
bool shouldSmoothFonts: 1
 
bool shouldSubpixelQuantizeFonts: 1
 
bool shadowsIgnoreTransforms: 1
 
bool drawLuminanceMask: 1
 

Member Typedef Documentation

◆ StateChangeFlags [1/2]

◆ StateChangeFlags [2/2]

Member Enumeration Documentation

◆ Change [1/2]

Enumerator
NoChange 
StrokeGradientChange 
StrokePatternChange 
FillGradientChange 
FillPatternChange 
StrokeThicknessChange 
StrokeColorChange 
StrokeStyleChange 
FillColorChange 
FillRuleChange 
ShadowChange 
ShadowColorChange 
ShadowsIgnoreTransformsChange 
AlphaChange 
CompositeOperationChange 
BlendModeChange 
TextDrawingModeChange 
ShouldAntialiasChange 
ShouldSmoothFontsChange 
ShouldSubpixelQuantizeFontsChange 
DrawLuminanceMaskChange 
ImageInterpolationQualityChange 
NoChange 
StrokeGradientChange 
StrokePatternChange 
FillGradientChange 
FillPatternChange 
StrokeThicknessChange 
StrokeColorChange 
StrokeStyleChange 
FillColorChange 
FillRuleChange 
ShadowChange 
ShadowColorChange 
ShadowsIgnoreTransformsChange 
AlphaChange 
CompositeOperationChange 
BlendModeChange 
TextDrawingModeChange 
ShouldAntialiasChange 
ShouldSmoothFontsChange 
ShouldSubpixelQuantizeFontsChange 
DrawLuminanceMaskChange 
ImageInterpolationQualityChange 

◆ Change [2/2]

Enumerator
NoChange 
StrokeGradientChange 
StrokePatternChange 
FillGradientChange 
FillPatternChange 
StrokeThicknessChange 
StrokeColorChange 
StrokeStyleChange 
FillColorChange 
FillRuleChange 
ShadowChange 
ShadowColorChange 
ShadowsIgnoreTransformsChange 
AlphaChange 
CompositeOperationChange 
BlendModeChange 
TextDrawingModeChange 
ShouldAntialiasChange 
ShouldSmoothFontsChange 
ShouldSubpixelQuantizeFontsChange 
DrawLuminanceMaskChange 
ImageInterpolationQualityChange 
NoChange 
StrokeGradientChange 
StrokePatternChange 
FillGradientChange 
FillPatternChange 
StrokeThicknessChange 
StrokeColorChange 
StrokeStyleChange 
FillColorChange 
FillRuleChange 
ShadowChange 
ShadowColorChange 
ShadowsIgnoreTransformsChange 
AlphaChange 
CompositeOperationChange 
BlendModeChange 
TextDrawingModeChange 
ShouldAntialiasChange 
ShouldSmoothFontsChange 
ShouldSubpixelQuantizeFontsChange 
DrawLuminanceMaskChange 
ImageInterpolationQualityChange 

Constructor & Destructor Documentation

◆ GraphicsContextState() [1/2]

WebCore::GraphicsContextState::GraphicsContextState ( )
inline

◆ GraphicsContextState() [2/2]

WebCore::GraphicsContextState::GraphicsContextState ( )
inline

Member Data Documentation

◆ alpha

float WebCore::GraphicsContextState::alpha { 1 }

◆ blendMode

BlendMode WebCore::GraphicsContextState::blendMode { BlendModeNormal }

◆ compositeOperator

CompositeOperator WebCore::GraphicsContextState::compositeOperator { CompositeSourceOver }

◆ drawLuminanceMask

bool WebCore::GraphicsContextState::drawLuminanceMask

◆ fillColor

Color WebCore::GraphicsContextState::fillColor { Color::black }

◆ fillGradient

RefPtr< Gradient > WebCore::GraphicsContextState::fillGradient

◆ fillPattern

RefPtr< Pattern > WebCore::GraphicsContextState::fillPattern

◆ fillRule

WindRule WebCore::GraphicsContextState::fillRule { RULE_NONZERO }

◆ imageInterpolationQuality

InterpolationQuality WebCore::GraphicsContextState::imageInterpolationQuality { InterpolationDefault }

◆ shadowBlur

float WebCore::GraphicsContextState::shadowBlur { 0 }

◆ shadowColor

Color WebCore::GraphicsContextState::shadowColor

◆ shadowOffset

FloatSize WebCore::GraphicsContextState::shadowOffset

◆ shadowsIgnoreTransforms

bool WebCore::GraphicsContextState::shadowsIgnoreTransforms

◆ shouldAntialias

bool WebCore::GraphicsContextState::shouldAntialias

◆ shouldSmoothFonts

bool WebCore::GraphicsContextState::shouldSmoothFonts

◆ shouldSubpixelQuantizeFonts

bool WebCore::GraphicsContextState::shouldSubpixelQuantizeFonts

◆ strokeColor

Color WebCore::GraphicsContextState::strokeColor { Color::black }

◆ strokeGradient

RefPtr< Gradient > WebCore::GraphicsContextState::strokeGradient

◆ strokePattern

RefPtr< Pattern > WebCore::GraphicsContextState::strokePattern

◆ strokeStyle

StrokeStyle WebCore::GraphicsContextState::strokeStyle { SolidStroke }

◆ strokeThickness

float WebCore::GraphicsContextState::strokeThickness { 0 }

◆ textDrawingMode

TextDrawingModeFlags WebCore::GraphicsContextState::textDrawingMode { TextModeFill }

The documentation for this struct was generated from the following file: