Skip to main content

Container

Namespace:FairyGUI
Source:Assets/Scripts/Core/Container.cs (line 11)

public class Container : DisplayObject

Inheritance:EventDispatcher → DisplayObject → Container

Inherited members​

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

Constructors​

Container()​

public Container();

Source:Core/Container.cs (line 64)

Container(GameObject)​

public Container(GameObject attachTarget);
ParameterTypeDescription
attachTargetGameObject

Source:Core/Container.cs (line 86)

Container(string)​

public Container(string gameObjectName);
ParameterTypeDescription
gameObjectNamestring

Source:Core/Container.cs (line 75)

Events​

onUpdate​

public event Action onUpdate;

Source:Core/Container.cs (line 46)

Fields​

clipSoftness​

public Vector4? clipSoftness;

Source:Core/Container.cs (line 31)

hitArea​

public IHitTest hitArea;

Source:Core/Container.cs (line 36)

opaque​

public bool opaque;

Source:Core/Container.cs (line 26)

renderCamera​

public Camera renderCamera;

Source:Core/Container.cs (line 21)

renderMode​

public RenderMode renderMode;

Source:Core/Container.cs (line 16)

reversedMask​

public bool reversedMask;

Source:Core/Container.cs (line 51)

touchChildren​

public bool touchChildren;

Source:Core/Container.cs (line 41)

Methods​

AddChild(DisplayObject)​

public DisplayObject AddChild(DisplayObject child);
ParameterTypeDescription
childDisplayObject

Source:Core/Container.cs (line 112)

AddChildAt(DisplayObject, int)​

public DisplayObject AddChildAt(DisplayObject child, int index);
ParameterTypeDescription
childDisplayObject
indexint

Source:Core/Container.cs (line 124)

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

public void ChangeChildrenOrder(IList<int> indice, IList<DisplayObject> objs);
ParameterTypeDescription
indiceIList<int>
objsIList<DisplayObject>

Source:Core/Container.cs (line 368)

Contains(DisplayObject)​

public bool Contains(DisplayObject child);
ParameterTypeDescription
childDisplayObject

Source:Core/Container.cs (line 165)

CreateGraphics()​

public void CreateGraphics();

Source:Core/Container.cs (line 427)

Dispose()​

public override void Dispose();

Source:Core/Container.cs (line 980)

GetBounds(DisplayObject)​

public override Rect GetBounds(DisplayObject targetSpace);
ParameterTypeDescription
targetSpaceDisplayObject

Source:Core/Container.cs (line 436)

GetChild(string)​

public DisplayObject GetChild(string name);
ParameterTypeDescription
namestring

Source:Core/Container.cs (line 185)

GetChildAt(int)​

public DisplayObject GetChildAt(int index);
ParameterTypeDescription
indexint

Source:Core/Container.cs (line 175)

GetChildIndex(DisplayObject)​

public int GetChildIndex(DisplayObject child);
ParameterTypeDescription
childDisplayObject

Source:Core/Container.cs (line 211)

GetChildren()​

public DisplayObject[] GetChildren();

Source:Core/Container.cs (line 201)

GetDescendants(bool)​

public IEnumerator<DisplayObject> GetDescendants(bool backward);
ParameterTypeDescription
backwardbool

Source:Core/Container.cs (line 386)

GetRenderCamera()​

public Camera GetRenderCamera();

Source:Core/Container.cs (line 477)

HitTest()​

override protected DisplayObject HitTest();

Source:Core/Container.cs (line 537)

HitTest(Vector2, bool)​

public DisplayObject HitTest(Vector2 stagePoint, bool forTouch);
ParameterTypeDescription
stagePointVector2
forTouchbool

Source:Core/Container.cs (line 506)

InvalidateBatchingState(bool)​

public void InvalidateBatchingState(bool childrenChanged);
ParameterTypeDescription
childrenChangedbool

Source:Core/Container.cs (line 707)

IsAncestorOf(DisplayObject)​

public bool IsAncestorOf(DisplayObject obj);
ParameterTypeDescription
objDisplayObject

Source:Core/Container.cs (line 648)

RemoveChild(DisplayObject)​

public DisplayObject RemoveChild(DisplayObject child);
ParameterTypeDescription
childDisplayObject

Source:Core/Container.cs (line 221)

RemoveChild(DisplayObject, bool)​

public DisplayObject RemoveChild(DisplayObject child, bool dispose);
ParameterTypeDescription
childDisplayObject
disposebool

Source:Core/Container.cs (line 232)

RemoveChildAt(int)​

public DisplayObject RemoveChildAt(int index);
ParameterTypeDescription
indexint

Source:Core/Container.cs (line 249)

RemoveChildAt(int, bool)​

public DisplayObject RemoveChildAt(int index, bool dispose);
ParameterTypeDescription
indexint
disposebool

Source:Core/Container.cs (line 260)

RemoveChildren()​

public void RemoveChildren();

Source:Core/Container.cs (line 297)

RemoveChildren(int, int, bool)​

public void RemoveChildren(int beginIndex, int endIndex, bool dispose);
ParameterTypeDescription
beginIndexint
endIndexint
disposebool

Source:Core/Container.cs (line 308)

SetChildIndex(DisplayObject, int)​

public void SetChildIndex(DisplayObject child, int index);
ParameterTypeDescription
childDisplayObject
indexint

Source:Core/Container.cs (line 322)

SetChildrenLayer(int)​

public void SetChildrenLayer(int value);
ParameterTypeDescription
valueint

Source:Core/Container.cs (line 731)

SwapChildren(DisplayObject, DisplayObject)​

public void SwapChildren(DisplayObject child1, DisplayObject child2);
ParameterTypeDescription
child1DisplayObject
child2DisplayObject

Source:Core/Container.cs (line 340)

SwapChildrenAt(int, int)​

public void SwapChildrenAt(int index1, int index2);
ParameterTypeDescription
index1int
index2int

Source:Core/Container.cs (line 354)

Update(UpdateContext)​

override public void Update(UpdateContext context);
ParameterTypeDescription
contextUpdateContext

Source:Core/Container.cs (line 746)

Properties​

clipRect​

public Rect? clipRect { get; set; }

Source:Core/Container.cs (line 394)

fairyBatching​

public bool fairyBatching { get; set; }

Source:Core/Container.cs (line 667)

mask​

public DisplayObject mask { get; set; }

Source:Core/Container.cs (line 410)

numChildren​

public int numChildren { get; }

Source:Core/Container.cs (line 102)

tabStopChildren​

public bool tabStopChildren { get; set; }

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

Source:Core/Container.cs (line 999)