-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStackPanel.cs
More file actions
21 lines (17 loc) · 790 Bytes
/
StackPanel.cs
File metadata and controls
21 lines (17 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Developed by Bulat Bagaviev (@sunnyyssh).
// This file is licensed to you under the MIT license.
using System.Collections.Immutable;
namespace Sunnyyssh.ConsoleUI;
/// <summary>
/// <see cref="Wrapper"/> that can place <see cref="UIElement"/>'s in a row (like a stack).
/// </summary>
public sealed class StackPanel : CompositionWrapper
{
public Orientation Orientation { get; }
internal StackPanel(int width, int height, ImmutableList<ChildInfo> orderedChildren, Orientation orientation,
FocusFlowSpecification focusFlowSpecification, OverlappingPriority overlappingPriority = OverlappingPriority.Medium)
: base(width, height, orderedChildren, orderedChildren, focusFlowSpecification, overlappingPriority)
{
Orientation = orientation;
}
}