Click or drag to resize

GList Class

GList class.
Inheritance Hierarchy
SystemObject
  FairyGUIEventDispatcher
    FairyGUIGObject
      FairyGUIGComponent
        FairyGUIGList

Namespace:  FairyGUI
Assembly:  FairyGUI (in FairyGUI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class GList : GComponent

The GList type exposes the following members.

Constructors
  NameDescription
Public methodGList
Initializes a new instance of the GList class
Top
Properties
  NameDescription
Public propertyactualHeight
actualHeight = height * scaleY
(Inherited from GObject.)
Public propertyactualWidth
actualWidth = width * scalex
(Inherited from GObject.)
Public propertyalign
Public propertyalpha
The opacity of the object. 0 = transparent, 1 = opaque.
(Inherited from GObject.)
Public propertyapexIndex (Inherited from GComponent.)
Public propertyasButton (Inherited from GObject.)
Public propertyasCom (Inherited from GObject.)
Public propertyasComboBox (Inherited from GObject.)
Public propertyasGraph (Inherited from GObject.)
Public propertyasGroup (Inherited from GObject.)
Public propertyasImage (Inherited from GObject.)
Public propertyasLabel (Inherited from GObject.)
Public propertyasList (Inherited from GObject.)
Public propertyasLoader (Inherited from GObject.)
Public propertyasMovieClip (Inherited from GObject.)
Public propertyasProgress (Inherited from GObject.)
Public propertyasRichTextField (Inherited from GObject.)
Public propertyasSlider (Inherited from GObject.)
Public propertyasTextField (Inherited from GObject.)
Public propertyasTextInput (Inherited from GObject.)
Public propertyautoResizeItem
If the item will resize itself to fit the list width/height.
Public propertybaseUserData
(Inherited from GComponent.)
Public propertyblendMode
(Inherited from GObject.)
Public propertychildrenRenderOrder (Inherited from GComponent.)
Public propertyclipSoftness
If clipping softness is set, clipped containers will have soft border effect.
(Inherited from GComponent.)
Public propertycolumnCount
Public propertycolumnGap
Public propertycontainer
Content container. If the component is not clipped, then container==rootContainer.
(Inherited from GComponent.)
Public propertyControllers
Returns controller list.
(Inherited from GComponent.)
Public propertydisplayObject
Lowlevel display object.
(Inherited from GObject.)
Public propertydraggable
(Inherited from GObject.)
Public propertydragging
(Inherited from GObject.)
Public propertyenabled
Enabled is shortcut for grayed and !touchable combination.
(Inherited from GObject.)
Public propertyfairyBatching
Draw call optimization switch.
(Inherited from GComponent.)
Public propertyfilter
(Inherited from GObject.)
Public propertyfocusable
If the object can be focused?
(Inherited from GObject.)
Public propertyfocused
If the object is focused. Focused object can receive key events.
(Inherited from GObject.)
Public propertygameObjectName
设定GameObject的名称
(Inherited from GObject.)
Public propertygearLook
Gear to look controller.
(Inherited from GObject.)
Public propertygearSize
Gear to size controller.
(Inherited from GObject.)
Public propertygearXY
Gear to xy controller.
(Inherited from GObject.)
Public propertygrayed
If true, apply a grayed effect on this object.
(Inherited from GObject.)
Public propertygroup
Group belonging to.
(Inherited from GObject.)
Public propertyheight
The height of the object in pixels.
(Inherited from GObject.)
Public propertyicon
(Inherited from GObject.)
Public propertyid
GObject的id,仅作为内部使用。与name不同,id值是不会相同的。 id is for internal use only.
(Inherited from GObject.)
Public propertyinContainer
If the object has lowlevel displayobject and the displayobject has a container parent?
(Inherited from GObject.)
Public propertyisVirtual
Public propertyitemPool
Public propertylayout
List layout type.
Public propertylineCount
Public propertylineGap
Public propertymargin (Inherited from GComponent.)
Public propertymask
The mask of the component.
(Inherited from GComponent.)
Public propertynumChildren
The number of children of this component.
(Inherited from GComponent.)
Public propertynumItems
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.
Public propertyonAddedToStage
Dispatched when the object was added to the stage.
(Inherited from GObject.)
Public propertyonClick
Dispatched when the object or its child was clicked.
(Inherited from GObject.)
Public propertyonClickItem
Dispatched when a list item being clicked.
Public propertyonClickLink
Dispatched when links in the object or its child was clicked.
(Inherited from GObject.)
Public propertyonDragEnd
Dispatched when drag end.
(Inherited from GObject.)
Public propertyonDragMove
Dispatched when dragging.
(Inherited from GObject.)
Public propertyonDragStart
Dispatched when drag start.
(Inherited from GObject.)
Public propertyonDrop
Dispatched when an object was dragged and dropped to this component.
(Inherited from GComponent.)
Public propertyOnGearStop
(Inherited from GObject.)
Public propertyonKeyDown
Dispatched on key pressed when the object is in focus.
(Inherited from GObject.)
Public propertyonPositionChanged
Dispatched when the object was moved.
(Inherited from GObject.)
Public propertyonRemovedFromStage
Dispatched when the object was removed from the stage.
(Inherited from GObject.)
Public propertyonRightClick
Dispatched when the object or its child was clicked by right mouse button. Web only.
(Inherited from GObject.)
Public propertyonRightClickItem
Dispatched when a list item being clicked with right button.
Public propertyonRollOut
The cursor or finger leave an object.
(Inherited from GObject.)
Public propertyonRollOver
The cursor or finger hovers over an object.
(Inherited from GObject.)
Public propertyonSizeChanged
Dispatched when the object was resized.
(Inherited from GObject.)
Public propertyonStage
If the object is on stage.
(Inherited from GObject.)
Public propertyonTouchBegin
Dispatched when the finger touched the object or its child just now.
(Inherited from GObject.)
Public propertyonTouchEnd
Dispatched when the finger was lifted from the screen or from the mouse button.
(Inherited from GObject.)
Public propertyonTouchMove
(Inherited from GObject.)
Public propertyopaque
If true, mouse/touch events cannot pass through the empty area of the component. Default is true.
(Inherited from GComponent.)
Public propertyparent
Parent object.
(Inherited from GObject.)
Public propertypivot
The x and y coordinates of the object's origin in its own coordinate space.
(Inherited from GObject.)
Public propertypivotAsAnchor (Inherited from GObject.)
Public propertypivotX
The x coordinate of the object's origin in its own coordinate space.
(Inherited from GObject.)
Public propertypivotY
The y coordinate of the object's origin in its own coordinate space.
(Inherited from GObject.)
Public propertypixelSnapping (Inherited from GObject.)
Public propertyposition
The x,y,z coordinates of the object relative to the local coordinates of the parent.
(Inherited from GObject.)
Public propertyrelations
Relations Object.
(Inherited from GObject.)
Public propertyresourceURL
Resource url of this object.
(Inherited from GObject.)
Public propertyreversedMask
(Inherited from GComponent.)
Public propertyroot
(Inherited from GObject.)
Public propertyrootContainer
Root container.
(Inherited from GComponent.)
Public propertyrotation
The rotation around the z axis of the object in degrees.
(Inherited from GObject.)
Public propertyrotationX
The rotation around the x axis of the object in degrees.
(Inherited from GObject.)
Public propertyrotationY
The rotation around the y axis of the object in degrees.
(Inherited from GObject.)
Public propertyscale
The scale factor.
(Inherited from GObject.)
Public propertyscaleX
The horizontal scale factor. '1' means no scale, cannt be negative.
(Inherited from GObject.)
Public propertyscaleY
The vertical scale factor. '1' means no scale, cannt be negative.
(Inherited from GObject.)
Public propertyscrollPane
ScrollPane of the component. If the component is not scrollable, the value is null.
(Inherited from GComponent.)
Public propertyselectedIndex
Public propertyselectionController
Public propertysize
The size of the object in pixels.
(Inherited from GObject.)
Public propertyskew
(Inherited from GObject.)
Public propertysortingOrder
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.)
Public propertytext
(Inherited from GObject.)
Public propertytooltips
Tooltips of this object. UIConfig.tooltipsWin must be set first.
(Inherited from GObject.)
Public propertytouchable
If the object can touch or click. GImage/GTextField is not touchable even it is true.
(Inherited from GObject.)
Public propertytouchItem
获取当前点击哪个item
Public propertyverticalAlign
Public propertyviewHeight
View port height of the container.
(Inherited from GComponent.)
Public propertyviewWidth
Viwe port width of the container.
(Inherited from GComponent.)
Public propertyvisible
The visibility of the object. An invisible object will be untouchable.
(Inherited from GObject.)
Public propertywidth
The width of the object in pixels.
(Inherited from GObject.)
Public propertyx
The x coordinate of the object relative to the local coordinates of the parent.
(Inherited from GObject.)
Public propertyxMin
(Inherited from GObject.)
Public propertyxy
The x and y coordinates of the object relative to the local coordinates of the parent.
(Inherited from GObject.)
Public propertyy
The y coordinate of the object relative to the local coordinates of the parent.
(Inherited from GObject.)
Public propertyyMin
(Inherited from GObject.)
Public propertyz
The z coordinate of the object relative to the local coordinates of the parent.
(Inherited from GObject.)
Top
Methods
  NameDescription
