Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions
nsSVGPathSeg.cpp File Reference
#include "nsSVGPathSeg.h"
#include "prdtoa.h"
#include "nsSVGValue.h"
#include "nsTextFormatter.h"
#include "nsContentUtils.h"

Go to the source code of this file.

Classes

class  nsSVGPathSegClosePath
class  nsSVGPathSegMovetoAbs
class  nsSVGPathSegMovetoRel
class  nsSVGPathSegLinetoAbs
class  nsSVGPathSegLinetoRel
class  nsSVGPathSegCurvetoCubicAbs
class  nsSVGPathSegCurvetoCubicRel
class  nsSVGPathSegCurvetoQuadraticAbs
class  nsSVGPathSegCurvetoQuadraticRel
class  nsSVGPathSegArcAbs
class  nsSVGPathSegArcRel
class  nsSVGPathSegLinetoHorizontalAbs
class  nsSVGPathSegLinetoHorizontalRel
class  nsSVGPathSegLinetoVerticalAbs
class  nsSVGPathSegLinetoVerticalRel
class  nsSVGPathSegCurvetoCubicSmoothAbs
class  nsSVGPathSegCurvetoCubicSmoothRel
class  nsSVGPathSegCurvetoQuadraticSmoothAbs
class  nsSVGPathSegCurvetoQuadraticSmoothRel

Defines

#define NS_IMPL_NSIDOMSVGPATHSEG(cname, type, letter)
#define NS_IMPL_NSISUPPORTS_SVGPATHSEG(basename)

Functions

nsresult NS_NewSVGPathSegClosePath (nsIDOMSVGPathSegClosePath **result)
nsresult NS_NewSVGPathSegMovetoAbs (nsIDOMSVGPathSegMovetoAbs **result, float x, float y)
nsresult NS_NewSVGPathSegMovetoRel (nsIDOMSVGPathSegMovetoRel **result, float x, float y)
nsresult NS_NewSVGPathSegLinetoAbs (nsIDOMSVGPathSegLinetoAbs **result, float x, float y)
nsresult NS_NewSVGPathSegLinetoRel (nsIDOMSVGPathSegLinetoRel **result, float x, float y)
nsresult NS_NewSVGPathSegCurvetoCubicAbs (nsIDOMSVGPathSegCurvetoCubicAbs **result, float x, float y, float x1, float y1, float x2, float y2)
nsresult NS_NewSVGPathSegCurvetoCubicRel (nsIDOMSVGPathSegCurvetoCubicRel **result, float x, float y, float x1, float y1, float x2, float y2)
nsresult NS_NewSVGPathSegCurvetoQuadraticAbs (nsIDOMSVGPathSegCurvetoQuadraticAbs **result, float x, float y, float x1, float y1)
nsresult NS_NewSVGPathSegCurvetoQuadraticRel (nsIDOMSVGPathSegCurvetoQuadraticRel **result, float x, float y, float x1, float y1)
nsresult NS_NewSVGPathSegArcAbs (nsIDOMSVGPathSegArcAbs **result, float x, float y, float r1, float r2, float angle, PRBool largeArcFlag, PRBool sweepFlag)
nsresult NS_NewSVGPathSegArcRel (nsIDOMSVGPathSegArcRel **result, float x, float y, float r1, float r2, float angle, PRBool largeArcFlag, PRBool sweepFlag)
nsresult NS_NewSVGPathSegLinetoHorizontalAbs (nsIDOMSVGPathSegLinetoHorizontalAbs **result, float x)
nsresult NS_NewSVGPathSegLinetoHorizontalRel (nsIDOMSVGPathSegLinetoHorizontalRel **result, float x)
nsresult NS_NewSVGPathSegLinetoVerticalAbs (nsIDOMSVGPathSegLinetoVerticalAbs **result, float y)
nsresult NS_NewSVGPathSegLinetoVerticalRel (nsIDOMSVGPathSegLinetoVerticalRel **result, float y)
nsresult NS_NewSVGPathSegCurvetoCubicSmoothAbs (nsIDOMSVGPathSegCurvetoCubicSmoothAbs **result, float x, float y, float x2, float y2)
nsresult NS_NewSVGPathSegCurvetoCubicSmoothRel (nsIDOMSVGPathSegCurvetoCubicSmoothRel **result, float x, float y, float x2, float y2)
nsresult NS_NewSVGPathSegCurvetoQuadraticSmoothAbs (nsIDOMSVGPathSegCurvetoQuadraticSmoothAbs **result, float x, float y)
nsresult NS_NewSVGPathSegCurvetoQuadraticSmoothRel (nsIDOMSVGPathSegCurvetoQuadraticSmoothRel **result, float x, float y)

Define Documentation

#define NS_IMPL_NSIDOMSVGPATHSEG (   cname,
  type,
  letter 
)
Value:
NS_IMETHODIMP                                                           \
cname::GetPathSegType(PRUint16 *aPathSegType)                           \
{                                                                       \
  *aPathSegType = type;                                                 \
  return NS_OK;                                                         \
}                                                                       \
                                                                        \
