Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
inFlasher Class Reference

#include <inFlasher.h>

Inheritance diagram for inFlasher:
Inheritance graph
Collaboration diagram for inFlasher:
Collaboration graph

List of all members.

Public Member Functions

inFlasher ()
virtual ~inFlasher ()
void drawElementOutline (in nsIDOMElement aElement)
void repaintElement (in nsIDOMElement aElement)
void scrollElementIntoView (in nsIDOMElement aElement)

Public Attributes

attribute DOMString color
attribute boolean invert
attribute unsigned short thickness

Protected Member Functions

void DrawOutline (nscoord aX, nscoord aY, nscoord aWidth, nscoord aHeight, float aP2T, nsIRenderingContext *aRenderContext, PRBool aDrawBegin, PRBool aDrawEnd)
void DrawLine (nscoord aX, nscoord aY, nscoord aLength, PRBool aDir, PRBool aBounds, float aP2T, nsIRenderingContext *aRenderContext)

Protected Attributes

nsCOMPtr< nsIInspectorCSSUtilsmCSSUtils
nscolor mColor
PRUint16 mThickness
PRPackedBool mInvert

Detailed Description

Definition at line 55 of file inFlasher.h.

Constructor & Destructor Documentation

Definition at line 56 of file inFlasher.cpp.

  mCSSUtils = do_GetService(kInspectorCSSUtilsCID);

Here is the call graph for this function:

inFlasher::~inFlasher ( ) [virtual]

Definition at line 64 of file inFlasher.cpp.


Member Function Documentation

void inFlasher::DrawLine ( nscoord  aX,
nscoord  aY,
nscoord  aLength,
PRBool  aDir,
PRBool  aBounds,
float  aP2T,
nsIRenderingContext aRenderContext 
) [protected]

Definition at line 250 of file inFlasher.cpp.

  nscoord thickTwips = NSIntPixelsToTwips(mThickness, aP2T);
  if (aDir) { // horizontal
    aRenderContext->FillRect(aX, aY+(aBounds?0:-thickTwips), aLength, thickTwips);
  } else { // vertical
    aRenderContext->FillRect(aX+(aBounds?0:-thickTwips), aY, thickTwips, aLength);

Here is the call graph for this function:

Here is the caller graph for this function:

void inFlasher::DrawOutline ( nscoord  aX,
nscoord  aY,
nscoord  aWidth,
nscoord  aHeight,
float  aP2T,
nsIRenderingContext aRenderContext,
PRBool  aDrawBegin,
PRBool  aDrawEnd 
) [protected]

Definition at line 233 of file inFlasher.cpp.


  DrawLine(aX, aY, aWidth, DIR_HORIZONTAL, BOUND_OUTER, aP2T, aRenderContext);
  if (aDrawBegin) {
    DrawLine(aX, aY, aHeight, DIR_VERTICAL, BOUND_OUTER, aP2T, aRenderContext);
  DrawLine(aX, aY+aHeight, aWidth, DIR_HORIZONTAL, BOUND_INNER, aP2T, aRenderContext);
  if (aDrawEnd) {
    DrawLine(aX+aWidth, aY, aHeight, DIR_VERTICAL, BOUND_INNER, aP2T, aRenderContext);

Here is the call graph for this function:

void inIFlasher::repaintElement ( in nsIDOMElement  aElement) [inherited]

Member Data Documentation

attribute DOMString inIFlasher::color [inherited]

Definition at line 48 of file inIFlasher.idl.

Definition at line 49 of file inIFlasher.idl.

Definition at line 74 of file inFlasher.h.

Definition at line 72 of file inFlasher.h.

Definition at line 77 of file inFlasher.h.

Definition at line 76 of file inFlasher.h.

attribute unsigned short inIFlasher::thickness [inherited]

Definition at line 50 of file inIFlasher.idl.

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