Public Member Functions

nsCollapsingMargin Struct Reference

An nsCollapsingMargin represents a vertical collapsing margin between blocks as described in section 8.3.1 of CSS2, <URL: http://www.w3.org/TR/REC-CSS2/box.html#collapsing-margins >. More...

#include <nsHTMLReflowMetrics.h>

List of all members.

Public Member Functions

 nsCollapsingMargin ()
 nsCollapsingMargin (const nsCollapsingMargin &aOther)
PRBool operator== (const nsCollapsingMargin &aOther)
PRBool operator!= (const nsCollapsingMargin &aOther)
nsCollapsingMarginoperator= (const nsCollapsingMargin &aOther)
void Include (nscoord aCoord)
void Include (const nsCollapsingMargin &aOther)
void Zero ()
PRBool IsZero () const
nscoord get () const

Detailed Description

An nsCollapsingMargin represents a vertical collapsing margin between blocks as described in section 8.3.1 of CSS2, <URL: http://www.w3.org/TR/REC-CSS2/box.html#collapsing-margins >.

All adjacent vertical margins collapse, and the resulting margin is the sum of the largest positive margin included and the smallest (most negative) negative margin included.


Constructor & Destructor Documentation

nsCollapsingMargin::nsCollapsingMargin (  )  [inline]
nsCollapsingMargin::nsCollapsingMargin ( const nsCollapsingMargin aOther  )  [inline]

Member Function Documentation

nscoord nsCollapsingMargin::get (  )  const [inline]
void nsCollapsingMargin::Include ( nscoord  aCoord  )  [inline]
void nsCollapsingMargin::Include ( const nsCollapsingMargin aOther  )  [inline]
PRBool nsCollapsingMargin::IsZero (  )  const [inline]
PRBool nsCollapsingMargin::operator!= ( const nsCollapsingMargin aOther  )  [inline]
nsCollapsingMargin& nsCollapsingMargin::operator= ( const nsCollapsingMargin aOther  )  [inline]
PRBool nsCollapsingMargin::operator== ( const nsCollapsingMargin aOther  )  [inline]
void nsCollapsingMargin::Zero (  )  [inline]

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