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

#include <IntRect.h>

Public Member Functions

 IntRect ()
 
 IntRect (const IntPoint &location, const IntSize &size)
 
 IntRect (int x, int y, int width, int height)
 
WEBCORE_EXPORT IntRect (const FloatRect &)
 
WEBCORE_EXPORT IntRect (const LayoutRect &)
 
IntPoint location () const
 
IntSize size () const
 
void setLocation (const IntPoint &location)
 
void setSize (const IntSize &size)
 
int x () const
 
int y () const
 
int maxX () const
 
int maxY () const
 
int width () const
 
int height () const
 
template<typename T = WTF::CrashOnOverflow>
Checked< unsigned, Tarea () const
 
void setX (int x)
 
void setY (int y)
 
void setWidth (int width)
 
void setHeight (int height)
 
bool isEmpty () const
 
IntPoint center () const
 
void move (const IntSize &size)
 
void moveBy (const IntPoint &offset)
 
void move (int dx, int dy)
 
void expand (const IntSize &size)
 
void expand (int dw, int dh)
 
void contract (const IntSize &size)
 
void contract (int dw, int dh)
 
void shiftXEdgeTo (int edge)
 
void shiftMaxXEdgeTo (int edge)
 
void shiftYEdgeTo (int edge)
 
void shiftMaxYEdgeTo (int edge)
 
IntPoint minXMinYCorner () const
 
IntPoint maxXMinYCorner () const
 
IntPoint minXMaxYCorner () const
 
IntPoint maxXMaxYCorner () const
 
WEBCORE_EXPORT bool intersects (const IntRect &) const
 
WEBCORE_EXPORT bool contains (const IntRect &) const
 
bool contains (int px, int py) const
 
bool contains (const IntPoint &point) const
 
WEBCORE_EXPORT void intersect (const IntRect &)
 
WEBCORE_EXPORT void unite (const IntRect &)
 
void uniteIfNonZero (const IntRect &)
 
void inflateX (int dx)
 
void inflateY (int dy)
 
void inflate (int d)
 
WEBCORE_EXPORT void scale (float s)
 
IntSize differenceToPoint (const IntPoint &) const
 
int distanceSquaredToPoint (const IntPoint &p) const
 
IntRect transposedRect () const
 
 IntRect ()
 
 IntRect (const IntPoint &location, const IntSize &size)
 
 IntRect (int x, int y, int width, int height)
 
WEBCORE_EXPORT IntRect (const FloatRect &)
 
WEBCORE_EXPORT IntRect (const LayoutRect &)
 
IntPoint location () const
 
IntSize size () const
 
void setLocation (const IntPoint &location)
 
void setSize (const IntSize &size)
 
int x () const
 
int y () const
 
int maxX () const
 
int maxY () const
 
int width () const
 
int height () const
 
template<typename T = WTF::CrashOnOverflow>
Checked< unsigned, Tarea () const
 
void setX (int x)
 
void setY (int y)
 
void setWidth (int width)
 
void setHeight (int height)
 
bool isEmpty () const
 
IntPoint center () const
 
void move (const IntSize &size)
 
void moveBy (const IntPoint &offset)
 
void move (int dx, int dy)
 
void expand (const IntSize &size)
 
void expand (int dw, int dh)
 
void contract (const IntSize &size)
 
void contract (int dw, int dh)
 
void shiftXEdgeTo (int edge)
 
void shiftMaxXEdgeTo (int edge)
 
void shiftYEdgeTo (int edge)
 
void shiftMaxYEdgeTo (int edge)
 
IntPoint minXMinYCorner () const
 
IntPoint maxXMinYCorner () const
 
IntPoint minXMaxYCorner () const
 
IntPoint maxXMaxYCorner () const
 
WEBCORE_EXPORT bool intersects (const IntRect &) const
 
WEBCORE_EXPORT bool contains (const IntRect &) const
 
bool contains (int px, int py) const
 
bool contains (const IntPoint &point) const
 
WEBCORE_EXPORT void intersect (const IntRect &)
 
WEBCORE_EXPORT void unite (const IntRect &)
 
void uniteIfNonZero (const IntRect &)
 
void inflateX (int dx)
 
void inflateY (int dy)
 
void inflate (int d)
 
WEBCORE_EXPORT void scale (float s)
 
IntSize differenceToPoint (const IntPoint &) const
 
int distanceSquaredToPoint (const IntPoint &p) const
 
IntRect transposedRect () const
 

Constructor & Destructor Documentation

◆ IntRect() [1/10]

WebCore::IntRect::IntRect ( )
inline

◆ IntRect() [2/10]

WebCore::IntRect::IntRect ( const IntPoint location,
const IntSize size 
)
inline

◆ IntRect() [3/10]

WebCore::IntRect::IntRect ( int  x,
int  y,
int  width,
int  height 
)
inline

◆ IntRect() [4/10]

WebCore::IntRect::IntRect ( const FloatRect r)
explicit

◆ IntRect() [5/10]

WebCore::IntRect::IntRect ( const LayoutRect r)
explicit

◆ IntRect() [6/10]

WebCore::IntRect::IntRect ( )
inline

◆ IntRect() [7/10]

WebCore::IntRect::IntRect ( const IntPoint location,
const IntSize size 
)
inline

◆ IntRect() [8/10]

WebCore::IntRect::IntRect ( int  x,
int  y,
int  width,
int  height 
)
inline

◆ IntRect() [9/10]

WEBCORE_EXPORT WebCore::IntRect::IntRect ( const FloatRect )
explicit

◆ IntRect() [10/10]

WEBCORE_EXPORT WebCore::IntRect::IntRect ( const LayoutRect )
explicit

Member Function Documentation

◆ area() [1/2]

template<typename T = WTF::CrashOnOverflow>
Checked<unsigned, T> WebCore::IntRect::area ( ) const
inline

◆ area() [2/2]

template<typename T = WTF::CrashOnOverflow>
Checked<unsigned, T> WebCore::IntRect::area ( ) const
inline

◆ center() [1/2]

IntPoint WebCore::IntRect::center ( ) const
inline

◆ center() [2/2]

IntPoint WebCore::IntRect::center ( ) const
inline

◆ contains() [1/6]

bool WebCore::IntRect::contains ( const IntRect other) const

◆ contains() [2/6]

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

◆ contains() [3/6]

bool WebCore::IntRect::contains ( int  px,
int  py 
) const
inline

◆ contains() [4/6]

bool WebCore::IntRect::contains ( int  px,
int  py 
) const
inline

◆ contains() [5/6]

bool WebCore::IntRect::contains ( const IntPoint point) const
inline

◆ contains() [6/6]

bool WebCore::IntRect::contains ( const IntPoint point) const
inline

◆ contract() [1/4]

void WebCore::IntRect::contract ( const IntSize size)
inline

◆ contract() [2/4]

void WebCore::IntRect::contract ( const IntSize size)
inline

◆ contract() [3/4]

void WebCore::IntRect::contract ( int  dw,
int  dh 
)
inline

◆ contract() [4/4]

void WebCore::IntRect::contract ( int  dw,
int  dh 
)
inline

◆ differenceToPoint() [1/2]

IntSize WebCore::IntRect::differenceToPoint ( const IntPoint point) const

◆ differenceToPoint() [2/2]

IntSize WebCore::IntRect::differenceToPoint ( const IntPoint ) const

◆ distanceSquaredToPoint() [1/2]

int WebCore::IntRect::distanceSquaredToPoint ( const IntPoint p) const
inline

◆ distanceSquaredToPoint() [2/2]

int WebCore::IntRect::distanceSquaredToPoint ( const IntPoint p) const
inline

◆ expand() [1/4]

void WebCore::IntRect::expand ( const IntSize size)
inline

◆ expand() [2/4]

void WebCore::IntRect::expand ( const IntSize size)
inline

◆ expand() [3/4]

void WebCore::IntRect::expand ( int  dw,
int  dh 
)
inline

◆ expand() [4/4]

void WebCore::IntRect::expand ( int  dw,
int  dh 
)
inline

◆ height() [1/2]

int WebCore::IntRect::height ( ) const
inline

◆ height() [2/2]

int WebCore::IntRect::height ( ) const
inline

◆ inflate() [1/2]

void WebCore::IntRect::inflate ( int  d)
inline

◆ inflate() [2/2]

void WebCore::IntRect::inflate ( int  d)
inline

◆ inflateX() [1/2]

void WebCore::IntRect::inflateX ( int  dx)
inline

◆ inflateX() [2/2]

void WebCore::IntRect::inflateX ( int  dx)
inline

◆ inflateY() [1/2]

void WebCore::IntRect::inflateY ( int  dy)
inline

◆ inflateY() [2/2]

void WebCore::IntRect::inflateY ( int  dy)
inline

◆ intersect() [1/2]

void WebCore::IntRect::intersect ( const IntRect other)

◆ intersect() [2/2]

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

◆ intersects() [1/2]

bool WebCore::IntRect::intersects ( const IntRect other) const

◆ intersects() [2/2]

WEBCORE_EXPORT bool WebCore::IntRect::intersects ( const IntRect ) const

◆ isEmpty() [1/2]

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

◆ isEmpty() [2/2]

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

◆ location() [1/2]

IntPoint WebCore::IntRect::location ( ) const
inline

◆ location() [2/2]

IntPoint WebCore::IntRect::location ( ) const
inline

◆ maxX() [1/2]

int WebCore::IntRect::maxX ( ) const
inline

◆ maxX() [2/2]

int WebCore::IntRect::maxX ( ) const
inline

◆ maxXMaxYCorner() [1/2]

IntPoint WebCore::IntRect::maxXMaxYCorner ( ) const
inline

◆ maxXMaxYCorner() [2/2]

IntPoint WebCore::IntRect::maxXMaxYCorner ( ) const
inline

◆ maxXMinYCorner() [1/2]

IntPoint WebCore::IntRect::maxXMinYCorner ( ) const
inline

◆ maxXMinYCorner() [2/2]

