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

#include <LayoutRect.h>

Public Member Functions

 LayoutRect ()
 
 LayoutRect (const LayoutPoint &location, const LayoutSize &size)
 
 LayoutRect (LayoutUnit x, LayoutUnit y, LayoutUnit width, LayoutUnit height)
 
 LayoutRect (const LayoutPoint &topLeft, const LayoutPoint &bottomRight)
 
 LayoutRect (const FloatPoint &location, const FloatSize &size)
 
 LayoutRect (const IntRect &rect)
 
WEBCORE_EXPORT LayoutRect (const FloatRect &)
 
LayoutPoint location () const
 
LayoutSize size () const
 
void setLocation (const LayoutPoint &location)
 
void setSize (const LayoutSize &size)
 
LayoutUnit x () const
 
LayoutUnit y () const
 
LayoutUnit maxX () const
 
LayoutUnit maxY () const
 
LayoutUnit width () const
 
LayoutUnit height () const
 
void setX (LayoutUnit x)
 
void setY (LayoutUnit y)
 
void setWidth (LayoutUnit width)
 
void setHeight (LayoutUnit height)
 
bool isEmpty () const
 
LayoutPoint center () const
 
void move (const LayoutSize &size)
 
void moveBy (const LayoutPoint &offset)
 
void move (LayoutUnit dx, LayoutUnit dy)
 
void expand (const LayoutSize &size)
 
void expand (const LayoutBoxExtent &box)
 
void expand (LayoutUnit dw, LayoutUnit dh)
 
void contract (const LayoutSize &size)
 
void contract (const LayoutBoxExtent &box)
 
void contract (LayoutUnit dw, LayoutUnit dh)
 
void shiftXEdgeTo (LayoutUnit edge)
 
void shiftMaxXEdgeTo (LayoutUnit edge)
 
void shiftYEdgeTo (LayoutUnit edge)
 
void shiftMaxYEdgeTo (LayoutUnit edge)
 
LayoutPoint minXMinYCorner () const
 
LayoutPoint maxXMinYCorner () const
 
LayoutPoint minXMaxYCorner () const
 
LayoutPoint maxXMaxYCorner () const
 
bool isMaxXMaxYRepresentable () const
 
bool intersects (const LayoutRect &) const
 
WEBCORE_EXPORT bool contains (const LayoutRect &) const
 
bool contains (LayoutUnit px, LayoutUnit py) const
 
bool contains (const LayoutPoint &point) const
 
void intersect (const LayoutRect &)
 
WEBCORE_EXPORT void unite (const LayoutRect &)
 
void uniteIfNonZero (const LayoutRect &)
 
bool checkedUnite (const LayoutRect &)
 
void inflateX (LayoutUnit dx)
 
void inflateY (LayoutUnit dy)
 
void inflate (LayoutUnit d)
 
WEBCORE_EXPORT void scale (float)
 
void scale (float xScale, float yScale)
 
LayoutRect transposedRect () const
 
bool isInfinite () const
 
 operator FloatRect () const
 
 LayoutRect ()
 
 LayoutRect (const LayoutPoint &location, const LayoutSize &size)
 
 LayoutRect (LayoutUnit x, LayoutUnit y, LayoutUnit width, LayoutUnit height)
 
 LayoutRect (const LayoutPoint &topLeft, const LayoutPoint &bottomRight)
 
 LayoutRect (const FloatPoint &location, const FloatSize &size)
 
 LayoutRect (const IntRect &rect)
 
WEBCORE_EXPORT LayoutRect (const FloatRect &)
 
LayoutPoint location () const
 
LayoutSize size () const
 
void setLocation (const LayoutPoint &location)
 
void setSize (const LayoutSize &size)
 
LayoutUnit x () const
 
LayoutUnit y () const
 
LayoutUnit maxX () const
 
LayoutUnit maxY () const
 
LayoutUnit width () const
 
LayoutUnit height () const
 
void setX (LayoutUnit x)
 
