Public Member Functions | Protected Attributes

nsStyleCorners Class Reference

Class that represents a set of top-left/top-right/bottom-left/bottom-right nsStyleCoord pairs. More...

#include <nsStyleCoord.h>

Collaboration diagram for nsStyleCorners:

List of all members.

Public Member Functions

 nsStyleCorners ()
PRBool operator== (const nsStyleCorners &aOther) const
PRBool operator!= (const nsStyleCorners &aOther) const
nsStyleUnit GetUnit (PRUint8 aHalfCorner) const
nsStyleCoord Get (PRUint8 aHalfCorner) const
void Reset ()
void Set (PRUint8 aHalfCorner, const nsStyleCoord &aCoord)

Protected Attributes

PRUint8 mUnits [8]
nsStyleUnion mValues [8]

Detailed Description

Class that represents a set of top-left/top-right/bottom-left/bottom-right nsStyleCoord pairs.

This is used to hold the dimensions of the corners of a box (for, e.g., border-radius and outline-radius).


Constructor & Destructor Documentation

nsStyleCorners::nsStyleCorners (  ) 

Member Function Documentation

nsStyleCoord nsStyleCorners::Get ( PRUint8  aHalfCorner  )  const [inline]
nsStyleUnit nsStyleCorners::GetUnit ( PRUint8  aHalfCorner  )  const [inline]
PRBool nsStyleCorners::operator!= ( const nsStyleCorners aOther  )  const [inline]
PRBool nsStyleCorners::operator== ( const nsStyleCorners aOther  )  const
void nsStyleCorners::Reset (  ) 
void nsStyleCorners::Set ( PRUint8  aHalfCorner,
const nsStyleCoord aCoord 
) [inline]

Member Data Documentation

PRUint8 nsStyleCorners::mUnits[8] [protected]

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