Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsSVGGDIPlusPathGeometry.cpp File Reference
#include <windows.h>
#include <unknwn.h>
#include <Gdiplus.h>
#include "nsCOMPtr.h"
#include "nsSVGGDIPlusPathGeometry.h"
#include "nsISVGRendererPathGeometry.h"
#include "nsISVGGDIPlusCanvas.h"
#include "nsIDOMSVGMatrix.h"
#include "nsSVGGDIPlusRegion.h"
#include "nsISVGRendererRegion.h"
#include "nsSVGGDIPlusPathBuilder.h"
#include "nsISVGPathGeometrySource.h"
#include "nsISVGRendererPathBuilder.h"
#include "nsSVGGDIPlusGradient.h"
#include "nsMemory.h"
#include "nsIDOMSVGRect.h"
#include "nsSVGTypeCIDs.h"
#include "nsIComponentManager.h"
#include "nsISVGPathFlatten.h"

Go to the source code of this file.

Classes

class  nsSVGGDIPlusPathGeometry
 GDI+ path geometry implementation. More...

Functions

nsresult NS_NewSVGGDIPlusPathGeometry (nsISVGRendererPathGeometry **result, nsISVGPathGeometrySource *src)
static void gradCBFill (Graphics *gfx, Brush *brush, void *cbStruct)
static void gradCBStroke (Graphics *gfx, Brush *brush, void *cbStruct)

Function Documentation

static void gradCBFill ( Graphics *  gfx,
Brush *  brush,
void cbStruct 
) [static]

Definition at line 375 of file nsSVGGDIPlusPathGeometry.cpp.

{
  nsSVGGDIPlusPathGeometry *geom = (nsSVGGDIPlusPathGeometry *)cbStruct;
  gfx->FillPath(brush, geom->GetFill());
}

Here is the call graph for this function:

static void gradCBStroke ( Graphics *  gfx,
Brush *  brush,
void cbStruct 
) [static]

Definition at line 381 of file nsSVGGDIPlusPathGeometry.cpp.

{
  nsSVGGDIPlusPathGeometry *geom = (nsSVGGDIPlusPathGeometry *)cbStruct;
  gfx->FillPath(brush, geom->GetStroke());
}

Here is the call graph for this function:

Definition at line 142 of file nsSVGGDIPlusPathGeometry.cpp.

{
  nsSVGGDIPlusPathGeometry* pg = new nsSVGGDIPlusPathGeometry();
  if (!pg) return NS_ERROR_OUT_OF_MEMORY;

  NS_ADDREF(pg);

  nsresult rv = pg->Init(src);

  if (NS_FAILED(rv)) {
    NS_RELEASE(pg);
    return rv;
  }
  
  *result = pg;
  return rv;
}

Here is the call graph for this function: