Back to index

lightning-sunbird  0.9+nobinonly
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Friends
nsSVGPathSegArcAbs Class Reference
Inheritance diagram for nsSVGPathSegArcAbs:
Inheritance graph
[legend]
Collaboration diagram for nsSVGPathSegArcAbs:
Collaboration graph
[legend]

List of all members.

Public Types

enum  modificationType { mod_other = 0, mod_context, mod_die }

Public Member Functions

 nsSVGPathSegArcAbs (float x, float y, float r1, float r2, float angle, PRBool largeArcFlag, PRBool sweepFlag)
NS_DECL_ISUPPORTS
NS_DECL_NSIDOMSVGPATHSEGARCABS
NS_DECL_NSIDOMSVGPATHSEG
NS_IMETHOD 
SetValueString (const nsAString &aValue)
NS_IMETHOD GetValueString (nsAString &aValue)
NS_IMETHOD AddObserver (nsISVGValueObserver *observer)
NS_IMETHOD RemoveObserver (nsISVGValueObserver *observer)
NS_IMETHOD BeginBatchUpdate ()
NS_IMETHOD EndBatchUpdate ()
typedef NS_STDCALL_FUNCPROTO (nsresult, SVGObserverNotifyFunction, nsISVGValueObserver, DidModifySVGObservable,(nsISVGValue *, nsISVGValue::modificationType))

Public Attributes

attribute float x
attribute float y
attribute float r1
attribute float r2
attribute float angle
attribute boolean largeArcFlag
attribute boolean sweepFlag
const unsigned short PATHSEG_UNKNOWN = 0
const unsigned short PATHSEG_CLOSEPATH = 1
const unsigned short PATHSEG_MOVETO_ABS = 2
const unsigned short PATHSEG_MOVETO_REL = 3
const unsigned short PATHSEG_LINETO_ABS = 4
const unsigned short PATHSEG_LINETO_REL = 5
const unsigned short PATHSEG_CURVETO_CUBIC_ABS = 6
const unsigned short PATHSEG_CURVETO_CUBIC_REL = 7
const unsigned short PATHSEG_CURVETO_QUADRATIC_ABS = 8
const unsigned short PATHSEG_CURVETO_QUADRATIC_REL = 9
const unsigned short PATHSEG_ARC_ABS = 10
const unsigned short PATHSEG_ARC_REL = 11
const unsigned short PATHSEG_LINETO_HORIZONTAL_ABS = 12
const unsigned short PATHSEG_LINETO_HORIZONTAL_REL = 13
const unsigned short PATHSEG_LINETO_VERTICAL_ABS = 14
const unsigned short PATHSEG_LINETO_VERTICAL_REL = 15
const unsigned short PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = 16
const unsigned short PATHSEG_CURVETO_CUBIC_SMOOTH_REL = 17
const unsigned short PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18
const unsigned short PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19
readonly attribute unsigned short pathSegType
readonly attribute DOMString pathSegTypeAsLetter

Protected Member Functions

void WillModify (modificationType aModType=mod_other)
void DidModify (modificationType aModType=mod_other)
void ReleaseObservers ()
void NotifyObservers (SVGObserverNotifyFunction f, modificationType aModType)
PRInt32 GetModifyNestCount ()

Protected Attributes

float mX
float mY
float mR1
float mR2
float mAngle
PRBool mLargeArcFlag
PRBool mSweepFlag

Friends

class nsSVGValueAutoNotifier

Detailed Description

Definition at line 1198 of file nsSVGPathSeg.cpp.


Member Enumeration Documentation

Enumerator:
mod_other 
mod_context 
mod_die 

Definition at line 68 of file nsISVGValue.h.


Constructor & Destructor Documentation

nsSVGPathSegArcAbs::nsSVGPathSegArcAbs ( float  x,
float  y,
float  r1,
float  r2,
float  angle,
PRBool  largeArcFlag,
PRBool  sweepFlag 
)

Definition at line 1243 of file nsSVGPathSeg.cpp.


Member Function Documentation

NS_IMETHODIMP nsSVGValue::AddObserver ( nsISVGValueObserver observer) [virtual, inherited]

Implements nsISVGValue.

Definition at line 97 of file nsSVGValue.cpp.

