webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
WebCore::Shape Class Referenceabstract

#include <Shape.h>

Inheritance diagram for WebCore::Shape:
WebCore::BoxShape WebCore::BoxShape WebCore::PolygonShape WebCore::PolygonShape WebCore::RasterShape WebCore::RasterShape WebCore::RectangleShape WebCore::RectangleShape

Classes

struct  DisplayPaths
 

Public Member Functions

virtual ~Shape ()
 
virtual LayoutRect shapeMarginLogicalBoundingBox () const =0
 
virtual bool isEmpty () const =0
 
virtual LineSegment getExcludedInterval (LayoutUnit logicalTop, LayoutUnit logicalHeight) const =0
 
bool lineOverlapsShapeMarginBounds (LayoutUnit lineTop, LayoutUnit lineHeight) const
 
virtual void buildDisplayPaths (DisplayPaths &) const =0
 
virtual ~Shape ()
 
virtual LayoutRect shapeMarginLogicalBoundingBox () const =0
 
virtual bool isEmpty () const =0
 
virtual LineSegment getExcludedInterval (LayoutUnit logicalTop, LayoutUnit logicalHeight) const =0
 
bool lineOverlapsShapeMarginBounds (LayoutUnit lineTop, LayoutUnit lineHeight) const
 
virtual void buildDisplayPaths (DisplayPaths &) const =0
 

Static Public Member Functions

static std::unique_ptr< ShapecreateShape (const BasicShape &, const LayoutSize &logicalBoxSize, WritingMode, float margin)
 
static std::unique_ptr< ShapecreateRasterShape (Image *, float threshold, const LayoutRect &imageRect, const LayoutRect &marginRect, WritingMode, float margin)
 
static std::unique_ptr< ShapecreateBoxShape (const RoundedRect &, WritingMode, float margin)
 
static std::unique_ptr< ShapecreateShape (const BasicShape &, const LayoutSize &logicalBoxSize, WritingMode, float margin)
 
static std::unique_ptr< ShapecreateRasterShape (Image *, float threshold, const LayoutRect &imageRect, const LayoutRect &marginRect, WritingMode, float margin)
 
static std::unique_ptr< ShapecreateBoxShape (const RoundedRect &, WritingMode, float margin)
 

Protected Member Functions

float shapeMargin () const
 
float shapeMargin () const
 

Constructor & Destructor Documentation

◆ ~Shape() [1/2]

virtual WebCore::Shape::~Shape ( )
inlinevirtual

◆ ~Shape() [2/2]

virtual WebCore::Shape::~Shape ( )
inlinevirtual

Member Function Documentation

◆ buildDisplayPaths() [1/2]

virtual void WebCore::Shape::buildDisplayPaths ( DisplayPaths ) const
pure virtual

◆ buildDisplayPaths() [2/2]

virtual void WebCore::Shape::buildDisplayPaths ( DisplayPaths ) const
pure virtual

◆ createBoxShape() [1/2]

std::unique_ptr< Shape > WebCore::Shape::createBoxShape ( const RoundedRect roundedRect,
WritingMode  writingMode,
float  margin 
)
static

◆ createBoxShape() [2/2]

static std::unique_ptr<Shape> WebCore::Shape::createBoxShape ( const RoundedRect ,
WritingMode  ,
float  margin 
)
static

◆ createRasterShape() [1/2]

static std::unique_ptr<Shape> WebCore::Shape::createRasterShape ( Image ,
float  threshold,
const LayoutRect imageRect,
const LayoutRect marginRect,
WritingMode  ,
float  margin 
)
static

◆ createRasterShape() [2/2]

std::unique_ptr< Shape > WebCore::Shape::createRasterShape ( Image image,
float  threshold,
const LayoutRect imageRect,
const LayoutRect marginRect,
WritingMode  writingMode,
float  margin 
)
static

◆ createShape() [1/2]

std::unique_ptr< Shape > WebCore::Shape::createShape ( const BasicShape basicShape,
const LayoutSize logicalBoxSize,
WritingMode  writingMode,
float  margin 
)
static

◆ createShape() [2/2]

static std::unique_ptr<Shape> WebCore::Shape::createShape ( const BasicShape ,
const LayoutSize logicalBoxSize,
WritingMode  ,
float  margin 
)
static

◆ getExcludedInterval() [1/2]

virtual LineSegment WebCore::Shape::getExcludedInterval ( LayoutUnit  logicalTop,
LayoutUnit  logicalHeight 
) const
pure virtual

◆ getExcludedInterval() [2/2]

virtual LineSegment WebCore::Shape::getExcludedInterval ( LayoutUnit  logicalTop,
LayoutUnit  logicalHeight 
) const
pure virtual

◆ isEmpty() [1/2]

virtual bool WebCore::Shape::isEmpty ( ) const
pure virtual

◆ isEmpty() [2/2]

virtual bool WebCore::Shape::isEmpty ( ) const
pure virtual

◆ lineOverlapsShapeMarginBounds() [1/2]

bool WebCore::Shape::lineOverlapsShapeMarginBounds ( LayoutUnit  lineTop,
LayoutUnit  lineHeight 
) const
inline

◆ lineOverlapsShapeMarginBounds() [2/2]

bool WebCore::Shape::lineOverlapsShapeMarginBounds ( LayoutUnit  lineTop,
LayoutUnit  lineHeight 
) const
inline

◆ shapeMargin() [1/2]

float WebCore::Shape::shapeMargin ( ) const
inlineprotected

◆ shapeMargin() [2/2]

float WebCore::Shape::shapeMargin ( ) const
inlineprotected

◆ shapeMarginLogicalBoundingBox() [1/2]

virtual LayoutRect WebCore::Shape::shapeMarginLogicalBoundingBox ( ) const
pure virtual

◆ shapeMarginLogicalBoundingBox() [2/2]

virtual LayoutRect WebCore::Shape::shapeMarginLogicalBoundingBox ( ) const
pure virtual

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