Back to index

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

List of all members.

Public Member Functions

 TextPaintStyle (nsPresContext *aPresContext, nsIRenderingContext &aRenderingContext, nsStyleContext *sc)
 ~TextPaintStyle ()

Public Attributes

const nsStyleColormColor
nscolor mSelectionTextColor
nscolor mSelectionBGColor
const nsStyleFontmFont
const nsStyleTextmText
nsIFontMetricsmNormalFont
nsIFontMetricsmSmallFont
nsIFontMetricsmLastFont
PRBool mSmallCaps
nscoord mWordSpacing
nscoord mLetterSpacing
nscoord mSpaceWidth
nscoord mAveCharWidth
PRBool mJustifying
PRBool mPreformatted
PRInt32 mNumJustifiableCharacterToRender
PRInt32 mNumJustifiableCharacterToMeasure
nscoord mExtraSpacePerJustifiableCharacter
PRInt32 mNumJustifiableCharacterReceivingExtraJot

Detailed Description

Definition at line 647 of file nsTextFrame.cpp.


Constructor & Destructor Documentation

nsTextFrame::TextPaintStyle::TextPaintStyle ( nsPresContext aPresContext,
nsIRenderingContext aRenderingContext,
nsStyleContext sc 
) [inline]

Definition at line 652 of file nsTextFrame.cpp.

      : TextStyle(aPresContext, aRenderingContext, sc)
    {
      mColor = sc->GetStyleColor();

      // Get colors from look&feel
      mSelectionBGColor = NS_RGB(0, 0, 0);
      mSelectionTextColor = NS_RGB(255, 255, 255);
      nsILookAndFeel* look = aPresContext->LookAndFeel();
      look->GetColor(nsILookAndFeel::eColor_TextSelectBackground,
                     mSelectionBGColor);
      look->GetColor(nsILookAndFeel::eColor_TextSelectForeground,
                     mSelectionTextColor);
    }

Here is the call graph for this function:

Definition at line 669 of file nsTextFrame.cpp.

                      {
      mColor = nsnull;
    }

Member Data Documentation

Definition at line 569 of file nsTextFrame.cpp.

Definition at line 648 of file nsTextFrame.cpp.

Definition at line 574 of file nsTextFrame.cpp.

Definition at line 560 of file nsTextFrame.cpp.

Definition at line 570 of file nsTextFrame.cpp.

Definition at line 564 of file nsTextFrame.cpp.

Definition at line 567 of file nsTextFrame.cpp.

Definition at line 562 of file nsTextFrame.cpp.

Definition at line 575 of file nsTextFrame.cpp.

Definition at line 573 of file nsTextFrame.cpp.

Definition at line 572 of file nsTextFrame.cpp.

Definition at line 571 of file nsTextFrame.cpp.

Definition at line 650 of file nsTextFrame.cpp.

Definition at line 649 of file nsTextFrame.cpp.

Definition at line 565 of file nsTextFrame.cpp.

Definition at line 563 of file nsTextFrame.cpp.

Definition at line 568 of file nsTextFrame.cpp.

Definition at line 561 of file nsTextFrame.cpp.

Definition at line 566 of file nsTextFrame.cpp.


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