Public methodAddChild
Add a child to the component. It will be at the frontmost position.
(Inherited from GComponent.)
Public methodAddChildAt
Public methodAddController
Adds a controller to the container.
(Inherited from GComponent.)
Public methodAddEventListener(String, EventCallback0)
(Inherited from EventDispatcher.)
Public methodAddEventListener(String, EventCallback1)
(Inherited from EventDispatcher.)
Public methodAddItemFromPool
Add a item to list, same as GetFromPool+AddChild
Public methodAddItemFromPool(String)
Add a item to list, same as GetFromPool+AddChild
Public methodAddRelation(GObject, RelationType)
(Inherited from GObject.)
Public methodAddRelation(GObject, RelationType, Boolean)
(Inherited from GObject.)
Public methodAddSelection
Public methodBroadcastEvent
(Inherited from EventDispatcher.)
Public methodBubbleEvent
(Inherited from EventDispatcher.)
Public methodCenter
Set the object in middle of the parent or GRoot if the parent is not set.
(Inherited from GObject.)
Public methodCenter(Boolean)
Set the object in middle of the parent or GRoot if the parent is not set.
(Inherited from GObject.)
Public methodChildIndexToItemIndex
Public methodClearSelection
Public methodConstructFromResource (Inherited from GComponent.)
Public methodConstructFromXML
Method for extensions to override
(Inherited from GComponent.)
Public methodDispatchEvent(String)
(Inherited from EventDispatcher.)
Public methodDispatchEvent(EventContext)
(Inherited from EventDispatcher.)
Public methodDispatchEvent(String, Object)
(Inherited from EventDispatcher.)
Public methodDispatchEvent(String, Object, Object) (Inherited from EventDispatcher.)
Public methodDispose
Releases all resources used by the GList
(Overrides GComponentDispose.)
Public methodEnsureBoundsCorrect
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.)
Public methodGetChild
Returns a child object with a certain name.
(Inherited from GComponent.)
Public methodGetChildAt
Returns a child object at a certain index. If index out of bounds, exception raised.
(Inherited from GComponent.)
Public methodGetChildIndex
Returns the index of a child within the container, or "-1" if it is not found.
(Inherited from GComponent.)
Public methodGetChildInGroup
Returns a child object belong to a group with a certain name.
(Inherited from GComponent.)
Public methodGetChildren
Returns a copy of all children with an array.
(Inherited from GComponent.)
Public methodGetController
Returns a controller object with a certain name.
(Inherited from GComponent.)
Public methodGetControllerAt
Returns a controller object at a certain index.
(Inherited from GComponent.)
Public methodGetFirstChildInView
Get first child in view.
(Overrides GComponentGetFirstChildInView.)
Public methodGetFromPool
Public methodGetGear (Inherited from GObject.)
Public methodGetSelection
Public methodGetTransition
Returns a transition object at a certain name.
(Inherited from GComponent.)
Public methodGetTransitionAt
Returns a transition object at a certain index.
(Inherited from GComponent.)
Public methodGetVisibleChild
Returns a visible child object with a certain name.
(Inherited from GComponent.)
Public methodGlobalToLocal(Rect)
(Inherited from GObject.)
Public methodGlobalToLocal(Vector2)
Transforms a point from global (Stage) coordinates to the local coordinate system.
(Inherited from GObject.)
Public methodHandleArrowKey
Public methodHandleControllerChanged (Overrides GComponentHandleControllerChanged(Controller).)
Public methodInvalidateBatchingState
Mark the fairy batching state is invalid.
(Inherited from GObject.)
Public methodInvalidateBatchingState(Boolean) (Inherited from GComponent.)
Public methodIsAncestorOf
(Inherited from GComponent.)
Public methodIsChildInView
Test if a child is in view.
(Inherited from GComponent.)
Public methodItemIndexToChildIndex
Public methodLocalToGlobal(Rect)
(Inherited from GObject.)
Public methodLocalToGlobal(Vector2)
Transforms a point from the local coordinate system to global (Stage) coordinates.
(Inherited from GObject.)
Public methodLocalToRoot
Transforms a point from the local coordinate system to GRoot coordinates.
(Inherited from GObject.)
Public methodMakeFullScreen
设置对象为全屏大小(逻辑屏幕)。
(Inherited from GObject.)
Public methodRefreshVirtualList
Public methodRemoveChild(GObject)
Removes a child from the component. If the object is not a child, nothing happens.
(Inherited from GComponent.)
Public methodRemoveChild(GObject, Boolean)
Removes a child from the component. If the object is not a child, nothing happens.
(Inherited from GComponent.)
Public methodRemoveChildAt(Int32)
Removes a child at a certain index. Children above the child will move down.
(Inherited from GComponent.)
Public methodRemoveChildAt(Int32, Boolean)
Public methodRemoveChildren
Remove all children.
(Inherited from GComponent.)
Public methodRemoveChildren(Int32, Int32, Boolean)
Removes a range of children from the container (endIndex included).
(Inherited from GComponent.)
Public methodRemoveChildrenToPool
Public methodRemoveChildrenToPool(Int32, Int32)
Public methodRemoveChildToPool
Public methodRemoveChildToPoolAt
Public methodRemoveController
Removes a controller from the container.
(Inherited from GComponent.)
Public methodRemoveEventListener(String, EventCallback0)
(Inherited from EventDispatcher.)
Public methodRemoveEventListener(String, EventCallback1)
(Inherited from EventDispatcher.)
Public methodRemoveEventListeners
(Inherited from EventDispatcher.)
Public methodRemoveEventListeners(String)
(Inherited from EventDispatcher.)
Public methodRemoveFromParent
(Inherited from GObject.)
Public methodRemoveRelation
(Inherited from GObject.)
Public methodRemoveSelection
Public methodRequestFocus
Request focus on this object.
(Inherited from GObject.)
Public methodResizeToFit(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.
Public methodResizeToFit(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.
Public methodRootToLocal
Transforms a point from the GRoot coordinate to local coordinates system.
(Inherited from GObject.)
Public methodScrollToView(Int32)
Scroll the list to make an item with certain index visible.
Public methodScrollToView(Int32, Boolean)
Scroll the list to make an item with certain index visible.
Public methodScrollToView(Int32, Boolean, Boolean)
Scroll the list to make an item with certain index visible.
Public methodSelectAll
Public methodSelectNone
Public methodSelectReverse
Public methodSetBoundsChangedFlag
Notify the component the bounds should recaculate.
(Inherited from GComponent.)
Public methodSetChildIndex
Moves a child to a certain index. Children at and after the replaced position move up.
(Inherited from GComponent.)
Public methodSetChildIndexBefore
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.)
Public methodSetHome
(Inherited from GObject.)
Public methodSetPivot(Single, Single)
Change the x and y coordinates of the object's origin in its own coordinate space.
(Inherited from GObject.)
Public methodSetPivot(Single, Single, Boolean)
Change the x and y coordinates of the object's origin in its own coordinate space.
(Inherited from GObject.)
Public methodSetPosition
change the x,y,z coordinates of the object relative to the local coordinates of the parent.
(Inherited from GObject.)
Public methodSetScale
Change the scale factor.
(Inherited from GObject.)
Public methodSetSize(Single, Single)
Change size.
(Inherited from GObject.)
Public methodSetSize(Single, Single, Boolean)
Change size.
(Inherited from GObject.)
Public methodSetup_AfterAdd (Overrides GComponentSetup_AfterAdd(ByteBuffer, Int32).)
Public methodSetup_BeforeAdd (Overrides GObjectSetup_BeforeAdd(ByteBuffer, Int32).)
Public methodSetVirtual
Set the list to be virtual list. 设置列表为虚拟列表模式。在虚拟列表模式下,列表不会为每一条列表数据创建一个实体对象,而是根据视口大小创建最小量的显示对象,然后通过itemRenderer指定的回调函数设置列表数据。 在虚拟模式下,你不能通过AddChild、RemoveChild等方式管理列表,只能通过设置numItems设置列表数据的长度。 如果要刷新列表,可以通过重新设置numItems,或者调用RefreshVirtualList完成。 ‘单行’或者‘单列’的列表布局可支持不等高的列表项目。 除了‘页面’的列表布局,其他布局均支持使用不同资源构建列表项目,你可以在itemProvider里返回。如果不提供,默认使用defaultItem。
Public methodSetVirtualAndLoop
Set the list to be virtual list, and has loop behavior.
Public methodSetXY(Single, Single)
change the x and y coordinates of the object relative to the local coordinates of the parent.
(Inherited from GObject.)
Public methodSetXY(Single, Single, Boolean)
(Inherited from GObject.)
Public methodStartDrag
(Inherited from GObject.)
Public methodStartDrag(Int32)
(Inherited from GObject.)
Public methodStopDrag
(Inherited from GObject.)
Public methodSwapChildren
Swaps the indexes of two children.
(Inherited from GComponent.)
Public methodSwapChildrenAt
Swaps the indexes of two children.
(Inherited from GComponent.)
Public methodTransformPoint
(Inherited from GObject.)
Public methodTransformRect
(Inherited from GObject.)
Public methodTweenFade (Inherited from GObject.)
Public methodTweenMove (Inherited from GObject.)
Public methodTweenMoveX (Inherited from GObject.)
Public methodTweenMoveY (Inherited from GObject.)
Public methodTweenResize (Inherited from GObject.)
Public methodTweenRotate (Inherited from GObject.)
Public methodTweenScale (Inherited from GObject.)
Public methodTweenScaleX (Inherited from GObject.)
Public methodTweenScaleY (Inherited from GObject.)
Public methodWorldToLocal(Vector3)
(Inherited from GObject.)
Public methodWorldToLocal(Vector3, Camera)
(Inherited from GObject.)
Top
Fields
  NameDescription
Public fielddata
User defined data.
(Inherited from GObject.)
Public fielddefaultItem
Resource url of the default item.
Public fielddragBounds
Restricted range of dragging.
(Inherited from GObject.)
Public fieldfoldInvisibleItems
如果true,当item不可见时自动折叠,否则依然占位
Public fieldinitHeight
The initial height of the object.
(Inherited from GObject.)
Public fieldinitWidth
The initial width of the object.
(Inherited from GObject.)
Public fielditemProvider
Callback funtion to return item resource url.
Public fielditemRenderer
Callback function when an item is needed to update its look.
Public fieldmaxHeight
(Inherited from GObject.)
Public fieldmaxWidth
(Inherited from GObject.)
Public fieldminHeight
(Inherited from GObject.)
Public fieldminWidth
(Inherited from GObject.)
Public fieldname
Name of the object.
(Inherited from GObject.)
Public fieldpackageItem
(Inherited from GObject.)
Public fieldscrollItemToViewOnClick
Public fieldselectionMode
List selection mode
Public fieldsourceHeight
The source height of the object.
(Inherited from GObject.)
Public fieldsourceWidth
The source width of the object.
(Inherited from GObject.)
Top
See Also