跳到主要内容

Container

命名空间:FairyGUI
源码:Assets/Scripts/Core/Container.cs (行 11)

public class Container : DisplayObject

继承:EventDispatcher → DisplayObject → Container

继承成员​

DisplayObject

onPaint, _contentRect, _flags, _paintingInfo, _paintingMode, _vertexMatrix, gOwner, id, name, AddToBatch, CreateGameObject, DestroyGameObject, EnsureSizeCorrect, EnterPaintingMode, GetScreenShot, GlobalToLocal, LeavePaintingMode, LocalToGlobal, LocalToWorld, OnSizeChanged, RemoveFromParent, SetGameObject, SetLayer, SetPosition, SetRenderingOrder, SetScale, SetSize, SetXY, TransformPoint, TransformRect, TransformRectPoint, WorldToLocal, alpha, blendMode, cacheAsBitmap, cachedTransform, cursor, filter, focalLength, focusable, focused, gameObject, graphics, grayed, height, home, isDisposed, layer, location, material, onAddedToStage, onClickLink, onClick, onFocusIn, onFocusOut, onKeyDown, onMouseWheel, onRemovedFromStage, onRightClick, onRollOut, onRollOver, onTouchBegin, onTouchEnd, onTouchMove, paintingGraphics, paintingMode, parent, perspective, pivot, pixelPerfect, position, renderingOrder, rotationX, rotationY, rotation, scaleX, scaleY, scale, shader, size, skew, stage, tabStop, topmost, touchDisabled, touchable, visible, width, worldSpaceContainer, xy, x, y, z

EventDispatcher

AddCapture, AddEventListener, BroadcastEvent, BubbleEvent, DispatchEvent, RemoveCapture, RemoveEventListener, RemoveEventListeners, hasEventListeners, isDispatching

构造函数​

Container()​

public Container();

源码:Core/Container.cs (行 64)

Container(GameObject)​

public Container(GameObject attachTarget);
参数类型说明
attachTargetGameObject

源码:Core/Container.cs (行 86)

Container(string)​

public Container(string gameObjectName);
参数类型说明
gameObjectNamestring

源码:Core/Container.cs (行 75)

事件​

onUpdate​

public event Action onUpdate;

源码:Core/Container.cs (行 46)

字段​

clipSoftness​

public Vector4? clipSoftness;

源码:Core/Container.cs (行 31)

hitArea​

public IHitTest hitArea;

源码:Core/Container.cs (行 36)

opaque​

public bool opaque;

源码:Core/Container.cs (行 26)

renderCamera​

public Camera renderCamera;

源码:Core/Container.cs (行 21)

renderMode​

public RenderMode renderMode;

源码:Core/Container.cs (行 16)

reversedMask​

public bool reversedMask;

源码:Core/Container.cs (行 51)

touchChildren​

public bool touchChildren;

源码:Core/Container.cs (行 41)

方法​

AddChild(DisplayObject)​

public DisplayObject AddChild(DisplayObject child);
参数类型说明
childDisplayObject

源码:Core/Container.cs (行 112)

AddChildAt(DisplayObject, int)​

public DisplayObject AddChildAt(DisplayObject child, int index);
参数类型说明
childDisplayObject
indexint

源码:Core/Container.cs (行 124)

ChangeChildrenOrder(IList<int>, IList<DisplayObject>)​

public void ChangeChildrenOrder(IList<int> indice, IList<DisplayObject> objs);
参数类型说明
indiceIList<int>
objsIList<DisplayObject>

源码:Core/Container.cs (行 368)

Contains(DisplayObject)​

public bool Contains(DisplayObject child);
参数类型说明
childDisplayObject

源码:Core/Container.cs (行 165)

CreateGraphics()​

public void CreateGraphics();

源码:Core/Container.cs (行 427)

Dispose()​

public override void Dispose();

源码:Core/Container.cs (行 980)

GetBounds(DisplayObject)​

public override Rect GetBounds(DisplayObject targetSpace);
参数类型说明
targetSpaceDisplayObject

源码:Core/Container.cs (行 436)

GetChild(string)​

public DisplayObject GetChild(string name);
参数类型说明
namestring

源码:Core/Container.cs (行 185)

GetChildAt(int)​

public DisplayObject GetChildAt(int index);
参数类型说明
indexint

源码:Core/Container.cs (行 175)

GetChildIndex(DisplayObject)​

public int GetChildIndex(DisplayObject child);
参数类型说明
childDisplayObject

源码:Core/Container.cs (行 211)

GetChildren()​

public DisplayObject[] GetChildren();

源码:Core/Container.cs (行 201)

GetDescendants(bool)​

public IEnumerator<DisplayObject> GetDescendants(bool backward);
参数类型说明
backwardbool

源码:Core/Container.cs (行 386)

GetRenderCamera()​

public Camera GetRenderCamera();

源码:Core/Container.cs (行 477)

HitTest()​

override protected DisplayObject HitTest();

源码:Core/Container.cs (行 537)

HitTest(Vector2, bool)​

public DisplayObject HitTest(Vector2 stagePoint, bool forTouch);
参数类型说明
stagePointVector2
forTouchbool

源码:Core/Container.cs (行 506)

InvalidateBatchingState(bool)​

public void InvalidateBatchingState(bool childrenChanged);
参数类型说明
childrenChangedbool

源码:Core/Container.cs (行 707)

IsAncestorOf(DisplayObject)​

public bool IsAncestorOf(DisplayObject obj);
参数类型说明
objDisplayObject

源码:Core/Container.cs (行 648)

RemoveChild(DisplayObject)​

public DisplayObject RemoveChild(DisplayObject child);
参数类型说明
childDisplayObject

源码:Core/Container.cs (行 221)

RemoveChild(DisplayObject, bool)​

public DisplayObject RemoveChild(DisplayObject child, bool dispose);
参数类型说明
childDisplayObject
disposebool

源码:Core/Container.cs (行 232)

RemoveChildAt(int)​

public DisplayObject RemoveChildAt(int index);
参数类型说明
indexint

源码:Core/Container.cs (行 249)

RemoveChildAt(int, bool)​

public DisplayObject RemoveChildAt(int index, bool dispose);
参数类型说明
indexint
disposebool

源码:Core/Container.cs (行 260)

RemoveChildren()​

public void RemoveChildren();

源码:Core/Container.cs (行 297)

RemoveChildren(int, int, bool)​

public void RemoveChildren(int beginIndex, int endIndex, bool dispose);
参数类型说明
beginIndexint
endIndexint
disposebool

源码:Core/Container.cs (行 308)

SetChildIndex(DisplayObject, int)​

public void SetChildIndex(DisplayObject child, int index);
参数类型说明
childDisplayObject
indexint

源码:Core/Container.cs (行 322)

SetChildrenLayer(int)​

public void SetChildrenLayer(int value);
参数类型说明
valueint

源码:Core/Container.cs (行 731)

SwapChildren(DisplayObject, DisplayObject)​

public void SwapChildren(DisplayObject child1, DisplayObject child2);
参数类型说明
child1DisplayObject
child2DisplayObject

源码:Core/Container.cs (行 340)

SwapChildrenAt(int, int)​

public void SwapChildrenAt(int index1, int index2);
参数类型说明
index1int
index2int

源码:Core/Container.cs (行 354)

Update(UpdateContext)​

override public void Update(UpdateContext context);
参数类型说明
contextUpdateContext

源码:Core/Container.cs (行 746)

属性​

clipRect​

public Rect? clipRect { get; set; }

源码:Core/Container.cs (行 394)

fairyBatching​

public bool fairyBatching { get; set; }

源码:Core/Container.cs (行 667)

mask​

public DisplayObject mask { get; set; }

源码:Core/Container.cs (行 410)

numChildren​

public int numChildren { get; }

源码:Core/Container.cs (行 102)

tabStopChildren​

public bool tabStopChildren { get; set; }

If true, when the container is focused, tab navigation is lock inside it.

源码:Core/Container.cs (行 999)