Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Overlays.cs
1using System.Threading.Tasks;
2
4{
9 {
15 public Overlays(Layout2DDocument Document, ILayoutElement Parent)
16 : base(Document, Parent)
17 {
18 }
19
23 public override string LocalName => "Overlays";
24
31 public override ILayoutElement Create(Layout2DDocument Document, ILayoutElement Parent)
32 {
33 return new Overlays(Document, Parent);
34 }
35
41 public override Task<ICellLayout> GetCellLayout(DrawingState State)
42 {
43 return Task.FromResult<ICellLayout>(new OverlayCells(State.Session));
44 }
45
46 }
47}
Contains a 2D layout document.
Variables Session
Current session.
Definition: DrawingState.cs:91
Lays ut cells one on-top of another
Definition: OverlayCells.cs:11
Ordering child elements one on-top of the other.
Definition: Overlays.cs:9
override string LocalName
Local name of type of element.
Definition: Overlays.cs:23
override Task< ICellLayout > GetCellLayout(DrawingState State)
Gets a cell layout object that will be responsible for laying out cells.
Definition: Overlays.cs:41
override ILayoutElement Create(Layout2DDocument Document, ILayoutElement Parent)
Creates a new instance of the layout element.
Definition: Overlays.cs:31
Overlays(Layout2DDocument Document, ILayoutElement Parent)
Ordering child elements one on-top of the other.
Definition: Overlays.cs:15
Abstract base class of elements that do spatial distribution of children.
Basic interface for cell layout objects.
Definition: ICellLayout.cs:9
Base interface for all layout elements.