Back to index

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

#include <nsPoint.h>

List of all members.

Public Member Functions

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

Public Attributes

float x
float y

Detailed Description

Definition at line 100 of file nsPoint.h.


Constructor & Destructor Documentation

Definition at line 104 of file nsPoint.h.

{}

Here is the caller graph for this function:

Definition at line 105 of file nsPoint.h.

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

Definition at line 106 of file nsPoint.h.

{x = aX; y = aY;}

Member Function Documentation

void nsFloatPoint::MoveBy ( float  aDx,
float  aDy 
) [inline]

Definition at line 110 of file nsPoint.h.

{x += aDx; y += aDy;}
void nsFloatPoint::MoveTo ( float  aX,
float  aY 
) [inline]

Definition at line 108 of file nsPoint.h.

{x = aX; y = aY;}

Here is the caller graph for this function:

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

Definition at line 109 of file nsPoint.h.

{x = (float)aX; y = (float)aY;}
PRBool nsFloatPoint::operator!= ( const nsFloatPoint aPoint) const [inline]

Definition at line 117 of file nsPoint.h.

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

Definition at line 120 of file nsPoint.h.

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

Here is the call graph for this function:

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

Definition at line 126 of file nsPoint.h.

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

Definition at line 123 of file nsPoint.h.

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

Here is the call graph for this function:

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

Definition at line 131 of file nsPoint.h.

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

Definition at line 114 of file nsPoint.h.

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

Member Data Documentation

Definition at line 101 of file nsPoint.h.

Definition at line 101 of file nsPoint.h.


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