Public Member Functions | Public Attributes

nsRect Struct Reference

#include <nsRect.h>

Inheritance diagram for nsRect:

List of all members.

Public Member Functions

 nsRect ()
 nsRect (const nsRect &aRect)
 nsRect (const nsPoint &aOrigin, const nsSize &aSize)
 nsRect (nscoord aX, nscoord aY, nscoord aWidth, nscoord aHeight)
PRBool IsEmpty () const
void Empty ()
PRBool Contains (const nsRect &aRect) const
PRBool Contains (nscoord aX, nscoord aY) const
PRBool Contains (const nsPoint &aPoint) const
PRBool Intersects (const nsRect &aRect) const
PRBool IntersectRect (const nsRect &aRect1, const nsRect &aRect2)
PRBool UnionRect (const nsRect &aRect1, const nsRect &aRect2)
void UnionRectIncludeEmpty (const nsRect &aRect1, const nsRect &aRect2)
void SetRect (nscoord aX, nscoord aY, nscoord aWidth, nscoord aHeight)
void SetRect (const nsPoint &aPt, const nsSize &aSize)
void MoveTo (nscoord aX, nscoord aY)
void MoveTo (const nsPoint &aPoint)
void MoveBy (nscoord aDx, nscoord aDy)
void MoveBy (const nsPoint &aPoint)
void SizeTo (nscoord aWidth, nscoord aHeight)
void SizeTo (const nsSize &aSize)
void SizeBy (nscoord aDeltaWidth, nscoord aDeltaHeight)
void Inflate (nscoord aDx, nscoord aDy)
void Inflate (const nsSize &aSize)
void Inflate (const nsMargin &aMargin)
void Deflate (nscoord aDx, nscoord aDy)
void Deflate (const nsSize &aSize)
void Deflate (const nsMargin &aMargin)
PRBool operator== (const nsRect &aRect) const
PRBool operator!= (const nsRect &aRect) const
PRBool IsExactEqual (const nsRect &aRect) const
nsRect operator+ (const nsPoint &aPoint) const
nsRect operator- (const nsPoint &aPoint) const
nsRectoperator+= (const nsPoint &aPoint)
nsRectoperator-= (const nsPoint &aPoint)
nsMargin operator- (const nsRect &aRect) const
nsRectoperator+= (const nsMargin &aMargin)
nsRectoperator-= (const nsMargin &aMargin)
nsRect operator+ (const nsMargin &aMargin) const
nsRect operator- (const nsMargin &aMargin) const
nsRectScaleRoundOut (float aScale)
nsPoint TopLeft () const
nsPoint TopRight () const
nsPoint BottomLeft () const
nsPoint BottomRight () const
nsSize Size () const
nscoord XMost () const
nscoord YMost () const
nsIntRect ToNearestPixels (nscoord aAppUnitsPerPixel) const
nsIntRect ToOutsidePixels (nscoord aAppUnitsPerPixel) const
nsIntRect ToInsidePixels (nscoord aAppUnitsPerPixel) const

Public Attributes

nscoord x
nscoord y
nscoord width
nscoord height

Constructor & Destructor Documentation

nsRect::nsRect (  )  [inline]
nsRect::nsRect ( const nsRect aRect  )  [inline]
nsRect::nsRect ( const nsPoint aOrigin,
const nsSize aSize 
) [inline]
nsRect::nsRect ( nscoord  aX,
nscoord  aY,
nscoord  aWidth,
nscoord  aHeight 
) [inline]

Member Function Documentation

nsPoint nsRect::BottomLeft (  )  const [inline]
nsPoint nsRect::BottomRight (  )  const [inline]
PRBool nsRect::Contains ( const nsRect aRect  )  const
PRBool nsRect::Contains ( nscoord  aX,
nscoord  aY 
) const
PRBool nsRect::Contains ( const nsPoint aPoint  )  const [inline]
void nsRect::Deflate ( nscoord  aDx,
nscoord  aDy 
)
void nsRect::Deflate ( const nsSize aSize  )  [inline]
void nsRect::Deflate ( const nsMargin aMargin  ) 
void nsRect::Empty (  )  [inline]
void nsRect::Inflate ( nscoord  aDx,
nscoord  aDy 
)
void nsRect::Inflate ( const nsSize aSize  )  [inline]
void nsRect::Inflate ( const nsMargin aMargin  ) 
PRBool nsRect::IntersectRect ( const nsRect aRect1,
const nsRect aRect2 
)
PRBool nsRect::Intersects ( const nsRect aRect  )  const
PRBool nsRect::IsEmpty (  )  const [inline]
PRBool nsRect::IsExactEqual ( const nsRect aRect  )  const [inline]
void nsRect::MoveBy ( nscoord  aDx,
nscoord  aDy 
) [inline]
void nsRect::MoveBy ( const nsPoint aPoint  )  [inline]
void nsRect::MoveTo ( nscoord  aX,
nscoord  aY 
) [inline]
void nsRect::MoveTo ( const nsPoint aPoint  )  [inline]
PRBool nsRect::operator!= ( const nsRect aRect  )  const [inline]
nsRect nsRect::operator+ ( const nsMargin aMargin  )  const [inline]
nsRect nsRect::operator+ ( const nsPoint aPoint  )  const [inline]
nsRect& nsRect::operator+= ( const nsMargin aMargin  )  [inline]
nsRect& nsRect::operator+= ( const nsPoint aPoint  )  [inline]
nsMargin nsRect::operator- ( const nsRect aRect  )  const
nsRect nsRect::operator- ( const nsMargin aMargin  )  const [inline]
nsRect nsRect::operator- ( const nsPoint aPoint  )  const [inline]
nsRect& nsRect::operator-= ( const nsMargin aMargin  )  [inline]
nsRect& nsRect::operator-= ( const nsPoint aPoint  )  [inline]
PRBool nsRect::operator== ( const nsRect aRect  )  const [inline]
nsRect& nsRect::ScaleRoundOut ( float  aScale  ) 
void nsRect::SetRect ( nscoord  aX,
nscoord  aY,
nscoord  aWidth,
nscoord  aHeight 
) [inline]
void nsRect::SetRect ( const nsPoint aPt,
const nsSize aSize 
) [inline]
nsSize nsRect::Size (  )  const [inline]
void nsRect::SizeBy ( nscoord  aDeltaWidth,
nscoord  aDeltaHeight 
) [inline]
void nsRect::SizeTo ( const nsSize aSize  )  [inline]
void nsRect::SizeTo ( nscoord  aWidth,
nscoord  aHeight 
) [inline]
nsIntRect nsRect::ToInsidePixels ( nscoord  aAppUnitsPerPixel  )  const [inline]
nsIntRect nsRect::ToNearestPixels ( nscoord  aAppUnitsPerPixel  )  const [inline]
nsIntRect nsRect::ToOutsidePixels ( nscoord  aAppUnitsPerPixel  )  const [inline]
nsPoint nsRect::TopLeft (  )  const [inline]
nsPoint nsRect::TopRight (  )  const [inline]
PRBool nsRect::UnionRect ( const nsRect aRect1,
const nsRect aRect2 
)
void nsRect::UnionRectIncludeEmpty ( const nsRect aRect1,
const nsRect aRect2 
)
nscoord nsRect::XMost (  )  const [inline]
nscoord nsRect::YMost (  )  const [inline]

Member Data Documentation


The documentation for this struct was generated from the following file: