CellGroupViewsHolderTCellVH Class |
A views holder representing a group of cells (row or column). It instantiates the maximum number of cells it can contain,
but only those of them that should be displayed will have their views enabled
Namespace: Com.ForbiddenByte.OSA.CustomAdapters.GridView
public class CellGroupViewsHolder<TCellVH> : BaseItemViewsHolder where TCellVH : new(), CellViewsHolder
The CellGroupViewsHolderTCellVH type exposes the following members.
Name | Description | |
---|---|---|
CellGroupViewsHolderTCellVH |
Name | Description | |
---|---|---|
ContainingCellViewsHolders | The views holders of all containing cells, active or not | |
ItemIndex | Uses base's implementation, but also updates the indices of all containing cells each time the setter is called (Overrides AbstractViewsHolderItemIndex.) | |
NumActiveCells | The number of visible cells, i.e. that are used to display real data. The other ones are disabled and are either empty or hold obsolete data |
Name | Description | |
---|---|---|
CollectViews | Called by [!:Init(GameObject, int, RectTransform, int)], after the GameObjects for the group and all containing cells are instantiated Creates the cells' views holders and initializes them, also setting their itemIndex based on this group's ItemIndex | |
OnGroupIndexChanged | This happens when the views holder is recycled or first created | |
UpdateIndicesOfContainingCells |
Name | Description | |
---|---|---|
_Capacity | ||
_NumActiveCells |