Public Member Functions | Public Attributes

gfxRect Struct Reference

#include <gfxRect.h>

Collaboration diagram for gfxRect:

List of all members.

Public Member Functions

 gfxRect ()
 gfxRect (const gfxRect &s)
 gfxRect (const gfxPoint &_pos, const gfxSize &_size)
 gfxRect (gfxFloat _x, gfxFloat _y, gfxFloat _width, gfxFloat _height)
int operator== (const gfxRect &s) const
int operator!= (const gfxRect &s) const
const gfxRectMoveBy (const gfxPoint &aPt)
gfxRect operator+ (const gfxPoint &aPt) const
gfxRect operator- (const gfxPoint &aPt) const
gfxFloat Width () const
gfxFloat Height () const
gfxFloat X () const
gfxFloat Y () const
gfxFloat XMost () const
gfxFloat YMost () const
PRBool IsEmpty () const
gfxRect Intersect (const gfxRect &aRect) const
gfxRect Union (const gfxRect &aRect) const
PRBool Contains (const gfxRect &aRect) const
PRBool Contains (const gfxPoint &aPoint) const
gfxPoint TopLeft ()
gfxPoint BottomRight ()
void Inset (gfxFloat k)
void Inset (gfxFloat top, gfxFloat right, gfxFloat bottom, gfxFloat left)
void Inset (const gfxFloat *sides)
void Outset (gfxFloat k)
void Outset (gfxFloat top, gfxFloat right, gfxFloat bottom, gfxFloat left)
void Outset (const gfxFloat *sides)
void Round ()
void RoundOut ()
gfxPoint TopLeft () const
gfxPoint TopRight () const
gfxPoint BottomLeft () const
gfxPoint BottomRight () const
gfxPoint Corner (gfxCorner::Corner corner) const
void Condition ()
void Scale (gfxFloat k)
void Scale (gfxFloat sx, gfxFloat sy)
void ScaleInverse (gfxFloat k)

Public Attributes

gfxPoint pos
gfxSize size

Constructor & Destructor Documentation

gfxRect::gfxRect (  )  [inline]
gfxRect::gfxRect ( const gfxRect s  )  [inline]
gfxRect::gfxRect ( const gfxPoint _pos,
const gfxSize _size 
) [inline]
gfxRect::gfxRect ( gfxFloat  _x,
gfxFloat  _y,
gfxFloat  _width,
gfxFloat  _height 
) [inline]

Member Function Documentation

gfxPoint gfxRect::BottomLeft (  )  const [inline]
gfxPoint gfxRect::BottomRight (  )  [inline]
gfxPoint gfxRect::BottomRight (  )  const [inline]
void gfxRect::Condition (  ) 
PRBool gfxRect::Contains ( const gfxRect aRect  )  const
PRBool gfxRect::Contains ( const gfxPoint aPoint  )  const
gfxPoint gfxRect::Corner ( gfxCorner::Corner  corner  )  const [inline]
gfxFloat gfxRect::Height (  )  const [inline]
void gfxRect::Inset ( gfxFloat  k  )  [inline]
void gfxRect::Inset ( gfxFloat  top,
gfxFloat  right,
gfxFloat  bottom,
gfxFloat  left 
) [inline]
void gfxRect::Inset ( const gfxFloat sides  )  [inline]
gfxRect gfxRect::Intersect ( const gfxRect aRect  )  const
PRBool gfxRect::IsEmpty (  )  const [inline]
const gfxRect& gfxRect::MoveBy ( const gfxPoint aPt  )  [inline]
int gfxRect::operator!= ( const gfxRect s  )  const [inline]
gfxRect gfxRect::operator+ ( const gfxPoint aPt  )  const [inline]
gfxRect gfxRect::operator- ( const gfxPoint aPt  )  const [inline]
int gfxRect::operator== ( const gfxRect s  )  const [inline]
void gfxRect::Outset ( gfxFloat  k  )  [inline]
void gfxRect::Outset ( const gfxFloat sides  )  [inline]
void gfxRect::Outset ( gfxFloat  top,
gfxFloat  right,
gfxFloat  bottom,
gfxFloat  left 
) [inline]
void gfxRect::Round (  ) 
void gfxRect::RoundOut (  ) 
void gfxRect::Scale ( gfxFloat  k  )  [inline]
void gfxRect::Scale ( gfxFloat  sx,
gfxFloat  sy 
) [inline]
void gfxRect::ScaleInverse ( gfxFloat  k  )  [inline]
gfxPoint gfxRect::TopLeft (  )  const [inline]
gfxPoint gfxRect::TopLeft (  )  [inline]
gfxPoint gfxRect::TopRight (  )  const [inline]
gfxRect gfxRect::Union ( const gfxRect aRect  )  const
gfxFloat gfxRect::Width (  )  const [inline]
gfxFloat gfxRect::X (  )  const [inline]
gfxFloat gfxRect::XMost (  )  const [inline]
gfxFloat gfxRect::Y (  )  const [inline]
gfxFloat gfxRect::YMost (  )  const [inline]

Member Data Documentation

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