void setY (LayoutUnit y)
 
void setWidth (LayoutUnit width)
 
void setHeight (LayoutUnit height)
 
bool isEmpty () const
 
LayoutPoint center () const
 
void move (const LayoutSize &size)
 
void moveBy (const LayoutPoint &offset)
 
void move (LayoutUnit dx, LayoutUnit dy)
 
void expand (const LayoutSize &size)
 
void expand (const LayoutBoxExtent &box)
 
void expand (LayoutUnit dw, LayoutUnit dh)
 
void contract (const LayoutSize &size)
 
void contract (const LayoutBoxExtent &box)
 
void contract (LayoutUnit dw, LayoutUnit dh)
 
void shiftXEdgeTo (LayoutUnit edge)
 
void shiftMaxXEdgeTo (LayoutUnit edge)
 
void shiftYEdgeTo (LayoutUnit edge)
 
void shiftMaxYEdgeTo (LayoutUnit edge)
 
LayoutPoint minXMinYCorner () const
 
LayoutPoint maxXMinYCorner () const
 
LayoutPoint minXMaxYCorner () const
 
LayoutPoint maxXMaxYCorner () const
 
bool isMaxXMaxYRepresentable () const
 
bool intersects (const LayoutRect &) const
 
WEBCORE_EXPORT bool contains (const LayoutRect &) const
 
bool contains (LayoutUnit px, LayoutUnit py) const
 
bool contains (const LayoutPoint &point) const
 
void intersect (const LayoutRect &)
 
WEBCORE_EXPORT void unite (const LayoutRect &)
 
void uniteIfNonZero (const LayoutRect &)
 
bool checkedUnite (const LayoutRect &)
 
void inflateX (LayoutUnit dx)
 
void inflateY (LayoutUnit dy)
 
void inflate (LayoutUnit d)
 
WEBCORE_EXPORT void scale (float)
 
void scale (float xScale, float yScale)
 
LayoutRect transposedRect () const
 
bool isInfinite () const
 
 operator FloatRect () const
 

Static Public Member Functions

static LayoutRect infiniteRect ()
 
static LayoutRect infiniteRect ()
 

Constructor & Destructor Documentation

◆ LayoutRect() [1/14]

WebCore::LayoutRect::LayoutRect ( )
inline

◆ LayoutRect() [2/14]

WebCore::LayoutRect::LayoutRect ( const LayoutPoint location,
const LayoutSize size 
)
inline

◆ LayoutRect() [3/14]

WebCore::LayoutRect::LayoutRect ( LayoutUnit  x,
LayoutUnit  y,
LayoutUnit  width,
LayoutUnit  height 
)
inline

◆ LayoutRect() [4/14]

WebCore::LayoutRect::LayoutRect ( const LayoutPoint topLeft,
const LayoutPoint bottomRight 
)
inline

◆ LayoutRect() [5/14]

WebCore::LayoutRect::LayoutRect ( const FloatPoint location,
const FloatSize size 
)
inline

◆ LayoutRect() [6/14]

WebCore::LayoutRect::LayoutRect ( const IntRect rect)
inline

◆ LayoutRect() [7/14]

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

◆ LayoutRect() [8/14]

WebCore::LayoutRect::LayoutRect ( )
inline

◆ LayoutRect() [9/14]

WebCore::LayoutRect::LayoutRect ( const LayoutPoint location,
const LayoutSize size 
)
inline

◆ LayoutRect() [10/14]

WebCore::LayoutRect::LayoutRect ( LayoutUnit  x,
LayoutUnit  y,
LayoutUnit  width,
LayoutUnit  height 
)
inline

◆ LayoutRect() [11/14]

WebCore::LayoutRect::LayoutRect ( const LayoutPoint topLeft,
const LayoutPoint bottomRight 
)
inline

◆ LayoutRect() [12/14]

WebCore::LayoutRect::LayoutRect ( const FloatPoint location,
const FloatSize size 
)
inline

