Table of Contents

Class Layout

Namespace
MagicUI.Core
Assembly
MagicUI.dll

Root class for an arrangable element with multiple children

public abstract class Layout : ArrangableElement, ILayoutParent
Inheritance
Layout
Implements
Derived
Inherited Members
Extension Methods

Constructors

Layout(LayoutRoot, string)

Creates a layout

public Layout(LayoutRoot onLayout, string name = "New Layout")

Parameters

onLayout LayoutRoot

The layout root to draw the layout on

name string

The name of the layout

Properties

Children

The children of this layout

public ParentedElementList Children { get; }

Property Value

ParentedElementList

Methods

HandleChildDestroyed(ArrangableElement)

Additional handling for when a child is being destroyed

public void HandleChildDestroyed(ArrangableElement child)

Parameters

child ArrangableElement

The child being destroyed