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