C# Class NSUListView.IUListView

Inheritance: UnityEngine.MonoBehaviour
Exibir arquivo Open project: tnqiang/Unity_ListView

Public Properties

Property Type Description
layout Layout
needMask bool
spacing UnityEngine.Vector2

Protected Properties

Property Type Description
content UnityEngine.RectTransform
initialized bool
lastStartInex int
leftTopCorner UnityEngine.Vector2
lstData List
scrollRect ScrollRect
scrollRectSize UnityEngine.Vector2

Public Methods

Method Description
GetContentSize ( ) : Vector2

Gets the rect tranform size of the content of the ScrollRect

GetDataCount ( ) : int

Gets the data count. default return 1

GetItemAnchorPos ( int index ) : Vector2

Gets the anchor position of the item indexed index Assume that anchorMin = anchorMax = pivot = new Vector(0.5f, 0.5f)

GetItemGameObject ( int index ) : GameObject

Gets the item game object.

GetItemSize ( int index ) : Vector2

Gets the size of the item of specified index

GetMaxShowItemNum ( ) : int

Gets the max show item number.

GetStartIndex ( ) : int

Gets the start index of the item to be shown

HideNonuseableItems ( ) : void

Hides the nonuseable items.

Init ( ) : void
OnClick ( int index ) : void

Raises the click event.

OnPointerClick ( PointerEventData eventData ) : void

Raises the pointer enter event.

OnProgress ( float progress ) : void

Raises the progress event when progress change

SetData ( List lstData ) : void

Protected Methods

Method Description
GetCurrentShowItemNum ( ) : int

Gets the current show item number.

RefreshListView ( ) : void

Private Methods

Method Description
GetTopLeftCornerScreenPoint ( ) : Vector2

Gets the top left corner screen point.

OnValueChanged ( Vector2 pos ) : void

Method Details

GetContentSize() public abstract method

Gets the rect tranform size of the content of the ScrollRect
public abstract GetContentSize ( ) : Vector2
return UnityEngine.Vector2

GetCurrentShowItemNum() protected method

Gets the current show item number.
protected GetCurrentShowItemNum ( ) : int
return int

GetDataCount() public method

Gets the data count. default return 1
public GetDataCount ( ) : int
return int

GetItemAnchorPos() public abstract method

Gets the anchor position of the item indexed index Assume that anchorMin = anchorMax = pivot = new Vector(0.5f, 0.5f)
public abstract GetItemAnchorPos ( int index ) : Vector2
index int index of item
return UnityEngine.Vector2

GetItemGameObject() public abstract method

Gets the item game object.
public abstract GetItemGameObject ( int index ) : GameObject
index int Index.
return UnityEngine.GameObject

GetItemSize() public abstract method

Gets the size of the item of specified index
public abstract GetItemSize ( int index ) : Vector2
index int Index.
return UnityEngine.Vector2

GetMaxShowItemNum() public abstract method

Gets the max show item number.
public abstract GetMaxShowItemNum ( ) : int
return int

GetStartIndex() public abstract method

Gets the start index of the item to be shown
public abstract GetStartIndex ( ) : int
return int

HideNonuseableItems() public abstract method

Hides the nonuseable items.
public abstract HideNonuseableItems ( ) : void
return void

Init() public method

public Init ( ) : void
return void

OnClick() public method

Raises the click event.
public OnClick ( int index ) : void
index int
return void

OnPointerClick() public method

Raises the pointer enter event.
public OnPointerClick ( PointerEventData eventData ) : void
eventData PointerEventData Event data.
return void

OnProgress() public method

Raises the progress event when progress change
public OnProgress ( float progress ) : void
progress float Progress.
return void

RefreshListView() protected method

protected RefreshListView ( ) : void
return void

SetData() public method

public SetData ( List lstData ) : void
lstData List
return void

Property Details

content protected_oe property

protected RectTransform,UnityEngine content
return UnityEngine.RectTransform

initialized protected_oe property

protected bool initialized
return bool

lastStartInex protected_oe property

protected int lastStartInex
return int

layout public_oe property

public Layout layout
return Layout

leftTopCorner protected_oe property

protected Vector2,UnityEngine leftTopCorner
return UnityEngine.Vector2

lstData protected_oe property

protected List lstData
return List

needMask public_oe property

public bool needMask
return bool

scrollRect protected_oe property

protected ScrollRect scrollRect
return ScrollRect

scrollRectSize protected_oe property

protected Vector2,UnityEngine scrollRectSize
return UnityEngine.Vector2

spacing public_oe property

public Vector2,UnityEngine spacing
return UnityEngine.Vector2