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

#include <Region.h>

Classes

struct  Span
 

Public Member Functions

WEBCORE_EXPORT Region ()
 
WEBCORE_EXPORT Region (const IntRect &)
 
IntRect bounds () const
 
bool isEmpty () const
 
bool isRect () const
 
WEBCORE_EXPORT Vector< IntRectrects () const
 
WEBCORE_EXPORT void unite (const Region &)
 
WEBCORE_EXPORT void intersect (const Region &)
 
WEBCORE_EXPORT void subtract (const Region &)
 
WEBCORE_EXPORT void translate (const IntSize &)
 
WEBCORE_EXPORT bool contains (const Region &) const
 
bool contains (const IntPoint &) const
 
bool intersects (const Region &) const
 
WEBCORE_EXPORT unsigned totalArea () const
 
unsigned gridSize () const
 
void dump () const
 
bool isValid () const
 
const Vector< int, 32 > & shapeSegments () const
 
const Vector< Span, 16 > & shapeSpans () const
 
void setShapeSegments (const Vector< int > &segments)
 
void setShapeSpans (const Vector< Span > &spans)
 
WEBCORE_EXPORT void updateBoundsFromShape ()
 
WEBCORE_EXPORT Region ()
 
WEBCORE_EXPORT Region (const IntRect &)
 
IntRect bounds () const
 
bool isEmpty () const
 
bool isRect () const
 
WEBCORE_EXPORT Vector< IntRectrects () const
 
WEBCORE_EXPORT void unite (const Region &)
 
WEBCORE_EXPORT void intersect (const Region &)
 
WEBCORE_EXPORT void subtract (const Region &)
 
WEBCORE_EXPORT void translate (const IntSize &)
 
WEBCORE_EXPORT bool contains (const Region &) const
 
bool contains (const IntPoint &) const
 
bool intersects (const Region &) const
 
WEBCORE_EXPORT unsigned totalArea () const
 
unsigned gridSize () const
 
void dump () const
 
bool isValid () const
 
const Vector< int, 32 > & shapeSegments () const
 
const Vector< Span, 16 > & shapeSpans () const
 
void setShapeSegments (const Vector< int > &segments)
 
void setShapeSpans (const Vector< Span > &spans)
 
WEBCORE_EXPORT void updateBoundsFromShape ()
 

Friends

bool operator== (const Region &, const Region &)
 
bool operator== (const Shape &, const Shape &)
 
bool operator== (const Span &, const Span &)
 
bool operator== (const Region &, const Region &)
 
bool operator== (const Shape &, const Shape &)
 
bool operator== (const Span &, const Span &)
 

Constructor & Destructor Documentation

◆ Region() [1/4]

WebCore::Region::Region ( )

◆ Region() [2/4]

WebCore::Region::Region ( const IntRect rect)

◆ Region() [3/4]

WEBCORE_EXPORT WebCore::Region::Region ( )

◆ Region() [4/4]

WEBCORE_EXPORT WebCore::Region::Region ( const IntRect )

Member Function Documentation

◆ bounds() [1/2]

IntRect WebCore::Region::bounds ( ) const
inline

◆ bounds() [2/2]

IntRect WebCore::Region::bounds ( ) const
inline

◆ contains() [1/4]

bool WebCore::Region::contains ( const Region region) const

◆ contains() [2/4]

WEBCORE_EXPORT bool WebCore::Region::contains ( const Region ) const

◆ contains() [3/4]

bool WebCore::Region::contains ( const IntPoint point) const

◆ contains() [4/4]

bool WebCore::Region::contains ( const IntPoint ) const

◆ dump() [1/2]

void WebCore::Region::dump ( ) const

◆ dump() [2/2]

void WebCore::Region::dump ( ) const

◆ gridSize() [1/2]

unsigned WebCore::Region::gridSize ( ) const
inline

◆ gridSize() [2/2]

unsigned WebCore::Region::gridSize ( ) const
inline

◆ intersect() [1/2]

void WebCore::Region::intersect ( const Region region)

◆ intersect() [2/2]

WEBCORE_EXPORT void WebCore::Region::intersect ( const Region )

◆ intersects() [1/2]

bool WebCore::Region::intersects ( const Region region) const

◆ intersects() [2/2]

bool WebCore::Region::intersects ( const Region ) const

◆ isEmpty() [1/2]

bool WebCore::Region::isEmpty ( void  ) const
inline

◆ isEmpty() [2/2]

bool WebCore::Region::isEmpty ( void  ) const
inline

◆ isRect() [1/2]

bool WebCore::Region::isRect ( ) const
inline

◆ isRect() [2/2]

bool WebCore::Region::isRect ( ) const
inline

◆ isValid() [1/2]

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

◆ isValid() [2/2]

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

◆ rects() [1/2]

Vector< IntRect > WebCore::Region::rects ( ) const

◆ rects() [2/2]

WEBCORE_EXPORT Vector<IntRect> WebCore::Region::rects ( ) const

◆ setShapeSegments() [1/2]

void WebCore::Region::setShapeSegments ( const Vector< int > &  segments)
inline

◆ setShapeSegments() [2/2]

void WebCore::Region::setShapeSegments ( const Vector< int > &  segments)
inline

◆ setShapeSpans() [1/2]

void WebCore::Region::setShapeSpans ( const Vector< Span > &  spans)
inline

◆ setShapeSpans() [2/2]

void WebCore::Region::setShapeSpans ( const Vector< Span > &  spans)
inline

◆ shapeSegments() [1/2]

const Vector<int, 32>& WebCore::Region::shapeSegments ( ) const
inline

◆ shapeSegments() [2/2]

const Vector<int, 32>& WebCore::Region::shapeSegments ( ) const
inline

◆ shapeSpans() [1/2]

const Vector<Span, 16>& WebCore::Region::shapeSpans ( ) const
inline

◆ shapeSpans() [2/2]

const Vector<Span, 16>& WebCore::Region::shapeSpans ( ) const
inline

◆ subtract() [1/2]

void WebCore::Region::subtract ( const Region region)

◆ subtract() [2/2]

WEBCORE_EXPORT void WebCore::Region::subtract ( const Region )

◆ totalArea() [1/2]

WEBCORE_EXPORT unsigned WebCore::Region::totalArea ( ) const

◆ totalArea() [2/2]

unsigned WebCore::Region::totalArea ( ) const

◆ translate() [1/2]

void WebCore::Region::translate ( const IntSize offset)

◆ translate() [2/2]

WEBCORE_EXPORT void WebCore::Region::translate ( const IntSize )

◆ unite() [1/2]

WEBCORE_EXPORT void WebCore::Region::unite ( const Region )

◆ unite() [2/2]

void WebCore::Region::unite ( const Region region)

◆ updateBoundsFromShape() [1/2]

void WebCore::Region::updateBoundsFromShape ( )

◆ updateBoundsFromShape() [2/2]

WEBCORE_EXPORT void WebCore::Region::updateBoundsFromShape ( )

Friends And Related Function Documentation

◆ operator== [1/6]

bool operator== ( const Region a,
const Region b 
)
friend

◆ operator== [2/6]

bool operator== ( const Region a,
const Region b 
)
friend

◆ operator== [3/6]

bool operator== ( const Shape &  a,
const Shape &  b 
)
friend

◆ operator== [4/6]

bool operator== ( const Shape &  a,
const Shape &  b 
)
friend

◆ operator== [5/6]

bool operator== ( const Span a,
const Span b 
)
friend

◆ operator== [6/6]

bool operator== ( const Span a,
const Span b 
)
friend

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