nsSVGGDIPlusGlyphMetrics Class Reference
[GDI+ Rendering Engine]

Inheritance diagram for nsSVGGDIPlusGlyphMetrics:

Inheritance graph
[legend]
Collaboration diagram for nsSVGGDIPlusGlyphMetrics:

Collaboration graph
[legend]
List of all members.

Detailed Description

GDI+ glyph metrics implementation

Definition at line 116 of file nsSVGGDIPlusGlyphMetrics.cpp.

Public Member Functions

Static Public Attributes

Protected Member Functions

Protected Attributes

Friends


Constructor & Destructor Documentation

nsSVGGDIPlusGlyphMetrics::nsSVGGDIPlusGlyphMetrics nsISVGGlyphMetricsSource src  )  [protected]
 

Definition at line 164 of file nsSVGGDIPlusGlyphMetrics.cpp.

nsSVGGDIPlusGlyphMetrics::~nsSVGGDIPlusGlyphMetrics  )  [protected]
 

Definition at line 169 of file nsSVGGDIPlusGlyphMetrics.cpp.

References ClearFontInfo().


Member Function Documentation

virtual nsresult nsSVGGDIPlusGlyphMetrics::QueryInterface const nsIID &  aIID,
void **  aInstancePtr
[virtual]
 

nsrefcnt nsSVGGDIPlusGlyphMetrics::AddRef void   )  [virtual]
 

Definition at line 212 of file nsSVGGDIPlusGlyphMetrics.cpp.

nsrefcnt nsSVGGDIPlusGlyphMetrics::Release void   )  [virtual]
 

Definition at line 213 of file nsSVGGDIPlusGlyphMetrics.cpp.

nsresult nsSVGGDIPlusGlyphMetrics::GetAdvance float *  aAdvance  )  [virtual]
 

Implements readonly attribute float advance;

Definition at line 298 of file nsSVGGDIPlusGlyphMetrics.cpp.

References GetBoundingRect().

nsresult nsSVGGDIPlusGlyphMetrics::GetBoundingBox nsIDOMSVGRect **  aBoundingBox  )  [virtual]
 

Implements readonly attribute nsIDOMSVGRect boundingBox;

Definition at line 307 of file nsSVGGDIPlusGlyphMetrics.cpp.

References GetBoundingRect().

nsresult nsSVGGDIPlusGlyphMetrics::GetExtentOfChar PRUint32  charnum,
nsIDOMSVGRect **  _retval
[virtual]
 

Implements nsIDOMSVGRect getExtentOfChar(in unsigned long charnum);

Definition at line 329 of file nsSVGGDIPlusGlyphMetrics.cpp.

References GetSubBoundingRect().

nsresult nsSVGGDIPlusGlyphMetrics::GetBaselineOffset PRUint16  baselineIdentifier,
float *  _retval
[virtual]
 

Implements float getBaselineOffset(in unsigned short baselineIdentifier);

Definition at line 226 of file nsSVGGDIPlusGlyphMetrics.cpp.

References nsISVGRendererGlyphMetrics::BASELINE_ALPHABETIC, nsISVGRendererGlyphMetrics::BASELINE_CENTRAL, nsISVGRendererGlyphMetrics::BASELINE_MIDDLE, nsISVGRendererGlyphMetrics::BASELINE_TEXT_AFTER_EDGE, nsISVGRendererGlyphMetrics::BASELINE_TEXT_BEFORE_EDGE, GetBoundingRect(), and GetFont().

nsresult nsSVGGDIPlusGlyphMetrics::Update PRUint32  updatemask,
PRBool *  _retval
[virtual]
 

Implements boolean update(in unsigned long updatemask);

Definition at line 354 of file nsSVGGDIPlusGlyphMetrics.cpp.

References ClearFontInfo(), MarkRectForUpdate(), nsISVGGlyphMetricsSource::UPDATEMASK_CHARACTER_DATA, and nsISVGGlyphMetricsSource::UPDATEMASK_FONT.

const RectF * nsSVGGDIPlusGlyphMetrics::GetBoundingRect  )  [virtual]
 

Obtain the bounding rectangle of the (composite) glyph as a Gdiplus::RectF.

Implements nsISVGGDIPlusGlyphMetrics.

Definition at line 376 of file nsSVGGDIPlusGlyphMetrics.cpp.

References GetSubBoundingRect().

Referenced by GetAdvance(), GetBaselineOffset(), and GetBoundingBox().

void nsSVGGDIPlusGlyphMetrics::GetSubBoundingRect PRUint32  charoffset,
PRUint32  count,
RectF *  retval
[virtual]
 

Obtain the bounding rectangle of the glyphs of part of the character string as a Gdiplus::RectF.

Parameters:
charoffset Offset into nsISVGGlyphMetricsSource::characterData.
count Number of characters for which to get bounds.

