• Home
  • Raw
  • Download

Lines Matching defs:BaseRect

75122 struct BaseRect {  struct
75123 T x, y, width, height;
75126 BaseRect() : x(0), y(0), width(0), height(0) {} in BaseRect() argument
75127 BaseRect(const Point& aOrigin, const SizeT &aSize) : in BaseRect() function
75131 BaseRect(T aX, T aY, T aWidth, T aHeight) : in BaseRect() argument
75138 bool IsEmpty() const { return height <= 0 || width <= 0; } in IsEmpty()
75139 void SetEmpty() { width = height = 0; } in SetEmpty()
75142 bool IsFinite() const in IsFinite()
75154 bool Contains(const Sub& aRect) const in Contains()
75163 bool Contains(T aX, T aY) const in Contains()
75171 bool Contains(const Point& aPoint) const { return Contains(aPoint.x, aPoint.y); } in Contains()
75176 bool Intersects(const Sub& aRect) const in Intersects()
75186 __attribute__ ((warn_unused_result)) Sub Intersect(const Sub& aRect) const in Intersect()
75204 bool IntersectRect(const Sub& aRect1, const Sub& aRect2) in IntersectRect()
75216 __attribute__ ((warn_unused_result)) Sub Union(const Sub& aRect) const in Union()
75231 __attribute__ ((warn_unused_result)) Sub UnionEdges(const Sub& aRect) const in UnionEdges()
75246 void UnionRect(const Sub& aRect1, const Sub& aRect2) in UnionRect()
75256 void UnionRectEdges(const Sub& aRect1, const Sub& aRect2) in UnionRectEdges()
75262 void ExpandToEnclose(const Point& aPoint) in ExpandToEnclose()
75278 void SetRect(T aX, T aY, T aWidth, T aHeight) in SetRect()
75282 void SetRect(const Point& aPt, const SizeT& aSize) in SetRect()
75286 void MoveTo(T aX, T aY) { x = aX; y = aY; } in MoveTo()
75287 void MoveTo(const Point& aPoint) { x = aPoint.x; y = aPoint.y; } in MoveTo()
75288 void MoveBy(T aDx, T aDy) { x += aDx; y += aDy; } in MoveBy()
75289 void MoveBy(const Point& aPoint) { x += aPoint.x; y += aPoint.y; } in MoveBy()
75290 void SizeTo(T aWidth, T aHeight) { width = aWidth; height = aHeight; } in SizeTo()
75291 void SizeTo(const SizeT& aSize) { width = aSize.width; height = aSize.height; } in SizeTo()
75293 void Inflate(T aD) { Inflate(aD, aD); } in Inflate()
75294 void Inflate(T aDx, T aDy) in Inflate()
75301 void Inflate(const MarginT& aMargin) in Inflate()
75308 void Inflate(const SizeT& aSize) { Inflate(aSize.width, aSize.height); } in Inflate()
75310 void Deflate(T aD) { Deflate(aD, aD); } in Deflate()
75311 void Deflate(T aDx, T aDy) in Deflate()
75318 void Deflate(const MarginT& aMargin) in Deflate()
75325 void Deflate(const SizeT& aSize) { Deflate(aSize.width, aSize.height); } in Deflate()
75331 bool IsEqualEdges(const Sub& aRect) const in IsEqualEdges()
75338 bool IsEqualInterior(const Sub& aRect) const in IsEqualInterior()
75363 Sub& operator+=(const Point& aPoint) in operator +=()
75368 Sub& operator-=(const Point& aPoint) in operator -=()
75373 Sub& operator+=(const SizeT& aSize) in operator +=()
75379 Sub& operator-=(const SizeT& aSize) in operator -=()
75386 MarginT operator-(const Sub& aRect) const in operator -()
75395 Point TopLeft() const { return Point(x, y); } in TopLeft()
75396 Point TopRight() const { return Point(XMost(), y); } in TopRight()
75397 Point BottomLeft() const { return Point(x, YMost()); } in BottomLeft()
75398 Point BottomRight() const { return Point(XMost(), YMost()); } in BottomRight()
75399 Point AtCorner(Corner aCorner) const { in AtCorner()
75408 Point CCWCorner(mozilla::Side side) const { in CCWCorner()
75417 Point CWCorner(mozilla::Side side) const { in CWCorner()
75426 Point Center() const { return Point(x, y) + Point(width, height)/2; } in Center()
75427 SizeT Size() const { return SizeT(width, height); } in Size()
75429 T Area() const { return width * height; } in Area()
75432 T X() const { return x; } in X()
75433 T Y() const { return y; } in Y()
75434 T Width() const { return width; } in Width()
75435 T Height() const { return height; } in Height()
75436 T XMost() const { return x + width; } in XMost()
75437 T YMost() const { return y + height; } in YMost()
75440 T Edge(mozilla::Side aSide) const in Edge()
75452 void SetLeftEdge(T aX) { in SetLeftEdge()
75457 void SetRightEdge(T aXMost) { in SetRightEdge()
75461 void SetTopEdge(T aY) { in SetTopEdge()
75466 void SetBottomEdge(T aYMost) { in SetBottomEdge()
75471 void Round() in Round()
75487 void RoundIn() in RoundIn()
75503 void RoundOut() in RoundOut()
75518 void Scale(T aScale) { Scale(aScale, aScale); } in Scale()
75520 void Scale(T aXScale, T aYScale) in Scale()
75532 void ScaleRoundOut(double aScale) { ScaleRoundOut(aScale, aScale); } in ScaleRoundOut()
75537 void ScaleRoundOut(double aXScale, double aYScale) in ScaleRoundOut()
75548 void ScaleRoundIn(double aScale) { ScaleRoundIn(aScale, aScale); } in ScaleRoundIn()
75552 void ScaleRoundIn(double aXScale, double aYScale) in ScaleRoundIn()
75564 void ScaleInverseRoundOut(double aScale) { ScaleInverseRoundOut(aScale, aScale); } in ScaleInverseRoundOut()
75569 void ScaleInverseRoundOut(double aXScale, double aYScale) in ScaleInverseRoundOut()
75580 void ScaleInverseRoundIn(double aScale) { ScaleInverseRoundIn(aScale, aScale); } in ScaleInverseRoundIn()
75584 void ScaleInverseRoundIn(double aXScale, double aYScale) in ScaleInverseRoundIn()
75598 __attribute__ ((warn_unused_result)) Point ClampPoint(const Point& aPoint) const in ClampPoint()
75609 __attribute__ ((warn_unused_result)) Sub MoveInsideAndClamp(const Sub& aRect) const in MoveInsideAndClamp()
75626 static Sub MaxIntRect() in MaxIntRect()
75645 bool operator==(const Sub& aRect) const { return false; } in operator ==()
75646 bool operator!=(const Sub& aRect) const { return false; } in operator !=()