Public Member Functions | Static Public Member Functions | Public Attributes

nsFont Struct Reference

#include <nsFont.h>

Collaboration diagram for nsFont:

List of all members.

Public Member Functions

 nsFont (const char *aName, PRUint8 aStyle, PRUint8 aVariant, PRUint16 aWeight, PRInt16 aStretch, PRUint8 aDecoration, nscoord aSize, float aSizeAdjust=0.0f)
 nsFont (const nsString_external &aName, PRUint8 aStyle, PRUint8 aVariant, PRUint16 aWeight, PRInt16 aStretch, PRUint8 aDecoration, nscoord aSize, float aSizeAdjust=0.0f)
 nsFont (const nsFont &aFont)
 nsFont ()
 ~nsFont ()
PRBool operator== (const nsFont &aOther) const
PRBool Equals (const nsFont &aOther) const
PRBool BaseEquals (const nsFont &aOther) const
nsFontoperator= (const nsFont &aOther)
PRBool EnumerateFamilies (nsFontFamilyEnumFunc aFunc, void *aData) const
void GetFirstFamily (nsString_external &aFamily) const

Static Public Member Functions

static void GetGenericID (const nsString_external &aGeneric, PRUint8 *aID)

Public Attributes

nsString_external name
PRUint8 style
PRUint8 systemFont
PRUint8 variant
PRUint8 familyNameQuirks
PRUint16 weight
PRInt16 stretch
PRUint8 decorations
nscoord size
float sizeAdjust

Constructor & Destructor Documentation

nsFont::nsFont ( const char *  aName,
PRUint8  aStyle,
PRUint8  aVariant,
PRUint16  aWeight,
PRInt16  aStretch,
PRUint8  aDecoration,
nscoord  aSize,
float  aSizeAdjust = 0.0f 
)
nsFont::nsFont ( const nsString_external aName,
PRUint8  aStyle,
PRUint8  aVariant,
PRUint16  aWeight,
PRInt16  aStretch,
PRUint8  aDecoration,
nscoord  aSize,
float  aSizeAdjust = 0.0f 
)
nsFont::nsFont ( const nsFont aFont  ) 
nsFont::nsFont (  ) 
nsFont::~nsFont (  ) 

Member Function Documentation

PRBool nsFont::BaseEquals ( const nsFont aOther  )  const
PRBool nsFont::EnumerateFamilies ( nsFontFamilyEnumFunc  aFunc,
void *  aData 
) const
PRBool nsFont::Equals ( const nsFont aOther  )  const
void nsFont::GetFirstFamily ( nsString_external aFamily  )  const
static void nsFont::GetGenericID ( const nsString_external aGeneric,
PRUint8 *  aID 
) [static]
nsFont& nsFont::operator= ( const nsFont aOther  ) 
PRBool nsFont::operator== ( const nsFont aOther  )  const [inline]

Member Data Documentation

PRInt16 nsFont::stretch
PRUint8 nsFont::style
PRUint8 nsFont::variant
PRUint16 nsFont::weight

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