C# 클래스 FairyGUI.GList

상속: GComponent
파일 보기 프로젝트 열기: fairygui/FairyGUI-unity 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
autoResizeItem bool
defaultItem string
foldInvisibleItems bool
itemProvider ListItemProvider
itemRenderer ListItemRenderer
scrollItemToViewOnClick bool
selectionMode ListSelectionMode

공개 메소드들

메소드 설명
AddChildAt ( GObject child, int index ) : GObject

AddItemFromPool ( ) : GObject

Add a item to list, same as GetFromPool+AddChild

AddItemFromPool ( string url ) : GObject

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 ( GObject obj ) : void
Dispose ( ) : void
GList ( ) : System
GetFirstChildInView ( ) : int

Get first child in view.

GetFromPool ( string url ) : GObject

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 ) : GObject

RemoveChildToPool ( GObject child ) : void

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 ( GObject obj ) : void
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 ( GObject item, FairyGUI.InputEvent evt ) : void
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 ( XML xml ) : void
__clickItem ( EventContext context ) : void
__itemTouchBegin ( EventContext context ) : void
__scrolled ( EventContext context ) : void

보호된 메소드들

메소드 설명
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

메소드 상세

AddChildAt() 공개 메소드

public AddChildAt ( GObject child, int index ) : GObject
child GObject
index int
리턴 GObject

AddItemFromPool() 공개 메소드

Add a item to list, same as GetFromPool+AddChild
public AddItemFromPool ( ) : GObject
리턴 GObject

AddItemFromPool() 공개 메소드

Add a item to list, same as GetFromPool+AddChild
public AddItemFromPool ( string url ) : GObject
url string Item resource url
리턴 GObject

AddSelection() 공개 메소드

public AddSelection ( int index, bool scrollItToView ) : void
index int
scrollItToView bool
리턴 void

AdjustItemsSize() 공개 메소드

public AdjustItemsSize ( ) : void
리턴 void

CheckVirtualList() 공개 메소드

public CheckVirtualList ( ) : void
리턴 void

ChildIndexToItemIndex() 공개 메소드

public ChildIndexToItemIndex ( int index ) : int
index int
리턴 int

ClearSelection() 공개 메소드

public ClearSelection ( ) : void
리턴 void

ClearSelectionExcept() 공개 메소드

public ClearSelectionExcept ( GObject obj ) : void
obj GObject
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

GList() 공개 메소드

public GList ( ) : System
리턴 System

GetFirstChildInView() 공개 메소드

Get first child in view.
public GetFirstChildInView ( ) : int
리턴 int

GetFromPool() 공개 메소드

public GetFromPool ( string url ) : GObject
url string
리턴 GObject

GetSelection() 공개 메소드

public GetSelection ( ) : List
리턴 List

GetSnappingPosition() 보호된 메소드

protected GetSnappingPosition ( float &xValue, float &yValue ) : void
xValue float
yValue float
리턴 void

HandleArchOrder1() 공개 메소드

public HandleArchOrder1 ( ) : void
리턴 void

HandleArchOrder2() 공개 메소드

public HandleArchOrder2 ( ) : void
리턴 void

HandleArrowKey() 공개 메소드

public HandleArrowKey ( int dir ) : void
dir int
리턴 void

HandleScroll() 공개 메소드

public HandleScroll ( bool forceUpdate ) : void
forceUpdate bool
리턴 void

HandleScroll1() 공개 메소드

public HandleScroll1 ( bool forceUpdate ) : void
forceUpdate bool
리턴 void

HandleScroll2() 공개 메소드

public HandleScroll2 ( bool forceUpdate ) : void
forceUpdate bool
리턴 void

HandleScroll3() 공개 메소드

public HandleScroll3 ( bool forceUpdate ) : void
forceUpdate bool
리턴 void

HandleSizeChanged() 보호된 메소드

protected HandleSizeChanged ( ) : void
리턴 void

ItemIndexToChildIndex() 공개 메소드

public ItemIndexToChildIndex ( int index ) : int
index int
리턴 int

RefreshVirtualList() 공개 메소드

public RefreshVirtualList ( ) : void
리턴 void

RefreshVirtualList() 공개 메소드

public RefreshVirtualList ( object param ) : void
param object
리턴 void

RemoveChildAt() 공개 메소드

public RemoveChildAt ( int index, bool dispose ) : GObject
index int
dispose bool
리턴 GObject

RemoveChildToPool() 공개 메소드

public RemoveChildToPool ( GObject child ) : void
child GObject
리턴 void

RemoveChildToPoolAt() 공개 메소드