◆ LayoutRect() [13/14]

WebCore::LayoutRect::LayoutRect ( const IntRect rect)
inline

◆ LayoutRect() [14/14]

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

Member Function Documentation

◆ center() [1/2]

LayoutPoint WebCore::LayoutRect::center ( ) const
inline

◆ center() [2/2]

LayoutPoint WebCore::LayoutRect::center ( ) const
inline

◆ checkedUnite() [1/2]

bool WebCore::LayoutRect::checkedUnite ( const LayoutRect other)

◆ checkedUnite() [2/2]

bool WebCore::LayoutRect::checkedUnite ( const LayoutRect )

◆ contains() [1/6]

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

◆ contains() [2/6]

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

◆ contains() [3/6]

bool WebCore::LayoutRect::contains ( LayoutUnit  px,
LayoutUnit  py 
) const
inline

◆ contains() [4/6]

bool WebCore::LayoutRect::contains ( LayoutUnit  px,
LayoutUnit  py 
) const
inline

◆ contains() [5/6]

bool WebCore::LayoutRect::contains ( const LayoutPoint point) const
inline

◆ contains() [6/6]

bool WebCore::LayoutRect::contains ( const LayoutPoint point) const
inline

◆ contract() [1/6]

void WebCore::LayoutRect::contract ( const LayoutSize size)
inline

◆ contract() [2/6]

void WebCore::LayoutRect::contract ( const LayoutSize size)
inline

◆ contract() [3/6]

void WebCore::LayoutRect::contract ( const LayoutBoxExtent box)
inline

◆ contract() [4/6]

void WebCore::LayoutRect::contract ( const LayoutBoxExtent box)
inline

◆ contract() [5/6]

void WebCore::LayoutRect::contract ( LayoutUnit  dw,
LayoutUnit  dh 
)
inline

◆ contract() [6/6]

void WebCore::LayoutRect::contract ( LayoutUnit  dw,
LayoutUnit  dh 
)
inline

◆ expand() [1/6]

void WebCore::LayoutRect::expand ( const LayoutSize size)
inline

◆ expand() [2/6]

void WebCore::LayoutRect::expand ( const LayoutSize size)
inline

◆ expand() [3/6]

void WebCore::LayoutRect::expand ( const LayoutBoxExtent box)
inline

◆ expand() [4/6]

void WebCore::LayoutRect::expand ( const LayoutBoxExtent box)
inline

◆ expand() [5/6]

void WebCore::LayoutRect::expand ( LayoutUnit  dw,
LayoutUnit  dh 
)
inline

◆ expand() [6/6]

void WebCore::LayoutRect::expand ( LayoutUnit  dw,
LayoutUnit  dh 
)
inline

◆ height() [1/2]

LayoutUnit WebCore::LayoutRect::height ( ) const
inline

◆ height() [2/2]

LayoutUnit WebCore::LayoutRect::height ( ) const
inline

◆ infiniteRect() [1/2]

static LayoutRect WebCore::LayoutRect::infiniteRect ( )
inlinestatic

◆ infiniteRect() [2/2]

static LayoutRect WebCore::LayoutRect::infiniteRect ( )
inlinestatic

◆ inflate() [1/2]

void WebCore::LayoutRect::inflate ( LayoutUnit  d)
inline

◆ inflate() [2/2]

void WebCore::LayoutRect::inflate ( LayoutUnit  d)
inline

◆ inflateX() [1/2]

void WebCore::LayoutRect::inflateX ( LayoutUnit  dx)
inline

◆ inflateX() [2/2]

void WebCore::LayoutRect::inflateX ( LayoutUnit  dx)
inline

◆ inflateY() [1/2]

void WebCore::LayoutRect::inflateY ( LayoutUnit  dy)
inline

◆ inflateY() [2/2]

void WebCore::LayoutRect::inflateY ( LayoutUnit  dy)
inline

◆ intersect() [1/2]

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

◆ intersect() [2/2]

