Back to index

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

List of all members.

Public Member Functions

 BCVerticalSeg ()
void Start (BCMapBorderIterator &aIter, BCBorderOwner aBorderOwner, nscoord aVerSegWidth, nscoord aPrevHorSegHeight, nscoord aHorSegHeight, float aPixelsToTwips, BCVerticalSeg *aVerInfoArray)

Public Attributes

union BCVerticalSeg.__unnamed__ 
PRInt32 colX
nsTableCellFrameajaCell
nsTableCellFramefirstCell
nsTableRowGroupFramefirstRowGroup
nsTableRowFramefirstRow
nsTableCellFramelastCell
PRInt32 segY
PRInt32 segHeight
PRInt16 segWidth
PRUint8 owner
PRUint8 bevelSide
PRUint16 bevelOffset

Detailed Description

Definition at line 6779 of file nsTableFrame.cpp.


Constructor & Destructor Documentation

Definition at line 6809 of file nsTableFrame.cpp.


Member Function Documentation

void BCVerticalSeg::Start ( BCMapBorderIterator aIter,
BCBorderOwner  aBorderOwner,
nscoord  aVerSegWidth,
nscoord  aPrevHorSegHeight,
nscoord  aHorSegHeight,
float  aPixelsToTwips,
BCVerticalSeg aVerInfoArray 
)

Definition at line 6816 of file nsTableFrame.cpp.

{
  PRUint8      ownerSide = 0;
  PRPackedBool bevel     = PR_FALSE;
  PRInt32      xAdj      = aIter.x - aIter.startX;

  nscoord cornerSubWidth  = (aIter.bcData) ? aIter.bcData->GetCorner(ownerSide, bevel) : 0;
  PRBool  topBevel        = (aVerSegWidth > 0) ? bevel : PR_FALSE;
  nscoord maxHorSegHeight = PR_MAX(aPrevHorSegHeight, aHorSegHeight);
  nscoord offset          = CalcVerCornerOffset(ownerSide, cornerSubWidth, maxHorSegHeight, 
                                                PR_TRUE, topBevel, aPixelsToTwips);

  bevelOffset   = (topBevel) ? maxHorSegHeight : 0;
  bevelSide     = (aHorSegHeight > 0) ? NS_SIDE_RIGHT : NS_SIDE_LEFT;
  segY         += offset;
  segHeight     = -offset;
  segWidth      = aVerSegWidth;
  owner         = aBorderOwner;
  firstCell     = aIter.cell;
  firstRowGroup = aIter.rg;
  firstRow      = aIter.row;
  if (xAdj > 0) {
    ajaCell = aVerInfoArray[xAdj - 1].lastCell;
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

union { ... }

Definition at line 6796 of file nsTableFrame.cpp.

Definition at line 6806 of file nsTableFrame.cpp.

Definition at line 6805 of file nsTableFrame.cpp.

Definition at line 6795 of file nsTableFrame.cpp.

Definition at line 6797 of file nsTableFrame.cpp.

Definition at line 6799 of file nsTableFrame.cpp.

Definition at line 6798 of file nsTableFrame.cpp.

Definition at line 6800 of file nsTableFrame.cpp.

Definition at line 6804 of file nsTableFrame.cpp.

Definition at line 6802 of file nsTableFrame.cpp.

Definition at line 6803 of file nsTableFrame.cpp.

Definition at line 6801 of file nsTableFrame.cpp.


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