public RemoveChildToPoolAt ( int index ) : void
index int
리턴 void

RemoveChildrenToPool() 공개 메소드

public RemoveChildrenToPool ( ) : void
리턴 void

RemoveChildrenToPool() 공개 메소드

public RemoveChildrenToPool ( int beginIndex, int endIndex ) : void
beginIndex int
endIndex int
리턴 void

RemoveSelection() 공개 메소드

public RemoveSelection ( int index ) : void
index int
리턴 void

ResizeToFit() 공개 메소드

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.
public ResizeToFit ( int itemCount ) : void
itemCount int Item count
리턴 void

ResizeToFit() 공개 메소드

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.
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

ReturnToPool() 공개 메소드

public ReturnToPool ( GObject obj ) : void
obj GObject
리턴 void

ScrollToView() 공개 메소드

Scroll the list to make an item with certain index visible.
public ScrollToView ( int index ) : void
index int Item index
리턴 void

ScrollToView() 공개 메소드

Scroll the list to make an item with certain index visible.
public ScrollToView ( int index, bool ani ) : void
index int Item index
ani bool True to scroll smoothly, othewise immdediately.
리턴 void

ScrollToView() 공개 메소드

Scroll the list to make an item with certain index visible.
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

SelectAll() 공개 메소드

public SelectAll ( ) : void
리턴 void

SelectNone() 공개 메소드

public SelectNone ( ) : void
리턴 void

SelectReverse() 공개 메소드

public SelectReverse ( ) : void
리턴 void

SetSelectionOnEvent() 공개 메소드

public SetSelectionOnEvent ( GObject item, FairyGUI.InputEvent evt ) : void
item GObject
evt FairyGUI.InputEvent
리턴 void

SetVirtual() 공개 메소드

Set the list to be virtual list. 设置列表为虚拟列表模式。在虚拟列表模式下,列表不会为每一条列表数据创建一个实体对象,而是根据视口大小创建最小量的显示对象,然后通过itemRenderer指定的回调函数设置列表数据。 在虚拟模式下,你不能通过AddChild、RemoveChild等方式管理列表,只能通过设置numItems设置列表数据的长度。 如果要刷新列表,可以通过重新设置numItems,或者调用RefreshVirtualList完成。 ‘单行’或者‘单列’的列表布局可支持不等高的列表项目。 除了‘页面’的列表布局,其他布局均支持使用不同资源构建列表项目,你可以在itemProvider里返回。如果不提供,默认使用defaultItem。
public SetVirtual ( ) : void
리턴 void

SetVirtual() 공개 메소드

public SetVirtual ( bool loop ) : void
loop bool
리턴 void

SetVirtualAndLoop() 공개 메소드

Set the list to be virtual list, and has loop behavior.
public SetVirtualAndLoop ( ) : void
리턴 void

SetVirtualListChangedFlag() 공개 메소드

public SetVirtualListChangedFlag ( bool layoutChanged ) : void
layoutChanged bool
리턴 void

Setup_BeforeAdd() 공개 메소드

public Setup_BeforeAdd ( XML xml ) : void
xml FairyGUI.Utils.XML
리턴 void

UpdateBounds() 보호된 메소드

protected UpdateBounds ( ) : void
리턴 void

__clickItem() 공개 메소드

public __clickItem ( EventContext context ) : void
context EventContext
리턴 void

__itemTouchBegin() 공개 메소드

public __itemTouchBegin ( EventContext context ) : void
context EventContext
리턴 void

__scrolled() 공개 메소드

public __scrolled ( EventContext context ) : void
context EventContext
리턴 void

프로퍼티 상세

autoResizeItem 공개적으로 프로퍼티

If the item will resize itself to fit the list width/height.
public bool autoResizeItem
리턴 bool

defaultItem 공개적으로 프로퍼티

Resource url of the default item.
public string defaultItem
리턴 string

foldInvisibleItems 공개적으로 프로퍼티

如果true,当item不可见时自动折叠,否则依然占位
public bool foldInvisibleItems
리턴 bool

itemProvider 공개적으로 프로퍼티

Callback funtion to return item resource url.
public ListItemProvider itemProvider
리턴 ListItemProvider

itemRenderer 공개적으로 프로퍼티

Callback function when an item is needed to update its look.
public ListItemRenderer itemRenderer
리턴 ListItemRenderer

scrollItemToViewOnClick 공개적으로 프로퍼티

public bool scrollItemToViewOnClick
리턴 bool

selectionMode 공개적으로 프로퍼티

List selection mode
public ListSelectionMode selectionMode
리턴 ListSelectionMode