Back to index

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

List of all members.

Public Member Functions

 Area (nsIContent *aArea)
virtual ~Area ()
virtual void ParseCoords (const nsAString &aSpec)
virtual PRBool IsInside (nscoord x, nscoord y) const =0
virtual void Draw (nsPresContext *aCX, nsIRenderingContext &aRC)=0
virtual void GetRect (nsPresContext *aCX, nsRect &aRect)=0
void HasFocus (PRBool aHasFocus)
void GetHREF (nsAString &aHref) const
void GetArea (nsIContent **aArea) const

Public Attributes

nsCOMPtr< nsIContentmArea
nscoordmCoords
PRInt32 mNumCoords
PRPackedBool mHasFocus

Detailed Description

Definition at line 73 of file nsImageMap.cpp.


Constructor & Destructor Documentation

Area::Area ( nsIContent aArea)

Definition at line 98 of file nsImageMap.cpp.

Area::~Area ( ) [virtual]

Definition at line 107 of file nsImageMap.cpp.

{
  MOZ_COUNT_DTOR(Area);
  delete [] mCoords;
}

Member Function Documentation

virtual void Area::Draw ( nsPresContext aCX,
nsIRenderingContext aRC 
) [pure virtual]

Implemented in CircleArea, PolyArea, RectArea, and DefaultArea.

Here is the caller graph for this function:

void Area::GetArea ( nsIContent **  aArea) const

Definition at line 123 of file nsImageMap.cpp.

{
  *aArea = mArea;
  NS_IF_ADDREF(*aArea);
}

Here is the caller graph for this function:

void Area::GetHREF ( nsAString &  aHref) const

Definition at line 114 of file nsImageMap.cpp.

{
  aHref.Truncate();
  if (mArea) {
    mArea->GetAttr(kNameSpaceID_None, nsHTMLAtoms::href, aHref);
  }
}
virtual void Area::GetRect ( nsPresContext aCX,
nsRect aRect 
) [pure virtual]

Implemented in CircleArea, PolyArea, RectArea, and DefaultArea.

Here is the caller graph for this function:

void Area::HasFocus ( PRBool  aHasFocus)

Definition at line 329 of file nsImageMap.cpp.

{
  mHasFocus = aHasFocus;
}

Here is the caller graph for this function:

virtual PRBool Area::IsInside ( nscoord  x,
nscoord  y 
) const [pure virtual]

Implemented in CircleArea, PolyArea, RectArea, and DefaultArea.

Here is the caller graph for this function:

void Area::ParseCoords ( const nsAString &  aSpec) [virtual]

Reimplemented in CircleArea, PolyArea, and RectArea.

Definition at line 320 of file nsImageMap.cpp.

{
  char* cp = ToNewCString(aSpec);
  if (cp) {
    mCoords = lo_parse_coord_list(cp, &mNumCoords);
    NS_Free(cp);
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 90 of file nsImageMap.cpp.

Definition at line 91 of file nsImageMap.cpp.

Definition at line 93 of file nsImageMap.cpp.

Definition at line 92 of file nsImageMap.cpp.


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