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

#include <GraphicsContextPlatformPrivateCG.h>

Public Types

enum  Direct2DLayerType { AxisAlignedClip, LayerClip }
 

Public Member Functions

 GraphicsContextPlatformPrivate (CGContextRef cgContext, GraphicsContextCGFlags flags=0)
 
 GraphicsContextPlatformPrivate (ID2D1RenderTarget *)
 
 ~GraphicsContextPlatformPrivate ()
 
void beginTransparencyLayer (float opacity)
 
void endTransparencyLayer ()
 
void clip (const FloatRect &)
 
void clip (const Path &)
 
void clip (ID2D1Geometry *)
 
void beginDraw ()
 
void endDraw ()
 
void flush ()
 
void save ()
 
void scale (const FloatSize &)
 
void restore ()
 
void rotate (float)
 
void translate (float, float)
 
void concatCTM (const AffineTransform &)
 
void setCTM (const AffineTransform &)
 
void setLineCap (LineCap)
 
void setLineJoin (LineJoin)
 
void setStrokeStyle (StrokeStyle)
 
void setMiterLimit (float)
 
void setDashOffset (float)
 
void setPatternWidth (float)
 
void setPatternOffset (float)
 
void setStrokeThickness (float)
 
void setDashes (const DashArray &)
 
void setAlpha (float)
 
ID2D1RenderTarget * renderTarget ()
 
ID2D1Layer * clipLayer () const
 
ID2D1StrokeStyle * strokeStyle ()
 
COMPtr< ID2D1SolidColorBrush > brushWithColor (const D2D1_COLOR_F &)
 
float currentGlobalAlpha () const
 

Public Attributes

RetainPtr< CGContextRefm_cgContext
 
bool m_userToDeviceTransformKnownToBeIdentity
 
GraphicsContextCGFlags m_contextFlags
 
HDC m_hdc { nullptr }
 
D2D1_BLEND_MODE m_blendMode { D2D1_BLEND_MODE_MULTIPLY }
 
D2D1_COMPOSITE_MODE m_compositeMode { D2D1_COMPOSITE_MODE_SOURCE_OVER }
 
bool m_shouldIncludeChildWindows { false }
 
bool m_strokeSyleIsDirty { false }
 
COMPtr< ID2D1SolidColorBrush > m_solidStrokeBrush
 
COMPtr< ID2D1SolidColorBrush > m_solidFillBrush
 
COMPtr< ID2D1BitmapBrush > m_patternStrokeBrush
 
COMPtr< ID2D1BitmapBrush > m_patternFillBrush
 

Member Enumeration Documentation

◆ Direct2DLayerType

Enumerator
AxisAlignedClip 
LayerClip 

Constructor & Destructor Documentation

◆ GraphicsContextPlatformPrivate() [1/2]

WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate ( CGContextRef  cgContext,
GraphicsContextCGFlags  flags = 0 
)
inline

◆ GraphicsContextPlatformPrivate() [2/2]

WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate ( ID2D1RenderTarget *  renderTarget)

◆ ~GraphicsContextPlatformPrivate()

WebCore::GraphicsContextPlatformPrivate::~GraphicsContextPlatformPrivate ( )

Member Function Documentation

◆ beginDraw()

void WebCore::GraphicsContextPlatformPrivate::beginDraw ( )

◆ beginTransparencyLayer()

void WebCore::GraphicsContextPlatformPrivate::beginTransparencyLayer ( float  opacity)

◆ brushWithColor()

COMPtr< ID2D1SolidColorBrush > WebCore::GraphicsContextPlatformPrivate::brushWithColor ( const D2D1_COLOR_F &  color)

◆ clip() [1/3]

void WebCore::GraphicsContextPlatformPrivate::clip ( const FloatRect rect)

◆ clip() [2/3]

void WebCore::GraphicsContextPlatformPrivate::clip ( const Path path)

◆ clip() [3/3]

void WebCore::GraphicsContextPlatformPrivate::clip ( ID2D1Geometry *  path)

◆ clipLayer()

ID2D1Layer* WebCore::GraphicsContextPlatformPrivate::clipLayer ( ) const
inline

◆ concatCTM()

void WebCore::GraphicsContextPlatformPrivate::concatCTM ( const AffineTransform affineTransform)

◆ currentGlobalAlpha()

float WebCore::GraphicsContextPlatformPrivate::currentGlobalAlpha ( ) const

