Back to index

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

#include <gfxPoint.h>

List of all members.

Public Member Functions

 gfxPoint ()
 gfxPoint (const gfxPoint &p)
 gfxPoint (gfxFloat _x, gfxFloat _y)
void MoveTo (gfxFloat aX, gfxFloat aY)
int operator== (const gfxPoint &p) const
int operator!= (const gfxPoint &p) const
gfxPoint operator+ (const gfxPoint &p) const
gfxPoint operator+ (const gfxSize &s) const
gfxPoint operator- (const gfxPoint &p) const
gfxPoint operator- (const gfxSize &s) const
gfxPoint operator- () const
gfxPointround ()

Public Attributes

gfxFloat x
gfxFloat y

Detailed Description

Definition at line 68 of file gfxPoint.h.


Constructor & Destructor Documentation

gfxPoint::gfxPoint ( ) [inline]

Definition at line 71 of file gfxPoint.h.

{ }

Here is the caller graph for this function:

gfxPoint::gfxPoint ( const gfxPoint p) [inline]

Definition at line 72 of file gfxPoint.h.

: x(p.x), y(p.y) {}
gfxPoint::gfxPoint ( gfxFloat  _x,
gfxFloat  _y 
) [inline]

Definition at line 73 of file gfxPoint.h.

: x(_x), y(_y) {}

Member Function Documentation

void gfxPoint::MoveTo ( gfxFloat  aX,
gfxFloat  aY 
) [inline]

Definition at line 75 of file gfxPoint.h.

{ x = aX; y = aY; }
int gfxPoint::operator!= ( const gfxPoint p) const [inline]

Definition at line 80 of file gfxPoint.h.

                                            {
        return ((x != p.x) || (y != p.y));
    }
gfxPoint gfxPoint::operator+ ( const gfxPoint p) const [inline]

Definition at line 83 of file gfxPoint.h.

                                                {
        return gfxPoint(x + p.x, y + p.y);
    }

Here is the call graph for this function:

gfxPoint gfxPoint::operator+ ( const gfxSize s) const [inline]

Definition at line 86 of file gfxPoint.h.

                                               {
        return gfxPoint(x + s.width, y + s.height);
    }

Here is the call graph for this function:

gfxPoint gfxPoint::operator- ( const gfxPoint p) const [inline]

Definition at line 89 of file gfxPoint.h.

                                                {
        return gfxPoint(x - p.x, y - p.y);
    }

Here is the call graph for this function:

gfxPoint gfxPoint::operator- ( const gfxSize s) const [inline]

Definition at line 92 of file gfxPoint.h.

                                               {
        return gfxPoint(x - s.width, y - s.height);
    }

Here is the call graph for this function:

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

Definition at line 95 of file gfxPoint.h.

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

Here is the call graph for this function:

int gfxPoint::operator== ( const gfxPoint p) const [inline]

Definition at line 77 of file gfxPoint.h.

                                            {
        return ((x == p.x) && (y == p.y));
    }
gfxPoint& gfxPoint::round ( ) [inline]

Definition at line 99 of file gfxPoint.h.

                      {
        x = ::floor(x + 0.5);
        y = ::floor(y + 0.5);
        return *this;
    }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 69 of file gfxPoint.h.

Definition at line 69 of file gfxPoint.h.


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