Back to index

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

#include <gfxPoint.h>

List of all members.

Public Member Functions

 gfxSize ()
 gfxSize (const gfxSize &s)
 gfxSize (gfxFloat _width, gfxFloat _height)
void SizeTo (gfxFloat _width, gfxFloat _height)
int operator== (const gfxSize &s) const
int operator!= (const gfxSize &s) const
gfxSize operator+ (const gfxSize &s) const
gfxSize operator- () const

Public Attributes

gfxFloat width
gfxFloat height

Detailed Description

Definition at line 45 of file gfxPoint.h.


Constructor & Destructor Documentation

gfxSize::gfxSize ( ) [inline]

Definition at line 48 of file gfxPoint.h.

{}

Here is the caller graph for this function:

gfxSize::gfxSize ( const gfxSize s) [inline]

Definition at line 49 of file gfxPoint.h.

: width(s.width), height(s.height) {}
gfxSize::gfxSize ( gfxFloat  _width,
gfxFloat  _height 
) [inline]

Definition at line 50 of file gfxPoint.h.

: width(_width), height(_height) {}

Member Function Documentation

int gfxSize::operator!= ( const gfxSize s) const [inline]

Definition at line 57 of file gfxPoint.h.

                                           {
        return ((width != s.width) || (height != s.height));
    }
gfxSize gfxSize::operator+ ( const gfxSize s) const [inline]

Definition at line 60 of file gfxPoint.h.

                                              {
        return gfxSize(width + s.width, height + s.height);
    }

Here is the call graph for this function:

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

Definition at line 63 of file gfxPoint.h.

                              {
        return gfxSize(- width, - height);
    }

Here is the call graph for this function:

int gfxSize::operator== ( const gfxSize s) const [inline]

Definition at line 54 of file gfxPoint.h.

                                           {
        return ((width == s.width) && (height == s.height));
    }
void gfxSize::SizeTo ( gfxFloat  _width,
gfxFloat  _height 
) [inline]

Definition at line 52 of file gfxPoint.h.

{width = _width; height = _height;}

Member Data Documentation

Definition at line 46 of file gfxPoint.h.

Definition at line 46 of file gfxPoint.h.


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