IntPoint WebCore::IntRect::maxXMinYCorner ( ) const
inline

◆ maxY() [1/2]

int WebCore::IntRect::maxY ( ) const
inline

◆ maxY() [2/2]

int WebCore::IntRect::maxY ( ) const
inline

◆ minXMaxYCorner() [1/2]

IntPoint WebCore::IntRect::minXMaxYCorner ( ) const
inline

◆ minXMaxYCorner() [2/2]

IntPoint WebCore::IntRect::minXMaxYCorner ( ) const
inline

◆ minXMinYCorner() [1/2]

IntPoint WebCore::IntRect::minXMinYCorner ( ) const
inline

◆ minXMinYCorner() [2/2]

IntPoint WebCore::IntRect::minXMinYCorner ( ) const
inline

◆ move() [1/4]

void WebCore::IntRect::move ( const IntSize size)
inline

◆ move() [2/4]

void WebCore::IntRect::move ( const IntSize size)
inline

◆ move() [3/4]

void WebCore::IntRect::move ( int  dx,
int  dy 
)
inline

◆ move() [4/4]

void WebCore::IntRect::move ( int  dx,
int  dy 
)
inline

◆ moveBy() [1/2]

void WebCore::IntRect::moveBy ( const IntPoint offset)
inline

◆ moveBy() [2/2]

void WebCore::IntRect::moveBy ( const IntPoint offset)
inline

◆ scale() [1/2]

void WebCore::IntRect::scale ( float  s)

◆ scale() [2/2]

WEBCORE_EXPORT void WebCore::IntRect::scale ( float  s)

◆ setHeight() [1/2]

void WebCore::IntRect::setHeight ( int  height)
inline

◆ setHeight() [2/2]

void WebCore::IntRect::setHeight ( int  height)
inline

◆ setLocation() [1/2]

void WebCore::IntRect::setLocation ( const IntPoint location)
inline

◆ setLocation() [2/2]

void WebCore::IntRect::setLocation ( const IntPoint location)
inline

◆ setSize() [1/2]

void WebCore::IntRect::setSize ( const IntSize size)
inline

◆ setSize() [2/2]

void WebCore::IntRect::setSize ( const IntSize size)
inline

◆ setWidth() [1/2]

void WebCore::IntRect::setWidth ( int  width)
inline

◆ setWidth() [2/2]

void WebCore::IntRect::setWidth ( int  width)
inline

◆ setX() [1/2]

void WebCore::IntRect::setX ( int  x)
inline

◆ setX() [2/2]

void WebCore::IntRect::setX ( int  x)
inline

◆ setY() [1/2]

void WebCore::IntRect::setY ( int  y)
inline

◆ setY() [2/2]

void WebCore::IntRect::setY ( int  y)
inline

◆ shiftMaxXEdgeTo() [1/2]

void WebCore::IntRect::shiftMaxXEdgeTo ( int  edge)
inline

◆ shiftMaxXEdgeTo() [2/2]

void WebCore::IntRect::shiftMaxXEdgeTo ( int  edge)
inline

◆ shiftMaxYEdgeTo() [1/2]

void WebCore::IntRect::shiftMaxYEdgeTo ( int  edge)
inline

◆ shiftMaxYEdgeTo() [2/2]

void WebCore::IntRect::shiftMaxYEdgeTo ( int  edge)
inline

◆ shiftXEdgeTo() [1/2]

void WebCore::IntRect::shiftXEdgeTo ( int  edge)
inline

◆ shiftXEdgeTo() [2/2]

void WebCore::IntRect::shiftXEdgeTo ( int  edge)
inline

◆ shiftYEdgeTo() [1/2]

void WebCore::IntRect::shiftYEdgeTo ( int  edge)
inline

◆ shiftYEdgeTo() [2/2]

void WebCore::IntRect::shiftYEdgeTo ( int  edge)
inline

◆ size() [1/2]

IntSize WebCore::IntRect::size ( ) const
inline

◆ size() [2/2]

IntSize WebCore::IntRect::size ( ) const
inline

◆ transposedRect() [1/2]

IntRect WebCore::IntRect::transposedRect ( ) const
inline

◆ transposedRect() [2/2]

IntRect WebCore::IntRect::transposedRect ( ) const
inline

◆ unite() [1/2]

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

◆ unite() [2/2]

void WebCore::IntRect::unite ( const IntRect other)

◆ uniteIfNonZero() [1/2]

void WebCore::IntRect::uniteIfNonZero ( const IntRect other)

◆ uniteIfNonZero() [2/2]

void WebCore::IntRect::uniteIfNonZero ( const IntRect )

◆ width() [1/2]

int WebCore::IntRect::width ( ) const
inline

◆ width() [2/2]

int WebCore::IntRect::width ( ) const
inline

◆ x() [1/2]

int WebCore::IntRect::x ( ) const
inline

◆ x() [2/2]

int WebCore::IntRect::x ( ) const
inline

◆ y() [1/2]

int WebCore::IntRect::y ( ) const
inline

◆ y() [2/2]

int WebCore::IntRect::y ( ) const
inline

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