void WebCore::LayoutRect::intersect ( const LayoutRect )

◆ intersects() [1/2]

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

◆ intersects() [2/2]

bool WebCore::LayoutRect::intersects ( const LayoutRect ) const

◆ isEmpty() [1/2]

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

◆ isEmpty() [2/2]

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

◆ isInfinite() [1/2]

bool WebCore::LayoutRect::isInfinite ( ) const
inline

◆ isInfinite() [2/2]

bool WebCore::LayoutRect::isInfinite ( ) const
inline

◆ isMaxXMaxYRepresentable() [1/2]

bool WebCore::LayoutRect::isMaxXMaxYRepresentable ( ) const
inline

◆ isMaxXMaxYRepresentable() [2/2]

bool WebCore::LayoutRect::isMaxXMaxYRepresentable ( ) const
inline

◆ location() [1/2]

LayoutPoint WebCore::LayoutRect::location ( ) const
inline

◆ location() [2/2]

LayoutPoint WebCore::LayoutRect::location ( ) const
inline

◆ maxX() [1/2]

LayoutUnit WebCore::LayoutRect::maxX ( ) const
inline

◆ maxX() [2/2]

LayoutUnit WebCore::LayoutRect::maxX ( ) const
inline

◆ maxXMaxYCorner() [1/2]

LayoutPoint WebCore::LayoutRect::maxXMaxYCorner ( ) const
inline

◆ maxXMaxYCorner() [2/2]

LayoutPoint WebCore::LayoutRect::maxXMaxYCorner ( ) const
inline

◆ maxXMinYCorner() [1/2]

LayoutPoint WebCore::LayoutRect::maxXMinYCorner ( ) const
inline

◆ maxXMinYCorner() [2/2]

LayoutPoint WebCore::LayoutRect::maxXMinYCorner ( ) const
inline

◆ maxY() [1/2]

LayoutUnit WebCore::LayoutRect::maxY ( ) const
inline

◆ maxY() [2/2]

LayoutUnit WebCore::LayoutRect::maxY ( ) const
inline

◆ minXMaxYCorner() [1/2]

LayoutPoint WebCore::LayoutRect::minXMaxYCorner ( ) const
inline

◆ minXMaxYCorner() [2/2]

LayoutPoint WebCore::LayoutRect::minXMaxYCorner ( ) const
inline

◆ minXMinYCorner() [1/2]

LayoutPoint WebCore::LayoutRect::minXMinYCorner ( ) const
inline

◆ minXMinYCorner() [2/2]

LayoutPoint WebCore::LayoutRect::minXMinYCorner ( ) const
inline

◆ move() [1/4]

void WebCore::LayoutRect::move ( const LayoutSize size)
inline

◆ move() [2/4]

void WebCore::LayoutRect::move ( const LayoutSize size)
inline

◆ move() [3/4]

void WebCore::LayoutRect::move ( LayoutUnit  dx,
LayoutUnit  dy 
)
inline

◆ move() [4/4]

void WebCore::LayoutRect::move ( LayoutUnit  dx,
LayoutUnit  dy 
)
inline

◆ moveBy() [1/2]

void WebCore::LayoutRect::moveBy ( const LayoutPoint offset)
inline

◆ moveBy() [2/2]

void WebCore::LayoutRect::moveBy ( const LayoutPoint offset)
inline

◆ operator FloatRect() [1/2]

WebCore::LayoutRect::operator FloatRect ( ) const
inline

◆ operator FloatRect() [2/2]

WebCore::LayoutRect::operator FloatRect ( ) const
inline

◆ scale() [1/4]

WEBCORE_EXPORT void WebCore::LayoutRect::scale ( float  )

◆ scale() [2/4]

void WebCore::LayoutRect::scale ( float  scaleValue)

◆ scale() [3/4]

void WebCore::LayoutRect::scale ( float  xScale,
float  yScale 
)

◆ scale() [4/4]

void WebCore::LayoutRect::scale ( float  xScale,
float  yScale 
)

