Class Element | UIWidgets | 1.5.4-preview.12
docs.unity3d.com
    Show / Hide Table of Contents

    Class Element

    Inheritance
    Object
    Diagnosticable
    DiagnosticableTree
    Element
    ComponentElement
    RenderObjectElement
    Inherited Members
    DiagnosticableTree.toStringShallow(String, DiagnosticLevel)
    DiagnosticableTree.toStringDeep(String, String, DiagnosticLevel)
    DiagnosticableTree.toDiagnosticsNode(String, DiagnosticsTreeStyle)
    Diagnosticable.ToString()
    Diagnosticable.toString(DiagnosticLevel)
    Namespace: Unity.UIWidgets.widgets
    Syntax
    public abstract class Element : DiagnosticableTree, BuildContext

    Constructors

    Element(Widget)

    Declaration
    protected Element(Widget widget)
    Parameters
    Type Name Description
    Widget widget

    Fields

    _active

    Declaration
    public bool _active
    Field Value
    Type Description
    Boolean

    Properties

    depth

    Declaration
    public int depth { get; }
    Property Value
    Type Description
    Int32

    dirty

    Declaration
    public bool dirty { get; }
    Property Value
    Type Description
    Boolean

    owner

    Declaration
    public BuildOwner owner { get; }
    Property Value
    Type Description
    BuildOwner
    Implements
    BuildContext.owner

    renderObject

    Declaration
    public virtual RenderObject renderObject { get; }
    Property Value
    Type Description
    RenderObject

    size

    Declaration
    public Size size { get; }
    Property Value
    Type Description
    Size
    Implements
    BuildContext.size

    slot

    Declaration
    public object slot { get; }
    Property Value
    Type Description
    Object

    widget

    Declaration
    public Widget widget { get; }
    Property Value
    Type Description
    Widget
    Implements
    BuildContext.widget

    Methods

    activate()

    Declaration
    public virtual void activate()

    ancestorInheritedElementForWidgetOfExactType(Type)

    Declaration
    public virtual InheritedElement ancestorInheritedElementForWidgetOfExactType(Type targetType)
    Parameters
    Type Name Description
    Type targetType
    Returns
    Type Description
    InheritedElement
    Implements
    BuildContext.ancestorInheritedElementForWidgetOfExactType(Type)

    ancestorRenderObjectOfType(TypeMatcher)

    Declaration
    public virtual RenderObject ancestorRenderObjectOfType(TypeMatcher matcher)
    Parameters
    Type Name Description
    TypeMatcher matcher
    Returns
    Type Description
    RenderObject
    Implements
    BuildContext.ancestorRenderObjectOfType(TypeMatcher)

    ancestorStateOfType(TypeMatcher)

    Declaration
    public virtual State ancestorStateOfType(TypeMatcher matcher)
    Parameters
    Type Name Description
    TypeMatcher matcher
    Returns
    Type Description
    State
    Implements
    BuildContext.ancestorStateOfType(TypeMatcher)

    ancestorWidgetOfExactType(Type)

    Declaration
    public virtual Widget ancestorWidgetOfExactType(Type targetType)
    Parameters
    Type Name Description
    Type targetType
    Returns
    Type Description
    Widget
    Implements
    BuildContext.ancestorWidgetOfExactType(Type)

    attachRenderObject(Object)

    Declaration
    public virtual void attachRenderObject(object newSlot)
    Parameters
    Type Name Description
    Object newSlot

    deactivate()

    Declaration
    public virtual void deactivate()

    deactivateChild(Element)

    Declaration
    protected void deactivateChild(Element child)
    Parameters
    Type Name Description
    Element child

    debugDeactivated()

    Declaration
    public virtual void debugDeactivated()

    debugDescribeChildren()

    Declaration
    public override List<DiagnosticsNode> debugDescribeChildren()
    Returns
    Type Description
    List<DiagnosticsNode>
    Overrides
    DiagnosticableTree.debugDescribeChildren()

    debugFillProperties(DiagnosticPropertiesBuilder)

    Declaration
    public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
    Parameters
    Type Name Description
    DiagnosticPropertiesBuilder properties
    Overrides
    Diagnosticable.debugFillProperties(DiagnosticPropertiesBuilder)

    debugGetCreatorChain(Int32)

    Declaration
    public string debugGetCreatorChain(int limit)
    Parameters
    Type Name Description
    Int32 limit
    Returns
    Type Description
    String

    debugGetDiagnosticChain()

    Declaration
    public List<Element> debugGetDiagnosticChain()
    Returns
    Type Description
    List<Element>

    debugVisitOnstageChildren(ElementVisitor)

    Declaration
    public virtual void debugVisitOnstageChildren(ElementVisitor visitor)
    Parameters
    Type Name Description
    ElementVisitor visitor

    detachRenderObject()

    Declaration
    public virtual void detachRenderObject()

    didChangeDependencies()

    Declaration
    public virtual void didChangeDependencies()

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    Boolean
    Overrides
    Object.Equals(Object)

    findRenderObject()

    Declaration
    public RenderObject findRenderObject()
    Returns
    Type Description
    RenderObject
    Implements
    BuildContext.findRenderObject()

    forgetChild(Element)

    Declaration
    protected abstract void forgetChild(Element child)
    Parameters
    Type Name Description
    Element child

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    Object.GetHashCode()

    inflateWidget(Widget, Object)

    Declaration
    protected Element inflateWidget(Widget newWidget, object newSlot)
    Parameters
    Type Name Description
    Widget newWidget
    Object newSlot
    Returns
    Type Description
    Element

    inheritFromElement(InheritedElement, Object)

    Declaration
    public virtual InheritedWidget inheritFromElement(InheritedElement ancestor, object aspect = null)
    Parameters
    Type Name Description
    InheritedElement ancestor
    Object aspect
    Returns
    Type Description
    InheritedWidget
    Implements
    BuildContext.inheritFromElement(InheritedElement, Object)

    inheritFromWidgetOfExactType(Type, Object)

    Declaration
    public virtual InheritedWidget inheritFromWidgetOfExactType(Type targetType, object aspect = null)
    Parameters
    Type Name Description
    Type targetType
    Object aspect
    Returns
    Type Description
    InheritedWidget
    Implements
    BuildContext.inheritFromWidgetOfExactType(Type, Object)

    markNeedsBuild()

    Declaration
    public void markNeedsBuild()

    mount(Element, Object)

    Declaration
    public virtual void mount(Element parent, object newSlot)
    Parameters
    Type Name Description
    Element parent
    Object newSlot

    performRebuild()

    Declaration
    protected abstract void performRebuild()

    rebuild()

    Declaration
    public void rebuild()

    rootAncestorStateOfType(TypeMatcher)

    Declaration
    public virtual State rootAncestorStateOfType(TypeMatcher matcher)
    Parameters
    Type Name Description
    TypeMatcher matcher
    Returns
    Type Description
    State
    Implements
    BuildContext.rootAncestorStateOfType(TypeMatcher)

    toStringShort()

    Declaration
    public override string toStringShort()
    Returns
    Type Description
    String
    Overrides
    DiagnosticableTree.toStringShort()

    unmount()

    Declaration
    public virtual void unmount()

    update(Widget)

    Declaration
    public virtual void update(Widget newWidget)
    Parameters
    Type Name Description
    Widget newWidget

    updateChild(Element, Widget, Object)

    Declaration
    protected virtual Element updateChild(Element child, Widget newWidget, object newSlot)
    Parameters
    Type Name Description
    Element child
    Widget newWidget
    Object newSlot
    Returns
    Type Description
    Element

    updateSlotForChild(Element, Object)

    Declaration
    protected void updateSlotForChild(Element child, object newSlot)
    Parameters
    Type Name Description
    Element child
    Object newSlot

    visitAncestorElements(ElementVisitorBool)

    Declaration
    public virtual void visitAncestorElements(ElementVisitorBool visitor)
    Parameters
    Type Name Description
    ElementVisitorBool visitor
    Implements
    BuildContext.visitAncestorElements(ElementVisitorBool)

    visitChildElements(ElementVisitor)

    Declaration
    public void visitChildElements(ElementVisitor visitor)
    Parameters
    Type Name Description
    ElementVisitor visitor
    Implements
    BuildContext.visitChildElements(ElementVisitor)

    visitChildren(ElementVisitor)

    Declaration
    public virtual void visitChildren(ElementVisitor visitor)
    Parameters
    Type Name Description
    ElementVisitor visitor
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023