Class NestedListViewController<TData, TItem, TIndex>
Inheritance
NestedListViewController<TData, TItem, TIndex>
Syntax
public abstract class NestedListViewController<TData, TItem, TIndex> : ListViewController<TData, TItem, TIndex>, IScrollHandler where TData : class, INestedListViewItemData<TData, TIndex> where TItem : class, INestedListViewItem<TData, TIndex>
Type Parameters
Name |
Description |
TData |
|
TItem |
|
TIndex |
|
Fields
m_ExpandedDataLength
Declaration
protected float m_ExpandedDataLength
Field Value
m_ExpandStates
Declaration
protected readonly Dictionary<TIndex, bool> m_ExpandStates
Field Value
m_UpdateStack
Declaration
protected readonly Stack<NestedListViewController<TData, TItem, TIndex>.UpdateData> m_UpdateStack
Field Value
Properties
data
Declaration
public override List<TData> data { get; set; }
Property Value
Type |
Description |
List<TData> |
|
Overrides
Unity.Labs.ListView.ListViewController<TData, TItem, TIndex>.data
listHeight
Declaration
protected override float listHeight { get; }
Property Value
Overrides
Unity.Labs.ListView.ListViewController<TData, TItem, TIndex>.listHeight
Methods
Awake()
Declaration
protected override void Awake()
Overrides
Unity.Labs.ListView.ListViewController<TData, TItem, TIndex>.Awake()
GetExpanded(TIndex)
Declaration
protected bool GetExpanded(TIndex index)
Parameters
Type |
Name |
Description |
TIndex |
index |
|
Returns
GetNewItem(TData, out TItem)
Declaration
protected override bool GetNewItem(TData datum, out TItem item)
Parameters
Type |
Name |
Description |
TData |
datum |
|
TItem |
item |
|
Returns
Overrides
Unity.Labs.ListView.ListViewController<TData, TItem, TIndex>.GetNewItem(TData, TItem)
RecycleChildren(TData)
Declaration
protected void RecycleChildren(TData datum)
Parameters
Type |
Name |
Description |
TData |
datum |
|
Declaration
protected void ScrollToIndex(TData container, TIndex targetIndex, ref float scrollHeight)
Parameters
Type |
Name |
Description |
TData |
container |
|
TIndex |
targetIndex |
|
Single |
scrollHeight |
|
SetExpanded(TIndex, Boolean)
Declaration
protected void SetExpanded(TIndex index, bool expanded)
Parameters
Type |
Name |
Description |
TIndex |
index |
|
Boolean |
expanded |
|
ToggleExpanded(TData)
Declaration
protected virtual void ToggleExpanded(TData datum)
Parameters
Type |
Name |
Description |
TData |
datum |
|
UpdateItems()
Declaration
protected override void UpdateItems()
Overrides
Unity.Labs.ListView.ListViewController<TData, TItem, TIndex>.UpdateItems()
UpdateNestedItem(TData, Int32, Single, Int32, ref Boolean)
Declaration
protected virtual void UpdateNestedItem(TData datum, int order, float offset, int depth, ref bool doneSettling)
Parameters
UpdateNestedItems(ref Int32, ref Single, ref Boolean, Int32)
Declaration
protected virtual void UpdateNestedItems(ref int order, ref float offset, ref bool doneSettling, int depth = 0)
Parameters