Свойство | Тип | Описание | |
---|---|---|---|
autoResizeItem | bool | ||
defaultItem | string | ||
foldInvisibleItems | bool | ||
itemProvider | ListItemProvider | ||
itemRenderer | ListItemRenderer | ||
scrollItemToViewOnClick | bool | ||
selectionMode | ListSelectionMode |
Метод | Описание | |
---|---|---|
AddChildAt ( |
|
|
AddItemFromPool ( ) : |
Add a item to list, same as GetFromPool+AddChild
|
|
AddItemFromPool ( string url ) : |
Add a item to list, same as GetFromPool+AddChild
|
|
AddSelection ( int index, bool scrollItToView ) : void |
|
|
AdjustItemsSize ( ) : void |
|
|
CheckVirtualList ( ) : void | ||
ChildIndexToItemIndex ( int index ) : int | ||
ClearSelection ( ) : void |
|
|
ClearSelectionExcept ( |
||
Dispose ( ) : void | ||
GList ( ) : System | ||
GetFirstChildInView ( ) : int |
Get first child in view.
|
|
GetFromPool ( string url ) : |
|
|
GetSelection ( ) : List |
|
|
HandleArchOrder1 ( ) : void | ||
HandleArchOrder2 ( ) : void | ||
HandleArrowKey ( int dir ) : void |
|
|
HandleScroll ( bool forceUpdate ) : void | ||
HandleScroll1 ( bool forceUpdate ) : void | ||
HandleScroll2 ( bool forceUpdate ) : void | ||
HandleScroll3 ( bool forceUpdate ) : void | ||
ItemIndexToChildIndex ( int index ) : int | ||
RefreshVirtualList ( ) : void | ||
RefreshVirtualList ( object param ) : void | ||
RemoveChildAt ( int index, bool dispose ) : |
|
|
RemoveChildToPool ( |
|
|
RemoveChildToPoolAt ( int index ) : void |
|
|
RemoveChildrenToPool ( ) : void |
|
|
RemoveChildrenToPool ( int beginIndex, int endIndex ) : void |
|
|
RemoveSelection ( int index ) : void |
|
|
ResizeToFit ( int itemCount ) : void |
Resize to list size to fit specified item count. If list layout is single column or flow horizontally, the height will change to fit. If list layout is single row or flow vertically, the width will change to fit.
|
|
ResizeToFit ( int itemCount, int minSize ) : void |
Resize to list size to fit specified item count. If list layout is single column or flow horizontally, the height will change to fit. If list layout is single row or flow vertically, the width will change to fit.
|
|
ReturnToPool ( |
||
ScrollToView ( int index ) : void |
Scroll the list to make an item with certain index visible.
|
|
ScrollToView ( int index, bool ani ) : void |
Scroll the list to make an item with certain index visible.
|
|
ScrollToView ( int index, bool ani, bool setFirst ) : void |
Scroll the list to make an item with certain index visible.
|
|
SelectAll ( ) : void |
|
|
SelectNone ( ) : void |
|
|
SelectReverse ( ) : void |
|
|
SetSelectionOnEvent ( |
||
SetVirtual ( ) : void |
Set the list to be virtual list. 设置列表为虚拟列表模式。在虚拟列表模式下,列表不会为每一条列表数据创建一个实体对象,而是根据视口大小创建最小量的显示对象,然后通过itemRenderer指定的回调函数设置列表数据。 在虚拟模式下,你不能通过AddChild、RemoveChild等方式管理列表,只能通过设置numItems设置列表数据的长度。 如果要刷新列表,可以通过重新设置numItems,或者调用RefreshVirtualList完成。 ‘单行’或者‘单列’的列表布局可支持不等高的列表项目。 除了‘页面’的列表布局,其他布局均支持使用不同资源构建列表项目,你可以在itemProvider里返回。如果不提供,默认使用defaultItem。
|
|
SetVirtual ( bool loop ) : void | ||
SetVirtualAndLoop ( ) : void |
Set the list to be virtual list, and has loop behavior.
|
|
SetVirtualListChangedFlag ( bool layoutChanged ) : void | ||
Setup_BeforeAdd ( |
||
__clickItem ( |
||
__itemTouchBegin ( |
||
__scrolled ( |
Метод | Описание | |
---|---|---|
GetSnappingPosition ( float &xValue, float &yValue ) : void | ||
HandleSizeChanged ( ) : void |
|
|
UpdateBounds ( ) : void |
Метод | Описание | |
---|---|---|
GetIndexOnPos1 ( float &pos, bool forceUpdate ) : int | ||
GetIndexOnPos2 ( float &pos, bool forceUpdate ) : int | ||
GetIndexOnPos3 ( float &pos, bool forceUpdate ) : int | ||
HandleAlign ( float contentWidth, float contentHeight ) : void |
public AddChildAt ( |
||
child | ||
index | int | |
Результат |
public AddItemFromPool ( string url ) : |
||
url | string | Item resource url |
Результат |
public AddSelection ( int index, bool scrollItToView ) : void | ||
index | int | |
scrollItToView | bool | |
Результат | void |
public ChildIndexToItemIndex ( int index ) : int | ||
index | int | |
Результат | int |
public ClearSelectionExcept ( |
||
obj | ||
Результат | void |
public GetFromPool ( string url ) : |
||
url | string | |
Результат |
protected GetSnappingPosition ( float &xValue, float &yValue ) : void | ||
xValue | float | |
yValue | float | |
Результат | void |
public HandleScroll ( bool forceUpdate ) : void | ||
forceUpdate | bool | |
Результат | void |
public HandleScroll1 ( bool forceUpdate ) : void | ||
forceUpdate | bool | |
Результат | void |
public HandleScroll2 ( bool forceUpdate ) : void | ||
forceUpdate | bool | |
Результат | void |
public HandleScroll3 ( bool forceUpdate ) : void | ||
forceUpdate | bool | |
Результат | void |
public ItemIndexToChildIndex ( int index ) : int | ||
index | int | |
Результат | int |
public RefreshVirtualList ( object param ) : void | ||
param | object | |
Результат | void |
public RemoveChildAt ( int index, bool dispose ) : |
||
index | int | |
dispose | bool | |
Результат |
public RemoveChildToPool ( |
||
child | ||
Результат | void |
public RemoveChildToPoolAt ( int index ) : void | ||
index | int | |
Результат | void |
public RemoveChildrenToPool ( int beginIndex, int endIndex ) : void | ||
beginIndex | int | |
endIndex | int | |
Результат | void |
public RemoveSelection ( int index ) : void | ||
index | int | |
Результат | void |
public ResizeToFit ( int itemCount ) : void | ||
itemCount | int | Item count |
Результат | void |
public ResizeToFit ( int itemCount, int minSize ) : void | ||
itemCount | int | >Item count |
minSize | int | If the result size if smaller than minSize, then use minSize. |
Результат | void |
public ReturnToPool ( |
||
obj | ||
Результат | void |
public ScrollToView ( int index ) : void | ||
index | int | Item index |
Результат | void |
public ScrollToView ( int index, bool ani ) : void | ||
index | int | Item index |
ani | bool | True to scroll smoothly, othewise immdediately. |
Результат | void |
public ScrollToView ( int index, bool ani, bool setFirst ) : void | ||
index | int | Item index |
ani | bool | True to scroll smoothly, othewise immdediately. |
setFirst | bool | If true, scroll to make the target on the top/left; If false, scroll to make the target any position in view. |
Результат | void |
public SetSelectionOnEvent ( |
||
item | ||
evt | FairyGUI.InputEvent | |
Результат | void |
public SetVirtualListChangedFlag ( bool layoutChanged ) : void | ||
layoutChanged | bool | |
Результат | void |
public Setup_BeforeAdd ( |
||
xml | ||
Результат | void |
public __clickItem ( |
||
context | ||
Результат | void |
public __itemTouchBegin ( |
||
context | ||
Результат | void |
public __scrolled ( |
||
context | ||
Результат | void |