{
  nsIWeakReference* wr = NS_GetWeakReference(observer);
  if (!wr) return NS_ERROR_FAILURE;
  mObservers.AppendElement((void*)wr);
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:

NS_IMETHODIMP nsSVGValue::BeginBatchUpdate ( ) [virtual, inherited]

Implements nsISVGValue.

Definition at line 119 of file nsSVGValue.cpp.

{
  WillModify();
  return NS_OK;
}

Here is the call graph for this function:

void nsSVGValue::DidModify ( modificationType  aModType = mod_other) [protected, inherited]

Definition at line 86 of file nsSVGValue.cpp.

{
  NS_ASSERTION(mModifyNestCount>0, "unbalanced Will/DidModify calls");
  if (--mModifyNestCount == 0) {
    OnDidModify();
    NotifyObservers(&nsISVGValueObserver::DidModifySVGObservable, aModType);
  }
}

Here is the call graph for this function:

NS_IMETHODIMP nsSVGValue::EndBatchUpdate ( ) [virtual, inherited]

Implements nsISVGValue.

Definition at line 126 of file nsSVGValue.cpp.

{
  DidModify();
  return NS_OK;
}

Here is the call graph for this function:

PRInt32 nsSVGValue::GetModifyNestCount ( ) [inline, protected, inherited]

Definition at line 79 of file nsSVGValue.h.

{ return mModifyNestCount; }
NS_IMETHODIMP nsSVGPathSegArcAbs::GetValueString ( nsAString &  aValue) [virtual]

Implements nsISVGValue.

Definition at line 1265 of file nsSVGPathSeg.cpp.

{
  aValue.Truncate();

  PRUnichar buf[168];
  nsTextFormatter::snprintf(buf, sizeof(buf)/sizeof(PRUnichar), NS_LITERAL_STRING("A%g,%g %g %d,%d %g,%g").get(), 
                            mR1, mR2, mAngle, mLargeArcFlag, mSweepFlag, mX, mY);
  aValue.Append(buf);

  return NS_OK;
}

Here is the call graph for this function:

void nsSVGValue::NotifyObservers ( SVGObserverNotifyFunction  f,
modificationType  aModType 
) [protected, inherited]

Definition at line 66 of file nsSVGValue.cpp.

{
  PRInt32 count = mObservers.Count();
  for (PRInt32 i = 0; i < count; ++i) {
    nsIWeakReference* wr = NS_STATIC_CAST(nsIWeakReference*,mObservers.ElementAt(i));
    nsCOMPtr<nsISVGValueObserver> observer = do_QueryReferent(wr);
    if (observer)
       (NS_STATIC_CAST(nsISVGValueObserver*,observer)->*f)(this, aModType);
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

typedef nsSVGValue::NS_STDCALL_FUNCPROTO ( nsresult  ,
SVGObserverNotifyFunction  ,
nsISVGValueObserver  ,
DidModifySVGObservable  ,
(nsISVGValue *, nsISVGValue::modificationType  
) [inherited]
void nsSVGValue::ReleaseObservers ( ) [protected, inherited]

Definition at line 53 of file nsSVGValue.cpp.

{
  PRInt32 count = mObservers.Count();
  PRInt32 i;
  for (i = 0; i < count; ++i) {
    nsIWeakReference* wr = NS_STATIC_CAST(nsIWeakReference*,mObservers.ElementAt(i));
    NS_RELEASE(wr);
  }
  while (i)
    mObservers.RemoveElementAt(--i);
}

Here is the caller graph for this function:

NS_IMETHODIMP nsSVGValue::RemoveObserver ( nsISVGValueObserver observer) [virtual, inherited]

Implements nsISVGValue.

Definition at line 106 of file nsSVGValue.cpp.

{
  nsCOMPtr<nsIWeakReference> wr = do_GetWeakReference(observer);
  if (!wr) return NS_ERROR_FAILURE;
  PRInt32 i = mObservers.IndexOf((void*)wr);
  if (i<0) return NS_ERROR_FAILURE;
  nsIWeakReference* wr2 = NS_STATIC_CAST(nsIWeakReference*,mObservers.ElementAt(i));
  NS_RELEASE(wr2);
  mObservers.RemoveElementAt(i);
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:

NS_IMETHODIMP nsSVGPathSegArcAbs::SetValueString ( const nsAString &  aValue) [virtual]

Implements nsISVGValue.

Definition at line 1258 of file nsSVGPathSeg.cpp.

{
  NS_NOTYETIMPLEMENTED("nsSVGPathSegArcAbs::SetValueString");
  return NS_ERROR_NOT_IMPLEMENTED;
}
void nsSVGValue::WillModify ( modificationType  aModType = mod_other) [protected, inherited]

Definition at line 79 of file nsSVGValue.cpp.

Here is the call graph for this function:


Friends And Related Function Documentation

friend class nsSVGValueAutoNotifier [friend, inherited]

Definition at line 59 of file nsSVGValue.h.


Member Data Documentation

Definition at line 184 of file nsIDOMSVGPathSeg.idl.

Definition at line 186 of file nsIDOMSVGPathSeg.idl.

float nsSVGPathSegArcAbs::mAngle [protected]

Definition at line 1221 of file nsSVGPathSeg.cpp.

Definition at line 1222 of file nsSVGPathSeg.cpp.

float nsSVGPathSegArcAbs::mR1 [protected]

Definition at line 1221 of file nsSVGPathSeg.cpp.

float nsSVGPathSegArcAbs::mR2 [protected]

Definition at line 1221 of file nsSVGPathSeg.cpp.

Definition at line 1222 of file nsSVGPathSeg.cpp.

float nsSVGPathSegArcAbs::mX [protected]

Definition at line 1221 of file nsSVGPathSeg.cpp.

float nsSVGPathSegArcAbs::mY [protected]

Definition at line 1221 of file nsSVGPathSeg.cpp.

const unsigned short nsIDOMSVGPathSeg::PATHSEG_ARC_ABS = 10 [inherited]

Definition at line 55 of file nsIDOMSVGPathSeg.idl.

const unsigned short nsIDOMSVGPathSeg::PATHSEG_ARC_REL = 11 [inherited]

Definition at line 56 of file nsIDOMSVGPathSeg.idl.

const unsigned short nsIDOMSVGPathSeg::PATHSEG_CLOSEPATH = 1 [inherited]

Definition at line 46 of file nsIDOMSVGPathSeg.idl.

const unsigned short nsIDOMSVGPathSeg::PATHSEG_CURVETO_CUBIC_ABS = 6 [inherited]

Definition at line 51 of file nsIDOMSVGPathSeg.idl.

const unsigned short nsIDOMSVGPathSeg::PATHSEG_CURVETO_CUBIC_REL = 7 [inherited]

Definition at line 52 of file nsIDOMSVGPathSeg.idl.

Definition at line 61 of file nsIDOMSVGPathSeg.idl.

Definition at line 62 of file nsIDOMSVGPathSeg.idl.

Definition at line 53 of file nsIDOMSVGPathSeg.idl.

Definition at line 54 of file nsIDOMSVGPathSeg.idl.

Definition at line 63 of file nsIDOMSVGPathSeg.idl.

Definition at line 64 of file nsIDOMSVGPathSeg.idl.

const unsigned short nsIDOMSVGPathSeg::PATHSEG_LINETO_ABS = 4 [inherited]

Definition at line 49 of file nsIDOMSVGPathSeg.idl.

const unsigned short nsIDOMSVGPathSeg::PATHSEG_LINETO_HORIZONTAL_ABS = 12 [inherited]

Definition at line 57 of file nsIDOMSVGPathSeg.idl.

const unsigned short nsIDOMSVGPathSeg::PATHSEG_LINETO_HORIZONTAL_REL = 13 [inherited]

Definition at line 58 of file nsIDOMSVGPathSeg.idl.

const unsigned short nsIDOMSVGPathSeg::PATHSEG_LINETO_REL = 5 [inherited]

Definition at line 50 of file nsIDOMSVGPathSeg.idl.

const unsigned short nsIDOMSVGPathSeg::PATHSEG_LINETO_VERTICAL_ABS = 14 [inherited]

Definition at line 59 of file nsIDOMSVGPathSeg.idl.

const unsigned short nsIDOMSVGPathSeg::PATHSEG_LINETO_VERTICAL_REL = 15 [inherited]

Definition at line 60 of file nsIDOMSVGPathSeg.idl.

const unsigned short nsIDOMSVGPathSeg::PATHSEG_MOVETO_ABS = 2 [inherited]

Definition at line 47 of file nsIDOMSVGPathSeg.idl.

const unsigned short nsIDOMSVGPathSeg::PATHSEG_MOVETO_REL = 3 [inherited]

Definition at line 48 of file nsIDOMSVGPathSeg.idl.

const unsigned short nsIDOMSVGPathSeg::PATHSEG_UNKNOWN = 0 [inherited]

Definition at line 45 of file nsIDOMSVGPathSeg.idl.

readonly attribute unsigned short nsIDOMSVGPathSeg::pathSegType [inherited]

Definition at line 66 of file nsIDOMSVGPathSeg.idl.

readonly attribute DOMString nsIDOMSVGPathSeg::pathSegTypeAsLetter [inherited]

Definition at line 67 of file nsIDOMSVGPathSeg.idl.

Definition at line 180 of file nsIDOMSVGPathSeg.idl.

Definition at line 182 of file nsIDOMSVGPathSeg.idl.

Definition at line 188 of file nsIDOMSVGPathSeg.idl.

Definition at line 176 of file nsIDOMSVGPathSeg.idl.

Definition at line 178 of file nsIDOMSVGPathSeg.idl.


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