Back to index

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

#include <nsSize.h>

List of all members.

Public Member Functions

 nsSize ()
 nsSize (const nsSize &aSize)
 nsSize (nscoord aWidth, nscoord aHeight)
void SizeTo (nscoord aWidth, nscoord aHeight)
void SizeBy (nscoord aDeltaWidth, nscoord aDeltaHeight)
PRBool operator== (const nsSize &aSize) const
PRBool operator!= (const nsSize &aSize) const
nsSize operator+ (const nsSize &aSize) const
nsSizeoperator+= (const nsSize &aSize)

Public Attributes

nscoord width
nscoord height

Detailed Description

Definition at line 46 of file nsSize.h.


Constructor & Destructor Documentation

nsSize::nsSize ( ) [inline]

Definition at line 50 of file nsSize.h.

{}

Here is the caller graph for this function:

nsSize::nsSize ( const nsSize aSize) [inline]

Definition at line 51 of file nsSize.h.

{width = aSize.width; height = aSize.height;}
nsSize::nsSize ( nscoord  aWidth,
nscoord  aHeight 
) [inline]

Definition at line 52 of file nsSize.h.

{width = aWidth; height = aHeight;}

Member Function Documentation

PRBool nsSize::operator!= ( const nsSize aSize) const [inline]

Definition at line 63 of file nsSize.h.

                                                {
    return (PRBool) ((width != aSize.width) || (height != aSize.height));
  }
nsSize nsSize::operator+ ( const nsSize aSize) const [inline]

Definition at line 66 of file nsSize.h.

                                              {
    return nsSize(width + aSize.width, height + aSize.height);
  }

Here is the call graph for this function:

nsSize& nsSize::operator+= ( const nsSize aSize) [inline]

Definition at line 69 of file nsSize.h.

                                          {width += aSize.width;
                                           height += aSize.height;
                                           return *this;}
PRBool nsSize::operator== ( const nsSize aSize) const [inline]

Definition at line 60 of file nsSize.h.

                                                {
    return (PRBool) ((width == aSize.width) && (height == aSize.height));
  }
void nsSize::SizeBy ( nscoord  aDeltaWidth,
nscoord  aDeltaHeight 
) [inline]

Definition at line 55 of file nsSize.h.

                                                         {width += aDeltaWidth;
                                                          height += aDeltaHeight;}
void nsSize::SizeTo ( nscoord  aWidth,
nscoord  aHeight 
) [inline]

Definition at line 54 of file nsSize.h.

{width = aWidth; height = aHeight;}

Here is the caller graph for this function:


Member Data Documentation

Definition at line 47 of file nsSize.h.

Definition at line 47 of file nsSize.h.


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