◆ endDraw()

void WebCore::GraphicsContextPlatformPrivate::endDraw ( )

◆ endTransparencyLayer()

void WebCore::GraphicsContextPlatformPrivate::endTransparencyLayer ( )

◆ flush()

void WebCore::GraphicsContextPlatformPrivate::flush ( )

◆ renderTarget()

ID2D1RenderTarget * WebCore::GraphicsContextPlatformPrivate::renderTarget ( )

◆ restore()

void WebCore::GraphicsContextPlatformPrivate::restore ( )

◆ rotate()

void WebCore::GraphicsContextPlatformPrivate::rotate ( float  angle)

◆ save()

void WebCore::GraphicsContextPlatformPrivate::save ( )

◆ scale()

void WebCore::GraphicsContextPlatformPrivate::scale ( const FloatSize size)

◆ setAlpha()

void WebCore::GraphicsContextPlatformPrivate::setAlpha ( float  alpha)

◆ setCTM()

void WebCore::GraphicsContextPlatformPrivate::setCTM ( const AffineTransform transform)

◆ setDashes()

void WebCore::GraphicsContextPlatformPrivate::setDashes ( const DashArray dashes)

◆ setDashOffset()

void WebCore::GraphicsContextPlatformPrivate::setDashOffset ( float  dashOffset)

◆ setLineCap()

void WebCore::GraphicsContextPlatformPrivate::setLineCap ( LineCap  cap)

◆ setLineJoin()

void WebCore::GraphicsContextPlatformPrivate::setLineJoin ( LineJoin  join)

◆ setMiterLimit()

void WebCore::GraphicsContextPlatformPrivate::setMiterLimit ( float  miterLimit)

◆ setPatternOffset()

void WebCore::GraphicsContextPlatformPrivate::setPatternOffset ( float  patternOffset)

◆ setPatternWidth()

void WebCore::GraphicsContextPlatformPrivate::setPatternWidth ( float  patternWidth)

◆ setStrokeStyle()

void WebCore::GraphicsContextPlatformPrivate::setStrokeStyle ( StrokeStyle  strokeStyle)

◆ setStrokeThickness()

void WebCore::GraphicsContextPlatformPrivate::setStrokeThickness ( float  thickness)

◆ strokeStyle()

ID2D1StrokeStyle * WebCore::GraphicsContextPlatformPrivate::strokeStyle ( )

◆ translate()

void WebCore::GraphicsContextPlatformPrivate::translate ( float  x,
float  y 
)

Member Data Documentation

◆ m_blendMode

D2D1_BLEND_MODE WebCore::GraphicsContextPlatformPrivate::m_blendMode { D2D1_BLEND_MODE_MULTIPLY }

◆ m_cgContext

RetainPtr<CGContextRef> WebCore::GraphicsContextPlatformPrivate::m_cgContext

◆ m_compositeMode

D2D1_COMPOSITE_MODE WebCore::GraphicsContextPlatformPrivate::m_compositeMode { D2D1_COMPOSITE_MODE_SOURCE_OVER }

◆ m_contextFlags

GraphicsContextCGFlags WebCore::GraphicsContextPlatformPrivate::m_contextFlags

◆ m_hdc

HDC WebCore::GraphicsContextPlatformPrivate::m_hdc { nullptr }

◆ m_patternFillBrush

COMPtr<ID2D1BitmapBrush> WebCore::GraphicsContextPlatformPrivate::m_patternFillBrush

◆ m_patternStrokeBrush

COMPtr<ID2D1BitmapBrush> WebCore::GraphicsContextPlatformPrivate::m_patternStrokeBrush

◆ m_shouldIncludeChildWindows

bool WebCore::GraphicsContextPlatformPrivate::m_shouldIncludeChildWindows { false }

◆ m_solidFillBrush

COMPtr<ID2D1SolidColorBrush> WebCore::GraphicsContextPlatformPrivate::m_solidFillBrush

◆ m_solidStrokeBrush

COMPtr<ID2D1SolidColorBrush> WebCore::GraphicsContextPlatformPrivate::m_solidStrokeBrush

◆ m_strokeSyleIsDirty

bool WebCore::GraphicsContextPlatformPrivate::m_strokeSyleIsDirty { false }

◆ m_userToDeviceTransformKnownToBeIdentity

bool WebCore::GraphicsContextPlatformPrivate::m_userToDeviceTransformKnownToBeIdentity

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