Back to index

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


Class definition of a postscript graphics state to me maintained by the layout engine 12/21/98 dwc More...

Collaboration diagram for PS_State:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 PS_State ()
 
Default Constructor for the state 12/21/98 dwc
 PS_State (PS_State &aState)
 
Constructor of a state using the passed in state to initialize to Default Constructor for the state 12/21/98 dwc
 ~PS_State ()
 
Destructor for a state 12/21/98 dwc

Public Attributes

PS_StatemNext
nsTransform2D mMatrix
nsRect mLocalClip
nsCOMPtr< nsIFontMetricsmFontMetrics
nscolor mCurrentColor
nscolor mTextColor
nsLineStyle mLineStyle
PRInt32 mFlags

Detailed Description


Class definition of a postscript graphics state to me maintained by the layout engine 12/21/98 dwc

Definition at line 70 of file nsRenderingContextPS.cpp.


Constructor & Destructor Documentation


Default Constructor for the state 12/21/98 dwc

Definition at line 91 of file nsRenderingContextPS.cpp.

{
  mNext         = nsnull;
  mMatrix.SetToIdentity();  
  mLocalClip.x = mLocalClip.y = mLocalClip.width = mLocalClip.height = 0;
  mFontMetrics  = nsnull;
  mCurrentColor = NS_RGB(0, 0, 0);
  mTextColor    = NS_RGB(0, 0, 0);
  mLineStyle    = nsLineStyle_kSolid;
}

Here is the call graph for this function:


Constructor of a state using the passed in state to initialize to Default Constructor for the state 12/21/98 dwc

Definition at line 107 of file nsRenderingContextPS.cpp.

                                     : 
  mMatrix(&aState.mMatrix),
  mLocalClip(aState.mLocalClip)
{
  mNext = &aState;
  //mClipRegion = nsnull;
  mCurrentColor = aState.mCurrentColor;
  mFontMetrics = nsnull;
  //mFont = nsnull;
  mFlags = ~FLAGS_ALL;
  mTextColor = aState.mTextColor;
  mLineStyle = aState.mLineStyle;
}


Destructor for a state 12/21/98 dwc

Definition at line 125 of file nsRenderingContextPS.cpp.

{
  //if (nsnull != mClipRegion){
    //VERIFY(::DeleteObject(mClipRegion));
    //mClipRegion = nsnull;
  //}

  //don't delete this because it lives in the font metrics
  //mFont = nsnull;
}

Member Data Documentation

Definition at line 81 of file nsRenderingContextPS.cpp.

Definition at line 84 of file nsRenderingContextPS.cpp.

Definition at line 80 of file nsRenderingContextPS.cpp.

Definition at line 83 of file nsRenderingContextPS.cpp.

Definition at line 79 of file nsRenderingContextPS.cpp.

nsTransform2D PS_State::mMatrix

Definition at line 78 of file nsRenderingContextPS.cpp.

Definition at line 77 of file nsRenderingContextPS.cpp.

Definition at line 82 of file nsRenderingContextPS.cpp.


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