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