Public Member Functions | Static Public Member Functions

nsGrid Class Reference

The grid data structure, i.e., the grid cellmap. More...

#include <nsGrid.h>

Collaboration diagram for nsGrid:

List of all members.

Public Member Functions

 nsGrid ()
 ~nsGrid ()
nsGridRowGetColumnAt (PRInt32 aIndex, PRBool aIsHorizontal=1)
nsGridRowGetRowAt (PRInt32 aIndex, PRBool aIsHorizontal=1)
nsGridCellGetCellAt (PRInt32 aX, PRInt32 aY)
void NeedsRebuild (nsBoxLayoutState &aBoxLayoutState)
void RebuildIfNeeded ()
nsSize GetPrefRowSize (nsBoxLayoutState &aBoxLayoutState, PRInt32 aRowIndex, PRBool aIsHorizontal=1)
nsSize GetMinRowSize (nsBoxLayoutState &aBoxLayoutState, PRInt32 aRowIndex, PRBool aIsHorizontal=1)
nsSize GetMaxRowSize (nsBoxLayoutState &aBoxLayoutState, PRInt32 aRowIndex, PRBool aIsHorizontal=1)
nscoord GetRowFlex (nsBoxLayoutState &aBoxLayoutState, PRInt32 aRowIndex, PRBool aIsHorizontal=1)
nscoord GetPrefRowHeight (nsBoxLayoutState &aBoxLayoutState, PRInt32 aRowIndex, PRBool aIsHorizontal=1)
nscoord GetMinRowHeight (nsBoxLayoutState &aBoxLayoutState, PRInt32 aRowIndex, PRBool aIsHorizontal=1)
nscoord GetMaxRowHeight (nsBoxLayoutState &aBoxLayoutState, PRInt32 aRowIndex, PRBool aIsHorizontal=1)
void GetRowOffsets (nsBoxLayoutState &aState, PRInt32 aIndex, nscoord &aTop, nscoord &aBottom, PRBool aIsHorizontal=1)
void RowAddedOrRemoved (nsBoxLayoutState &aBoxLayoutState, PRInt32 aIndex, PRBool aIsHorizontal=1)
void CellAddedOrRemoved (nsBoxLayoutState &aBoxLayoutState, PRInt32 aIndex, PRBool aIsHorizontal=1)
void DirtyRows (nsIBox *aRowBox, nsBoxLayoutState &aState)
PRInt32 GetExtraColumnCount (PRBool aIsHorizontal=1)
PRInt32 GetExtraRowCount (PRBool aIsHorizontal=1)
void SetBox (nsIBox *aBox)
nsIBox * GetBox ()
nsIBox * GetRowsBox ()
nsIBox * GetColumnsBox ()
nsGridRowGetColumns ()
nsGridRowGetRows ()
PRInt32 GetRowCount (PRInt32 aIsHorizontal=1)
PRInt32 GetColumnCount (PRInt32 aIsHorizontal=1)
void GetFirstAndLastRow (nsBoxLayoutState &aState, PRInt32 &aFirstIndex, PRInt32 &aLastIndex, nsGridRow *&aFirstRow, nsGridRow *&aLastRow, PRBool aIsHorizontal)

Static Public Member Functions

static nsIBox * GetScrolledBox (nsIBox *aChild)
static nsIBox * GetScrollBox (nsIBox *aChild)

Detailed Description

The grid data structure, i.e., the grid cellmap.


Constructor & Destructor Documentation

nsGrid::nsGrid (  ) 
nsGrid::~nsGrid (  ) 

Member Function Documentation

void nsGrid::CellAddedOrRemoved ( nsBoxLayoutState &  aBoxLayoutState,
PRInt32  aIndex,
PRBool  aIsHorizontal = 1 
)
void nsGrid::DirtyRows ( nsIBox *  aRowBox,
nsBoxLayoutState &  aState 
)
nsIBox* nsGrid::GetBox (  )  [inline]
nsGridCell* nsGrid::GetCellAt ( PRInt32  aX,
PRInt32  aY 
)
nsGridRow* nsGrid::GetColumnAt ( PRInt32  aIndex,
PRBool  aIsHorizontal = 1 
)
PRInt32 nsGrid::GetColumnCount ( PRInt32  aIsHorizontal = 1  ) 
nsGridRow* nsGrid::GetColumns (  ) 
nsIBox* nsGrid::GetColumnsBox (  )  [inline]
PRInt32 nsGrid::GetExtraColumnCount ( PRBool  aIsHorizontal = 1  ) 
PRInt32 nsGrid::GetExtraRowCount ( PRBool  aIsHorizontal = 1  ) 
void nsGrid::GetFirstAndLastRow ( nsBoxLayoutState &  aState,
PRInt32 &  aFirstIndex,
PRInt32 &  aLastIndex,
nsGridRow *&  aFirstRow,
nsGridRow *&  aLastRow,
PRBool  aIsHorizontal 
)
nscoord nsGrid::GetMaxRowHeight ( nsBoxLayoutState &  aBoxLayoutState,
PRInt32  aRowIndex,
PRBool  aIsHorizontal = 1 
)
nsSize nsGrid::GetMaxRowSize ( nsBoxLayoutState &  aBoxLayoutState,
PRInt32  aRowIndex,
PRBool  aIsHorizontal = 1 
)
nscoord nsGrid::GetMinRowHeight ( nsBoxLayoutState &  aBoxLayoutState,
PRInt32  aRowIndex,
PRBool  aIsHorizontal = 1 
)
nsSize nsGrid::GetMinRowSize ( nsBoxLayoutState &  aBoxLayoutState,
PRInt32  aRowIndex,
PRBool  aIsHorizontal = 1 
)
nscoord nsGrid::GetPrefRowHeight ( nsBoxLayoutState &  aBoxLayoutState,
PRInt32  aRowIndex,
PRBool  aIsHorizontal = 1 
)
nsSize nsGrid::GetPrefRowSize ( nsBoxLayoutState &  aBoxLayoutState,
PRInt32  aRowIndex,
PRBool  aIsHorizontal = 1 
)
nsGridRow* nsGrid::GetRowAt ( PRInt32  aIndex,
PRBool  aIsHorizontal = 1 
)
PRInt32 nsGrid::GetRowCount ( PRInt32  aIsHorizontal = 1  ) 
nscoord nsGrid::GetRowFlex ( nsBoxLayoutState &  aBoxLayoutState,
PRInt32  aRowIndex,
PRBool  aIsHorizontal = 1 
)
void nsGrid::GetRowOffsets ( nsBoxLayoutState &  aState,
PRInt32  aIndex,
nscoord aTop,
nscoord aBottom,
PRBool  aIsHorizontal = 1 
)
nsGridRow* nsGrid::GetRows (  ) 
nsIBox* nsGrid::GetRowsBox (  )  [inline]
static nsIBox* nsGrid::GetScrollBox ( nsIBox *  aChild  )  [static]
static nsIBox* nsGrid::GetScrolledBox ( nsIBox *  aChild  )  [static]
void nsGrid::NeedsRebuild ( nsBoxLayoutState &  aBoxLayoutState  ) 
void nsGrid::RebuildIfNeeded (  ) 
void nsGrid::RowAddedOrRemoved ( nsBoxLayoutState &  aBoxLayoutState,
PRInt32  aIndex,
PRBool  aIsHorizontal = 1 
)
void nsGrid::SetBox ( nsIBox *  aBox  )  [inline]

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