Implements nsISVGGDIPlusGlyphMetrics.

Definition at line 391 of file nsSVGGDIPlusGlyphMetrics.cpp.

References GetFont(), GetGlobalTransform(), and PrepareGraphics().

Referenced by GetBoundingRect(), and GetExtentOfChar().

const Font * nsSVGGDIPlusGlyphMetrics::GetFont  )  [virtual]
 

Obtain the Gdiplus::Font object selected for this glyph metrics object.

Implements nsISVGGDIPlusGlyphMetrics.

Definition at line 432 of file nsSVGGDIPlusGlyphMetrics.cpp.

References InitializeFontInfo().

Referenced by GetBaselineOffset(), and GetSubBoundingRect().

TextRenderingHint nsSVGGDIPlusGlyphMetrics::GetTextRenderingHint  )  [virtual]
 

Obtain the Gdiplus::TextRenderingHint for this glyph metrics object.

Implements nsISVGGDIPlusGlyphMetrics.

Definition at line 439 of file nsSVGGDIPlusGlyphMetrics.cpp.

References nsISVGGeometrySource::PAINT_TYPE_NONE, nsISVGGlyphMetricsSource::TEXT_RENDERING_AUTO, nsISVGGlyphMetricsSource::TEXT_RENDERING_GEOMETRICPRECISION, nsISVGGlyphMetricsSource::TEXT_RENDERING_OPTIMIZELEGIBILITY, and nsISVGGlyphMetricsSource::TEXT_RENDERING_OPTIMIZESPEED.

Referenced by PrepareGraphics().

void nsSVGGDIPlusGlyphMetrics::MarkRectForUpdate  )  [inline, protected]
 

Definition at line 139 of file nsSVGGDIPlusGlyphMetrics.cpp.

Referenced by Update().

void nsSVGGDIPlusGlyphMetrics::ClearFontInfo  )  [inline, protected]
 

Definition at line 140 of file nsSVGGDIPlusGlyphMetrics.cpp.

Referenced by Update(), and ~nsSVGGDIPlusGlyphMetrics().

void nsSVGGDIPlusGlyphMetrics::InitializeFontInfo  )  [protected]
 

Definition at line 524 of file nsSVGGDIPlusGlyphMetrics.cpp.

References nsFont::decorations, nsFont::EnumerateFamilies(), GetPixelScale(), NS_FONT_DECORATION_LINE_THROUGH, NS_FONT_DECORATION_UNDERLINE, NS_FONT_STYLE_ITALIC, nsFont::size, nsFont::style, and nsFont::weight.

Referenced by GetFont().

void nsSVGGDIPlusGlyphMetrics::GetGlobalTransform Matrix *  matrix  )  [protected]
 

Definition at line 575 of file nsSVGGDIPlusGlyphMetrics.cpp.

Referenced by GetSubBoundingRect().

void nsSVGGDIPlusGlyphMetrics::PrepareGraphics Graphics &  g  )  [protected]
 

Definition at line 606 of file nsSVGGDIPlusGlyphMetrics.cpp.

References GetPixelScale(), and GetTextRenderingHint().

Referenced by GetSubBoundingRect().

float nsSVGGDIPlusGlyphMetrics::GetPixelScale  )  [protected]
 

Definition at line 619 of file nsSVGGDIPlusGlyphMetrics.cpp.

Referenced by InitializeFontInfo(), and PrepareGraphics().


Friends And Related Function Documentation

nsresult NS_NewSVGGDIPlusGlyphMetrics nsISVGRendererGlyphMetrics **  result,
nsISVGGlyphMetricsSource src
[friend]
 

Definition at line 175 of file nsSVGGDIPlusGlyphMetrics.cpp.

void NS_InitSVGGDIPlusGlyphMetricsGlobals  )  [friend]
 

Definition at line 185 of file nsSVGGDIPlusGlyphMetrics.cpp.

void NS_FreeSVGGDIPlusGlyphMetricsGlobals  )  [friend]
 

Definition at line 204 of file nsSVGGDIPlusGlyphMetrics.cpp.


Member Data Documentation

nsAutoRefCnt nsSVGGDIPlusGlyphMetrics::mRefCnt [protected]
 

Definition at line 127 of file nsSVGGDIPlusGlyphMetrics.cpp.

nsDataHashtable< nsStringHashKey, nsDependentString * > nsSVGGDIPlusGlyphMetrics::sFontAliases [static]
 

Definition at line 162 of file nsSVGGDIPlusGlyphMetrics.cpp.

Referenced by NS_FreeSVGGDIPlusGlyphMetricsGlobals(), and NS_InitSVGGDIPlusGlyphMetricsGlobals().


The documentation for this class was generated from the following file:
Generated on Wed Sep 10 22:25:43 2003 for Mozilla SVG Project Rendering Backend by doxygen1.3