◆ setHeight() [1/2]

void WebCore::LayoutRect::setHeight ( LayoutUnit  height)
inline

◆ setHeight() [2/2]

void WebCore::LayoutRect::setHeight ( LayoutUnit  height)
inline

◆ setLocation() [1/2]

void WebCore::LayoutRect::setLocation ( const LayoutPoint location)
inline

◆ setLocation() [2/2]

void WebCore::LayoutRect::setLocation ( const LayoutPoint location)
inline

◆ setSize() [1/2]

void WebCore::LayoutRect::setSize ( const LayoutSize size)
inline

◆ setSize() [2/2]

void WebCore::LayoutRect::setSize ( const LayoutSize size)
inline

◆ setWidth() [1/2]

void WebCore::LayoutRect::setWidth ( LayoutUnit  width)
inline

◆ setWidth() [2/2]

void WebCore::LayoutRect::setWidth ( LayoutUnit  width)
inline

◆ setX() [1/2]

void WebCore::LayoutRect::setX ( LayoutUnit  x)
inline

◆ setX() [2/2]

void WebCore::LayoutRect::setX ( LayoutUnit  x)
inline

◆ setY() [1/2]

void WebCore::LayoutRect::setY ( LayoutUnit  y)
inline

◆ setY() [2/2]

void WebCore::LayoutRect::setY ( LayoutUnit  y)
inline

◆ shiftMaxXEdgeTo() [1/2]

void WebCore::LayoutRect::shiftMaxXEdgeTo ( LayoutUnit  edge)
inline

◆ shiftMaxXEdgeTo() [2/2]

void WebCore::LayoutRect::shiftMaxXEdgeTo ( LayoutUnit  edge)
inline

◆ shiftMaxYEdgeTo() [1/2]

void WebCore::LayoutRect::shiftMaxYEdgeTo ( LayoutUnit  edge)
inline

◆ shiftMaxYEdgeTo() [2/2]

void WebCore::LayoutRect::shiftMaxYEdgeTo ( LayoutUnit  edge)
inline

◆ shiftXEdgeTo() [1/2]

void WebCore::LayoutRect::shiftXEdgeTo ( LayoutUnit  edge)
inline

◆ shiftXEdgeTo() [2/2]

void WebCore::LayoutRect::shiftXEdgeTo ( LayoutUnit  edge)
inline

◆ shiftYEdgeTo() [1/2]

void WebCore::LayoutRect::shiftYEdgeTo ( LayoutUnit  edge)
inline

◆ shiftYEdgeTo() [2/2]

void WebCore::LayoutRect::shiftYEdgeTo ( LayoutUnit  edge)
inline

◆ size() [1/2]

LayoutSize WebCore::LayoutRect::size ( ) const
inline

◆ size() [2/2]

LayoutSize WebCore::LayoutRect::size ( ) const
inline

◆ transposedRect() [1/2]

LayoutRect WebCore::LayoutRect::transposedRect ( ) const
inline

◆ transposedRect() [2/2]

LayoutRect WebCore::LayoutRect::transposedRect ( ) const
inline

◆ unite() [1/2]

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

◆ unite() [2/2]

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

◆ uniteIfNonZero() [1/2]

void WebCore::LayoutRect::uniteIfNonZero ( const LayoutRect )

◆ uniteIfNonZero() [2/2]

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

◆ width() [1/2]

LayoutUnit WebCore::LayoutRect::width ( ) const
inline

◆ width() [2/2]

LayoutUnit WebCore::LayoutRect::width ( ) const
inline

◆ x() [1/2]

LayoutUnit WebCore::LayoutRect::x ( ) const
inline

◆ x() [2/2]

LayoutUnit WebCore::LayoutRect::x ( ) const
inline

◆ y() [1/2]

LayoutUnit WebCore::LayoutRect::y ( ) const
inline

◆ y() [2/2]

LayoutUnit WebCore::LayoutRect::y ( ) const
inline

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