Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
DefaultArea Class Reference
Inheritance diagram for DefaultArea:
Inheritance graph
Collaboration diagram for DefaultArea:
Collaboration graph

List of all members.

Public Member Functions

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

Public Attributes

nsCOMPtr< nsIContentmArea
PRInt32 mNumCoords
PRPackedBool mHasFocus

Detailed Description

Definition at line 336 of file nsImageMap.cpp.

Constructor & Destructor Documentation

Definition at line 346 of file nsImageMap.cpp.

  : Area(aArea)

Member Function Documentation

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

Implements Area.

Definition at line 356 of file nsImageMap.cpp.

void Area::GetArea ( nsIContent **  aArea) const [inherited]

Definition at line 123 of file nsImageMap.cpp.

  *aArea = mArea;

Here is the caller graph for this function:

void Area::GetHREF ( nsAString &  aHref) const [inherited]

Definition at line 114 of file nsImageMap.cpp.

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

Implements Area.

Definition at line 360 of file nsImageMap.cpp.

void Area::HasFocus ( PRBool  aHasFocus) [inherited]

Definition at line 329 of file nsImageMap.cpp.

  mHasFocus = aHasFocus;

Here is the caller graph for this function:

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

Implements Area.

Definition at line 351 of file nsImageMap.cpp.

  return PR_TRUE;
void Area::ParseCoords ( const nsAString &  aSpec) [virtual, inherited]

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);

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.

nscoord* Area::mCoords [inherited]

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: