Class NestedListViewController<TData, TItem, TIndex> | Unity Reflect | 1.0.0-preview.11
docs.unity3d.com
    Show / Hide Table of Contents

    Class NestedListViewController<TData, TItem, TIndex>

    Inheritance
    Object
    ListViewControllerBase
    ListViewController<TData, TItem, TIndex>
    NestedListViewController<TData, TItem, TIndex>
    Inherited Members
    ListViewController<TData, TItem, TIndex>.m_Data
    ListViewController<TData, TItem, TIndex>.m_TemplateDictionary
    ListViewController<TData, TItem, TIndex>.m_ListItems
    ListViewController<TData, TItem, TIndex>.m_GrabbedRows
    ListViewController<TData, TItem, TIndex>.data
    ListViewController<TData, TItem, TIndex>.listHeight
    ListViewController<TData, TItem, TIndex>.Awake()
    ListViewController<TData, TItem, TIndex>.Start()
    ListViewController<TData, TItem, TIndex>.UpdateItems()
    ListViewController<TData, TItem, TIndex>.Recycle(TIndex)
    ListViewController<TData, TItem, TIndex>.RecycleItem(String, TItem)
    ListViewController<TData, TItem, TIndex>.UpdateVisibleItem(TData, Int32, Single, Boolean)
    ListViewController<TData, TItem, TIndex>.SetRowGrabbed(TIndex, Transform, Boolean)
    ListViewController<TData, TItem, TIndex>.GetGrabbedRow(Transform)
    ListViewController<TData, TItem, TIndex>.GetListItem(TIndex)
    ListViewController<TData, TItem, TIndex>.GetNewItem(TData, TItem)
    ListViewController<TData, TItem, TIndex>.InstantiateItem(TData)
    ListViewControllerBase.m_ScrollOffset
    ListViewControllerBase.m_Padding
    ListViewControllerBase.m_SettleSpeed
    ListViewControllerBase.m_Templates
    ListViewControllerBase.m_EnableSettling
    ListViewControllerBase.m_Settling
    ListViewControllerBase.m_ItemSize
    ListViewControllerBase.m_StartPosition
    ListViewControllerBase.m_Scrolling
    ListViewControllerBase.m_ScrollReturn
    ListViewControllerBase.m_ScrollDelta
    ListViewControllerBase.m_Size
    ListViewControllerBase.m_Extents
    ListViewControllerBase.scrollOffset
    ListViewControllerBase.scrollSpeed
    ListViewControllerBase.itemSize
    ListViewControllerBase.size
    ListViewControllerBase.Update()
    ListViewControllerBase.UpdateView()
    ListViewControllerBase.ComputeConditions()
    ListViewControllerBase.ScrollNext()
    ListViewControllerBase.ScrollPrevious()
    ListViewControllerBase.ScrollTo(Int32)
    ListViewControllerBase.UpdateItem(IListViewItem, Int32, Single, Boolean)
    ListViewControllerBase.UpdateItemTransform(IListViewItem, Int32, Vector3, Quaternion, Boolean, Boolean)
    ListViewControllerBase.GetObjectSize(GameObject)
    ListViewControllerBase.OnScrollStarted()
    ListViewControllerBase.OnScrollEnded()
    ListViewControllerBase.OnScroll(PointerEventData)
    ListViewControllerBase.StartSettling(Action)
    ListViewControllerBase.EndSettling()
    Namespace: Unity.Labs.ListView
    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
    Type Description
    Single

    m_ExpandStates

    Declaration
    protected readonly Dictionary<TIndex, bool> m_ExpandStates
    Field Value
    Type Description
    Dictionary<TIndex, Boolean>

    m_UpdateStack

    Declaration
    protected readonly Stack<NestedListViewController<TData, TItem, TIndex>.UpdateData> m_UpdateStack
    Field Value
    Type Description
    Stack<NestedListViewController.UpdateData<>>

    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
    Type Description
    Single
    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
    Type Description
    Boolean

    GetNewItem(TData, out TItem)

    Declaration
    protected override bool GetNewItem(TData datum, out TItem item)
    Parameters
    Type Name Description
    TData datum
    TItem item
    Returns
    Type Description
    Boolean
    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

    ScrollToIndex(TData, TIndex, ref Single)

    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
    Type Name Description
    TData datum
    Int32 order
    Single offset
    Int32 depth
    Boolean doneSettling

    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
    Type Name Description
    Int32 order
    Single offset
    Boolean doneSettling
    Int32 depth
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023