void initialize(SceneUIElement parent, IContainerBoundsProvider boundsProvider, IChildren <SceneUIElement> children) { this.StandardDepth = 0.0f; this.parentElement = parent; this.childSet = children; Solver = new PinnedBoxes2DLayoutSolver( new BoxContainer(boundsProvider)); items = new List <LayoutItem>(); }
public BoxContainer(IContainerBoundsProvider provider) { Provider = provider; Provider.OnContainerBoundsModified += OnProviderBoundsModified; bounds = Provider.ContainerBounds; }
public HUDElementLayout(SceneUIElement parent, IContainerBoundsProvider elementBoundsProvider, IChildren <SceneUIElement> children) { initialize(parent, elementBoundsProvider, children); }