GList Class |
Namespace: FairyGUI
public class GList : GComponent
The GList type exposes the following members.
Name | Description | |
---|---|---|
![]() | actualHeight |
actualHeight = height * scaleY
(Inherited from GObject.) |
![]() | actualWidth |
actualWidth = width * scalex
(Inherited from GObject.) |
![]() | align | |
![]() | alpha |
The opacity of the object. 0 = transparent, 1 = opaque.
(Inherited from GObject.) |
![]() | apexIndex | (Inherited from GComponent.) |
![]() | asButton | (Inherited from GObject.) |
![]() | asCom | (Inherited from GObject.) |
![]() | asComboBox | (Inherited from GObject.) |
![]() | asGraph | (Inherited from GObject.) |
![]() | asGroup | (Inherited from GObject.) |
![]() | asImage | (Inherited from GObject.) |
![]() | asLabel | (Inherited from GObject.) |
![]() | asList | (Inherited from GObject.) |
![]() | asLoader | (Inherited from GObject.) |
![]() | asMovieClip | (Inherited from GObject.) |
![]() | asProgress | (Inherited from GObject.) |
![]() | asRichTextField | (Inherited from GObject.) |
![]() | asSlider | (Inherited from GObject.) |
![]() | asTextField | (Inherited from GObject.) |
![]() | asTextInput | (Inherited from GObject.) |
![]() | autoResizeItem |
If the item will resize itself to fit the list width/height.
|
![]() | baseUserData | (Inherited from GComponent.) |
![]() | blendMode | (Inherited from GObject.) |
![]() | childrenRenderOrder | (Inherited from GComponent.) |
![]() | clipSoftness |
If clipping softness is set, clipped containers will have soft border effect.
(Inherited from GComponent.) |
![]() | columnCount | |
![]() | columnGap | |
![]() | container |
Content container. If the component is not clipped, then container==rootContainer.
(Inherited from GComponent.) |
![]() | Controllers |
Returns controller list.
(Inherited from GComponent.) |
![]() | displayObject |
Lowlevel display object.
(Inherited from GObject.) |
![]() | draggable | (Inherited from GObject.) |
![]() | dragging | (Inherited from GObject.) |
![]() | enabled |
Enabled is shortcut for grayed and !touchable combination.
(Inherited from GObject.) |
![]() | fairyBatching |
Draw call optimization switch.
(Inherited from GComponent.) |
![]() | filter | (Inherited from GObject.) |
![]() | focusable |
If the object can be focused?
(Inherited from GObject.) |
![]() | focused |
If the object is focused. Focused object can receive key events.
(Inherited from GObject.) |
![]() | gameObjectName |
设定GameObject的名称
(Inherited from GObject.) |
![]() | gearLook |
Gear to look controller.
(Inherited from GObject.) |
![]() | gearSize |
Gear to size controller.
(Inherited from GObject.) |
![]() | gearXY |
Gear to xy controller.
(Inherited from GObject.) |
![]() | grayed |
If true, apply a grayed effect on this object.
(Inherited from GObject.) |
![]() | group |
Group belonging to.
(Inherited from GObject.) |
![]() | height |
The height of the object in pixels.
(Inherited from GObject.) |
![]() | icon | (Inherited from GObject.) |
![]() | id |
GObject的id,仅作为内部使用。与name不同,id值是不会相同的。
id is for internal use only.
(Inherited from GObject.) |
![]() | inContainer |
If the object has lowlevel displayobject and the displayobject has a container parent?
(Inherited from GObject.) |
![]() | isVirtual | |
![]() | itemPool | |
![]() | layout |
List layout type.
|
![]() | lineCount | |
![]() | lineGap | |
![]() | margin | (Inherited from GComponent.) |
![]() | mask |
The mask of the component.
(Inherited from GComponent.) |
![]() | numChildren |
The number of children of this component.
(Inherited from GComponent.) |
![]() | numItems |
Set the list item count.
If the list is not virtual, specified number of items will be created.
If the list is virtual, only items in view will be created.
|
![]() | onAddedToStage |
Dispatched when the object was added to the stage.
(Inherited from GObject.) |
![]() | onClick |
Dispatched when the object or its child was clicked.
(Inherited from GObject.) |
![]() | onClickItem |
Dispatched when a list item being clicked.
|
![]() | onClickLink |
Dispatched when links in the object or its child was clicked.
(Inherited from GObject.) |
![]() | onDragEnd |
Dispatched when drag end.
(Inherited from GObject.) |
![]() | onDragMove |
Dispatched when dragging.
(Inherited from GObject.) |
![]() | onDragStart |
Dispatched when drag start.
(Inherited from GObject.) |
![]() | onDrop |
Dispatched when an object was dragged and dropped to this component.
(Inherited from GComponent.) |
![]() | OnGearStop | (Inherited from GObject.) |
![]() | onKeyDown |
Dispatched on key pressed when the object is in focus.
(Inherited from GObject.) |
![]() | onPositionChanged |
Dispatched when the object was moved.
(Inherited from GObject.) |
![]() | onRemovedFromStage |
Dispatched when the object was removed from the stage.
(Inherited from GObject.) |
![]() | onRightClick |
Dispatched when the object or its child was clicked by right mouse button. Web only.
(Inherited from GObject.) |
![]() | onRightClickItem |
Dispatched when a list item being clicked with right button.
|
![]() | onRollOut |
The cursor or finger leave an object.
(Inherited from GObject.) |
![]() | onRollOver |
The cursor or finger hovers over an object.
(Inherited from GObject.) |
![]() | onSizeChanged |
Dispatched when the object was resized.
(Inherited from GObject.) |
![]() | onStage |
If the object is on stage.
(Inherited from GObject.) |
![]() | onTouchBegin |
Dispatched when the finger touched the object or its child just now.
(Inherited from GObject.) |
![]() | onTouchEnd |
Dispatched when the finger was lifted from the screen or from the mouse button.
(Inherited from GObject.) |
![]() | onTouchMove | (Inherited from GObject.) |
![]() | opaque |
If true, mouse/touch events cannot pass through the empty area of the component. Default is true.
(Inherited from GComponent.) |
![]() | parent |
Parent object.
(Inherited from GObject.) |
![]() | pivot |
The x and y coordinates of the object's origin in its own coordinate space.
(Inherited from GObject.) |
![]() | pivotAsAnchor | (Inherited from GObject.) |
![]() | pivotX |
The x coordinate of the object's origin in its own coordinate space.
(Inherited from GObject.) |
![]() | pivotY |
The y coordinate of the object's origin in its own coordinate space.
(Inherited from GObject.) |
![]() | pixelSnapping | (Inherited from GObject.) |
![]() | position |
The x,y,z coordinates of the object relative to the local coordinates of the parent.
(Inherited from GObject.) |
![]() | relations |
Relations Object.
(Inherited from GObject.) |
![]() | resourceURL |
Resource url of this object.
(Inherited from GObject.) |
![]() | reversedMask | (Inherited from GComponent.) |
![]() | root | (Inherited from GObject.) |
![]() | rootContainer |
Root container.
(Inherited from GComponent.) |
![]() | rotation |
The rotation around the z axis of the object in degrees.
(Inherited from GObject.) |
![]() | rotationX |
The rotation around the x axis of the object in degrees.
(Inherited from GObject.) |
![]() | rotationY |
The rotation around the y axis of the object in degrees.
(Inherited from GObject.) |
![]() | scale |
The scale factor.
(Inherited from GObject.) |
![]() | scaleX |
The horizontal scale factor. '1' means no scale, cannt be negative.
(Inherited from GObject.) |
![]() | scaleY |
The vertical scale factor. '1' means no scale, cannt be negative.
(Inherited from GObject.) |
![]() | scrollPane |
ScrollPane of the component. If the component is not scrollable, the value is null.
(Inherited from GComponent.) |
![]() | selectedIndex | |
![]() | selectionController | |
![]() | size |
The size of the object in pixels.
(Inherited from GObject.) |
![]() | skew | (Inherited from GObject.) |
![]() | sortingOrder |
By default(when sortingOrder==0), object added to component is arrange by the added roder.
The bigger is the sorting order, the object is more in front.
(Inherited from GObject.) |
![]() | text | (Inherited from GObject.) |
![]() | tooltips |
Tooltips of this object. UIConfig.tooltipsWin must be set first.
(Inherited from GObject.) |
![]() | touchable |
If the object can touch or click. GImage/GTextField is not touchable even it is true.
(Inherited from GObject.) |
![]() | touchItem |
获取当前点击哪个item
|
![]() | verticalAlign | |
![]() | viewHeight |
View port height of the container.
(Inherited from GComponent.) |
![]() | viewWidth |
Viwe port width of the container.
(Inherited from GComponent.) |
![]() | visible |
The visibility of the object. An invisible object will be untouchable.
(Inherited from GObject.) |
![]() | width |
The width of the object in pixels.
(Inherited from GObject.) |
![]() | x |
The x coordinate of the object relative to the local coordinates of the parent.
(Inherited from GObject.) |
![]() | xMin | (Inherited from GObject.) |
![]() | xy |
The x and y coordinates of the object relative to the local coordinates of the parent.
(Inherited from GObject.) |
![]() | y |
The y coordinate of the object relative to the local coordinates of the parent.
(Inherited from GObject.) |
![]() | yMin | (Inherited from GObject.) |
![]() | z |
The z coordinate of the object relative to the local coordinates of the parent.
(Inherited from GObject.) |
Name | Description | |
---|---|---|
![]() | AddChild |
Add a child to the component. It will be at the frontmost position.
(Inherited from GComponent.) |
![]() | AddChildAt | (Overrides GComponent.AddChildAt(GObject, Int32).) |
![]() | AddController |
Adds a controller to the container.
(Inherited from GComponent.) |
![]() | AddEventListener(String, EventCallback0) | (Inherited from EventDispatcher.) |
![]() | AddEventListener(String, EventCallback1) | (Inherited from EventDispatcher.) |
![]() | AddItemFromPool() |
Add a item to list, same as GetFromPool+AddChild
|
![]() | AddItemFromPool(String) |
Add a item to list, same as GetFromPool+AddChild
|
![]() | AddRelation(GObject, RelationType) | (Inherited from GObject.) |
![]() | AddRelation(GObject, RelationType, Boolean) | (Inherited from GObject.) |
![]() | AddSelection | |
![]() | BroadcastEvent | (Inherited from EventDispatcher.) |
![]() | BubbleEvent | (Inherited from EventDispatcher.) |
![]() | Center() |
Set the object in middle of the parent or GRoot if the parent is not set.
(Inherited from GObject.) |
![]() | Center(Boolean) |
Set the object in middle of the parent or GRoot if the parent is not set.
(Inherited from GObject.) |
![]() | ChildIndexToItemIndex | |
![]() | ClearSelection | |
![]() | ConstructFromResource | (Inherited from GComponent.) |
![]() | ConstructFromXML |
Method for extensions to override
(Inherited from GComponent.) |
![]() | DispatchEvent(String) | (Inherited from EventDispatcher.) |
![]() | DispatchEvent(EventContext) | (Inherited from EventDispatcher.) |
![]() | DispatchEvent(String, Object) | (Inherited from EventDispatcher.) |
![]() | DispatchEvent(String, Object, Object) | (Inherited from EventDispatcher.) |
![]() | Dispose | Releases all resources used by the GList (Overrides GComponent.Dispose().) |
![]() | EnsureBoundsCorrect |
Make sure the bounds of the component is correct.
Bounds of the component is not updated on every changed. For example, you add a new child to the list, children in the list will be rearranged in next frame.
If you want to access the correct child position immediatelly, call this function first.
(Inherited from GComponent.) |
![]() | GetChild |
Returns a child object with a certain name.
(Inherited from GComponent.) |
![]() | GetChildAt |
Returns a child object at a certain index. If index out of bounds, exception raised.
(Inherited from GComponent.) |
![]() | GetChildIndex |
Returns the index of a child within the container, or "-1" if it is not found.
(Inherited from GComponent.) |
![]() | GetChildInGroup |
Returns a child object belong to a group with a certain name.
(Inherited from GComponent.) |
![]() | GetChildren |
Returns a copy of all children with an array.
(Inherited from GComponent.) |
![]() | GetController |
Returns a controller object with a certain name.
(Inherited from GComponent.) |
![]() | GetControllerAt |
Returns a controller object at a certain index.
(Inherited from GComponent.) |
![]() | GetFirstChildInView |
Get first child in view.
(Overrides GComponent.GetFirstChildInView().) |
![]() | GetFromPool | |
![]() | GetGear | (Inherited from GObject.) |
![]() | GetSelection | |
![]() | GetTransition |
Returns a transition object at a certain name.
(Inherited from GComponent.) |
![]() | GetTransitionAt |
Returns a transition object at a certain index.
(Inherited from GComponent.) |
![]() | GetVisibleChild |
Returns a visible child object with a certain name.
(Inherited from GComponent.) |
![]() | GlobalToLocal(Rect) | (Inherited from GObject.) |
![]() | GlobalToLocal(Vector2) |
Transforms a point from global (Stage) coordinates to the local coordinate system.
(Inherited from GObject.) |
![]() | HandleArrowKey | |
![]() | HandleControllerChanged | (Overrides GComponent.HandleControllerChanged(Controller).) |
![]() | InvalidateBatchingState() |
Mark the fairy batching state is invalid.
(Inherited from GObject.) |
![]() | InvalidateBatchingState(Boolean) | (Inherited from GComponent.) |
![]() | IsAncestorOf | (Inherited from GComponent.) |
![]() | IsChildInView |
Test if a child is in view.
(Inherited from GComponent.) |
![]() | ItemIndexToChildIndex | |
![]() | LocalToGlobal(Rect) | (Inherited from GObject.) |
![]() | LocalToGlobal(Vector2) |
Transforms a point from the local coordinate system to global (Stage) coordinates.
(Inherited from GObject.) |
![]() | LocalToRoot |
Transforms a point from the local coordinate system to GRoot coordinates.
(Inherited from GObject.) |
![]() | MakeFullScreen |
设置对象为全屏大小(逻辑屏幕)。
(Inherited from GObject.) |
![]() | RefreshVirtualList | |
![]() | RemoveChild(GObject) |
Removes a child from the component. If the object is not a child, nothing happens.
(Inherited from GComponent.) |
![]() | RemoveChild(GObject, Boolean) |
Removes a child from the component. If the object is not a child, nothing happens.
(Inherited from GComponent.) |
![]() | RemoveChildAt(Int32) |
Removes a child at a certain index. Children above the child will move down.
(Inherited from GComponent.) |
![]() | RemoveChildAt(Int32, Boolean) | (Overrides GComponent.RemoveChildAt(Int32, Boolean).) |
![]() | RemoveChildren() |
Remove all children.
(Inherited from GComponent.) |
![]() | RemoveChildren(Int32, Int32, Boolean) |
Removes a range of children from the container (endIndex included).
(Inherited from GComponent.) |
![]() | RemoveChildrenToPool() | |
![]() | RemoveChildrenToPool(Int32, Int32) | |
![]() | RemoveChildToPool | |
![]() | RemoveChildToPoolAt | |
![]() | RemoveController |
Removes a controller from the container.
(Inherited from GComponent.) |
![]() | RemoveEventListener(String, EventCallback0) | (Inherited from EventDispatcher.) |
![]() | RemoveEventListener(String, EventCallback1) | (Inherited from EventDispatcher.) |
![]() | RemoveEventListeners() | (Inherited from EventDispatcher.) |
![]() | RemoveEventListeners(String) | (Inherited from EventDispatcher.) |
![]() | RemoveFromParent | (Inherited from GObject.) |
![]() | RemoveRelation | (Inherited from GObject.) |
![]() | RemoveSelection | |
![]() | RequestFocus |
Request focus on this object.
(Inherited from GObject.) |
![]() | ResizeToFit(Int32) |
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(Int32, Int32) |
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.
|
![]() | RootToLocal |
Transforms a point from the GRoot coordinate to local coordinates system.
(Inherited from GObject.) |
![]() | ScrollToView(Int32) |
Scroll the list to make an item with certain index visible.
|
![]() | ScrollToView(Int32, Boolean) |
Scroll the list to make an item with certain index visible.
|
![]() | ScrollToView(Int32, Boolean, Boolean) |
Scroll the list to make an item with certain index visible.
|
![]() | SelectAll | |
![]() | SelectNone | |
![]() | SelectReverse | |
![]() | SetBoundsChangedFlag |
Notify the component the bounds should recaculate.
(Inherited from GComponent.) |
![]() | SetChildIndex |
Moves a child to a certain index. Children at and after the replaced position move up.
(Inherited from GComponent.) |
![]() | SetChildIndexBefore |
Moves a child to a certain position which is in front of the child previously at given index.
与SetChildIndex不同的是,如果child原来在index的前面,那么child插入的位置是index-1,即保证排在原来占据index的对象的前面。
(Inherited from GComponent.) |
![]() | SetHome | (Inherited from GObject.) |
![]() | SetPivot(Single, Single) |
Change the x and y coordinates of the object's origin in its own coordinate space.
(Inherited from GObject.) |
![]() | SetPivot(Single, Single, Boolean) |
Change the x and y coordinates of the object's origin in its own coordinate space.
(Inherited from GObject.) |
![]() | SetPosition |
change the x,y,z coordinates of the object relative to the local coordinates of the parent.
(Inherited from GObject.) |
![]() | SetScale |
Change the scale factor.
(Inherited from GObject.) |
![]() | SetSize(Single, Single) |
Change size.
(Inherited from GObject.) |
![]() | SetSize(Single, Single, Boolean) |
Change size.
(Inherited from GObject.) |
![]() | Setup_AfterAdd | (Overrides GComponent.Setup_AfterAdd(ByteBuffer, Int32).) |
![]() | Setup_BeforeAdd | (Overrides GObject.Setup_BeforeAdd(ByteBuffer, Int32).) |
![]() | SetVirtual |
Set the list to be virtual list.
设置列表为虚拟列表模式。在虚拟列表模式下,列表不会为每一条列表数据创建一个实体对象,而是根据视口大小创建最小量的显示对象,然后通过itemRenderer指定的回调函数设置列表数据。
在虚拟模式下,你不能通过AddChild、RemoveChild等方式管理列表,只能通过设置numItems设置列表数据的长度。
如果要刷新列表,可以通过重新设置numItems,或者调用RefreshVirtualList完成。
‘单行’或者‘单列’的列表布局可支持不等高的列表项目。
除了‘页面’的列表布局,其他布局均支持使用不同资源构建列表项目,你可以在itemProvider里返回。如果不提供,默认使用defaultItem。
|
![]() | SetVirtualAndLoop |
Set the list to be virtual list, and has loop behavior.
|
![]() | SetXY(Single, Single) |
change the x and y coordinates of the object relative to the local coordinates of the parent.
(Inherited from GObject.) |
![]() | SetXY(Single, Single, Boolean) | (Inherited from GObject.) |
![]() | StartDrag() | (Inherited from GObject.) |
![]() | StartDrag(Int32) | (Inherited from GObject.) |
![]() | StopDrag | (Inherited from GObject.) |
![]() | SwapChildren |
Swaps the indexes of two children.
(Inherited from GComponent.) |
![]() | SwapChildrenAt |
Swaps the indexes of two children.
(Inherited from GComponent.) |
![]() | TransformPoint | (Inherited from GObject.) |
![]() | TransformRect | (Inherited from GObject.) |
![]() | TweenFade | (Inherited from GObject.) |
![]() | TweenMove | (Inherited from GObject.) |
![]() | TweenMoveX | (Inherited from GObject.) |
![]() | TweenMoveY | (Inherited from GObject.) |
![]() | TweenResize | (Inherited from GObject.) |
![]() | TweenRotate | (Inherited from GObject.) |
![]() | TweenScale | (Inherited from GObject.) |
![]() | TweenScaleX | (Inherited from GObject.) |
![]() | TweenScaleY | (Inherited from GObject.) |
![]() | WorldToLocal(Vector3) | (Inherited from GObject.) |
![]() | WorldToLocal(Vector3, Camera) | (Inherited from GObject.) |
Name | Description | |
---|---|---|
![]() | data |
User defined data.
(Inherited from GObject.) |
![]() | defaultItem |
Resource url of the default item.
|
![]() | dragBounds |
Restricted range of dragging.
(Inherited from GObject.) |
![]() | foldInvisibleItems |
如果true,当item不可见时自动折叠,否则依然占位
|
![]() | initHeight |
The initial height of the object.
(Inherited from GObject.) |
![]() | initWidth |
The initial width of the object.
(Inherited from GObject.) |
![]() | itemProvider |
Callback funtion to return item resource url.
|
![]() | itemRenderer |
Callback function when an item is needed to update its look.
|
![]() | maxHeight | (Inherited from GObject.) |
![]() | maxWidth | (Inherited from GObject.) |
![]() | minHeight | (Inherited from GObject.) |
![]() | minWidth | (Inherited from GObject.) |
![]() | name |
Name of the object.
(Inherited from GObject.) |
![]() | packageItem | (Inherited from GObject.) |
![]() | scrollItemToViewOnClick | |
![]() | selectionMode |
List selection mode
|
![]() | sourceHeight |
The source height of the object.
(Inherited from GObject.) |
![]() | sourceWidth |
The source width of the object.
(Inherited from GObject.) |