コード例 #1
0
 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>();
 }
コード例 #2
0
ファイル: BoxContainer.cs プロジェクト: xiaodelea/frame3Sharp
 public BoxContainer(IContainerBoundsProvider provider)
 {
     Provider = provider;
     Provider.OnContainerBoundsModified += OnProviderBoundsModified;
     bounds = Provider.ContainerBounds;
 }
コード例 #3
0
 public HUDElementLayout(SceneUIElement parent, IContainerBoundsProvider elementBoundsProvider, IChildren <SceneUIElement> children)
 {
     initialize(parent, elementBoundsProvider, children);
 }