NS_IMETHODIMP                                                           \
cname::GetPathSegTypeAsLetter(nsAString & aPathSegTypeAsLetter)         \
{                                                                       \
  aPathSegTypeAsLetter.Truncate();                                      \
  aPathSegTypeAsLetter.AppendLiteral(letter);               \
  return NS_OK;                                                         \
}

Definition at line 48 of file nsSVGPathSeg.cpp.

Value:
NS_IMPL_ADDREF(ns##basename)                                  \
NS_IMPL_RELEASE(ns##basename)                                 \
                                                              \
NS_INTERFACE_MAP_BEGIN(ns##basename)                          \
  NS_INTERFACE_MAP_ENTRY(nsISVGValue)                         \
  NS_INTERFACE_MAP_ENTRY(nsIDOMSVGPathSeg)                    \
  NS_INTERFACE_MAP_ENTRY(nsIDOM##basename)                    \
  NS_INTERFACE_MAP_ENTRY_CONTENT_CLASSINFO(basename)          \
  NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsISVGValue)  \
NS_INTERFACE_MAP_END

Definition at line 64 of file nsSVGPathSeg.cpp.


Function Documentation

nsresult NS_NewSVGPathSegArcAbs ( nsIDOMSVGPathSegArcAbs **  result,
float  x,
float  y,
float  r1,
float  r2,
float  angle,
PRBool  largeArcFlag,
PRBool  sweepFlag 
)

Definition at line 1229 of file nsSVGPathSeg.cpp.

{
  nsSVGPathSegArcAbs *ps = new nsSVGPathSegArcAbs(x, y, r1, r2, angle,
                                                  largeArcFlag, sweepFlag);
  NS_ENSURE_TRUE(ps, NS_ERROR_OUT_OF_MEMORY);
  NS_ADDREF(ps);
  *result = ps;
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewSVGPathSegArcRel ( nsIDOMSVGPathSegArcRel **  result,
float  x,
float  y,
float  r1,
float  r2,
float  angle,
PRBool  largeArcFlag,
PRBool  sweepFlag 
)

Definition at line 1418 of file nsSVGPathSeg.cpp.

{
  nsSVGPathSegArcRel *ps = new nsSVGPathSegArcRel(x, y, r1, r2, angle,
                                                  largeArcFlag, sweepFlag);
  NS_ENSURE_TRUE(ps, NS_ERROR_OUT_OF_MEMORY);
  NS_ADDREF(ps);
  *result = ps;
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 103 of file nsSVGPathSeg.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewSVGPathSegCurvetoCubicAbs ( nsIDOMSVGPathSegCurvetoCubicAbs **  result,
float  x,
float  y,
float  x1,
float  y1,
float  x2,
float  y2 
)

Definition at line 607 of file nsSVGPathSeg.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewSVGPathSegCurvetoCubicRel ( nsIDOMSVGPathSegCurvetoCubicRel **  result,
float  x,
float  y,
float  x1,
float  y1,
float  x2,
float  y2 
)

Definition at line 778 of file nsSVGPathSeg.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewSVGPathSegCurvetoCubicSmoothAbs ( nsIDOMSVGPathSegCurvetoCubicSmoothAbs **  result,
float  x,
float  y,
float  x2,
float  y2 
)

Definition at line 1972 of file nsSVGPathSeg.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewSVGPathSegCurvetoCubicSmoothRel ( nsIDOMSVGPathSegCurvetoCubicSmoothRel **  result,
float  x,
float  y,
float  x2,
float  y2 
)

Definition at line 2111 of file nsSVGPathSeg.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewSVGPathSegCurvetoQuadraticAbs ( nsIDOMSVGPathSegCurvetoQuadraticAbs **  result,
float  x,
float  y,
float  x1,
float  y1 
)

Definition at line 947 of file nsSVGPathSeg.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewSVGPathSegCurvetoQuadraticRel ( nsIDOMSVGPathSegCurvetoQuadraticRel **  result,
float  x,
float  y,
float  x1,
float  y1 
)

Definition at line 1087 of file nsSVGPathSeg.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 2249 of file nsSVGPathSeg.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 2356 of file nsSVGPathSeg.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewSVGPathSegLinetoAbs ( nsIDOMSVGPathSegLinetoAbs **  result,
float  x,
float  y 
)

Definition at line 389 of file nsSVGPathSeg.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1603 of file nsSVGPathSeg.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1695 of file nsSVGPathSeg.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewSVGPathSegLinetoRel ( nsIDOMSVGPathSegLinetoRel **  result,
float  x,
float  y 
)

Definition at line 497 of file nsSVGPathSeg.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1787 of file nsSVGPathSeg.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1879 of file nsSVGPathSeg.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewSVGPathSegMovetoAbs ( nsIDOMSVGPathSegMovetoAbs **  result,
float  x,
float  y 
)

Definition at line 174 of file nsSVGPathSeg.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewSVGPathSegMovetoRel ( nsIDOMSVGPathSegMovetoRel **  result,
float  x,
float  y 
)

Definition at line 282 of file nsSVGPathSeg.cpp.

Here is the call graph for this function:

Here is the caller graph for this function: