Back to index

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

List of all members.

Public Member Functions

 BCHorizontalSeg ()
void Start (BCMapBorderIterator &aIter, BCBorderOwner aBorderOwner, PRUint8 aCornerOwnerSide, nscoord aSubWidth, PRBool aBevel, nscoord aTopVerSegWidth, nscoord aBottomVerSegWidth, nscoord aHorSegHeight, nsTableCellFrame *aLastCell, float aPixelsToTwips, PRBool aTableIsLTR)
 Initialize a horizontal border segment for painting.

Public Attributes

nscoord x
nscoord y
nscoord width
nscoord height
PRBool leftBevel
nscoord leftBevelOffset
PRUint8 leftBevelSide
PRUint8 owner
nsTableCellFramefirstCell
nsTableCellFrameajaCell

Detailed Description

Definition at line 6848 of file nsTableFrame.cpp.


Constructor & Destructor Documentation

Definition at line 6876 of file nsTableFrame.cpp.


Member Function Documentation

void BCHorizontalSeg::Start ( BCMapBorderIterator aIter,
BCBorderOwner  aBorderOwner,
PRUint8  aCornerOwnerSide,
nscoord  aSubWidth,
PRBool  aBevel,
nscoord  aTopVerSegWidth,
nscoord  aBottomVerSegWidth,
nscoord  aHorSegHeight,
nsTableCellFrame aLastCell,
float  aPixelsToTwips,
PRBool  aTableIsLTR 
)

Initialize a horizontal border segment for painting.

Parameters:
aIter- iterator storing the current and adjacent frames
aBorderOwner- which frame owns the border
aCornerOwnerSide- which side owns the starting corner
aSubWidth- how wide is the nonowning width of the corner
aBevel- is the corner beveled
aTopVerSegWidth- vertical segment width going down
aBottomVerSegWidth- vertical segment width comming from up
aHorSegHeight- the height of the segment
aLastCell- cell frame above this segment
aPixelsToTwips- conversion factor
aTableIsLTR- direction, the computation depends on ltr or rtl

Definition at line 6896 of file nsTableFrame.cpp.

{
  owner = aBorderOwner;
  leftBevel = (aHorSegHeight > 0) ? aBevel : PR_FALSE;
  nscoord maxVerSegWidth = PR_MAX(aTopVerSegWidth, aBottomVerSegWidth);
  nscoord offset = CalcHorCornerOffset(aCornerOwnerSide, aSubWidth, maxVerSegWidth, 
                                       PR_TRUE, leftBevel, aPixelsToTwips, aTableIsLTR);
  leftBevelOffset = (leftBevel && (aHorSegHeight > 0)) ? maxVerSegWidth : 0;
  leftBevelSide   = (aBottomVerSegWidth > 0) ? NS_SIDE_BOTTOM : NS_SIDE_TOP;
  if (aTableIsLTR) {
    x            += offset;
  }
  else {
    x            -= offset;
  }
  width           = -offset;
  height          = aHorSegHeight;
  firstCell       = aIter.cell;
  ajaCell         = (aIter.IsTopMost()) ? nsnull : aLastCell; 
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 6873 of file nsTableFrame.cpp.

Definition at line 6872 of file nsTableFrame.cpp.

Definition at line 6867 of file nsTableFrame.cpp.

Definition at line 6868 of file nsTableFrame.cpp.

Definition at line 6869 of file nsTableFrame.cpp.

Definition at line 6870 of file nsTableFrame.cpp.

Definition at line 6871 of file nsTableFrame.cpp.

Definition at line 6866 of file nsTableFrame.cpp.

Definition at line 6864 of file nsTableFrame.cpp.

Definition at line 6865 of file nsTableFrame.cpp.


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