Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsPoint Struct Reference

#include <nsPoint.h>

List of all members.

Public Member Functions

 nsPoint ()
 nsPoint (const nsPoint &aPoint)
 nsPoint (nscoord aX, nscoord aY)
void MoveTo (nscoord aX, nscoord aY)
void MoveBy (nscoord aDx, nscoord aDy)
PRBool operator== (const nsPoint &aPoint) const
PRBool operator!= (const nsPoint &aPoint) const
nsPoint operator+ (const nsPoint &aPoint) const
nsPoint operator- (const nsPoint &aPoint) const
nsPointoperator+= (const nsPoint &aPoint)
nsPointoperator-= (const nsPoint &aPoint)
nsPoint operator- () const

Public Attributes

nscoord x
nscoord y

Detailed Description

Definition at line 43 of file nsPoint.h.


Constructor & Destructor Documentation

nsPoint::nsPoint ( ) [inline]

Definition at line 47 of file nsPoint.h.

{}

Here is the caller graph for this function:

nsPoint::nsPoint ( const nsPoint aPoint) [inline]

Definition at line 48 of file nsPoint.h.

{ x = aPoint.x; y = aPoint.y;}
nsPoint::nsPoint ( nscoord  aX,
nscoord  aY 
) [inline]

Definition at line 49 of file nsPoint.h.

{ VERIFY_COORD(aX); VERIFY_COORD(aY); x = aX; y = aY;}

Here is the call graph for this function:


Member Function Documentation

void nsPoint::MoveBy ( nscoord  aDx,
nscoord  aDy 
) [inline]

Definition at line 52 of file nsPoint.h.

{x += aDx; y += aDy;}

Here is the caller graph for this function:

void nsPoint::MoveTo ( nscoord  aX,
nscoord  aY 
) [inline]

Definition at line 51 of file nsPoint.h.

{x = aX; y = aY;}

Here is the caller graph for this function:

PRBool nsPoint::operator!= ( const nsPoint aPoint) const [inline]

Definition at line 59 of file nsPoint.h.

                                                   {
    return (PRBool) ((x != aPoint.x) || (y != aPoint.y));
  }
nsPoint nsPoint::operator+ ( const nsPoint aPoint) const [inline]

Definition at line 62 of file nsPoint.h.

                                                 {
    return nsPoint(x + aPoint.x, y + aPoint.y);
  }

Here is the call graph for this function:

nsPoint& nsPoint::operator+= ( const nsPoint aPoint) [inline]

Definition at line 68 of file nsPoint.h.

                                             {
    x += aPoint.x;
    y += aPoint.y;
    return *this;
  }
nsPoint nsPoint::operator- ( const nsPoint aPoint) const [inline]

Definition at line 65 of file nsPoint.h.

                                                 {
    return nsPoint(x - aPoint.x, y - aPoint.y);
  }

Here is the call graph for this function:

nsPoint nsPoint::operator- ( ) const [inline]

Definition at line 79 of file nsPoint.h.

                            {
    return nsPoint(-x, -y);
  }

Here is the call graph for this function:

nsPoint& nsPoint::operator-= ( const nsPoint aPoint) [inline]

Definition at line 73 of file nsPoint.h.

                                             {
    x -= aPoint.x;
    y -= aPoint.y;
    return *this;
  }
PRBool nsPoint::operator== ( const nsPoint aPoint) const [inline]

Definition at line 56 of file nsPoint.h.

                                                   {
    return (PRBool) ((x == aPoint.x) && (y == aPoint.y));
  }

Member Data Documentation

Definition at line 44 of file nsPoint.h.

Definition at line 44 of file nsPoint.h.


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