-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDrawStyle.cs
More file actions
86 lines (71 loc) · 3.1 KB
/
Copy pathDrawStyle.cs
File metadata and controls
86 lines (71 loc) · 3.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
namespace Opal.Drawing;
public record DrawStyle
{
public char Horizontal { get; init; }
public char Vertical { get; init; }
public char TopLeftCorner { get; init; }
public char TopRightCorner { get; init; }
public char BottomLeftCorner { get; init; }
public char BottomRightCorner { get; init; }
public char TUp { get; init; }
public char TDown { get; init; }
public char TLeft { get; init; }
public char TRight { get; init; }
public char Plus { get; init; }
public static DrawStyle StandardDrawStyle { get; } = new DrawStyle
{
Horizontal = CharLib.Box.LightHorizontal,
Vertical = CharLib.Box.LightVertical,
TopLeftCorner = CharLib.Box.LightDownAndRight,
TopRightCorner = CharLib.Box.LightDownAndLeft,
BottomLeftCorner = CharLib.Box.LightUpAndRight,
BottomRightCorner = CharLib.Box.LightUpAndLeft,
TUp = CharLib.Box.LightDownAndHorizontal,
TDown = CharLib.Box.LightUpAndHorizontal,
TLeft = CharLib.Box.LightVerticalAndRight,
TRight = CharLib.Box.LightVerticalAndLeft,
Plus = CharLib.Box.LightVerticalAndHorizontal
};
public static DrawStyle HeavyDrawStyle { get; } = new DrawStyle
{
Horizontal = CharLib.Box.HeavyHorizontal,
Vertical = CharLib.Box.HeavyVertical,
TopLeftCorner = CharLib.Box.HeavyDownAndRight,
TopRightCorner = CharLib.Box.HeavyDownAndLeft,
BottomLeftCorner = CharLib.Box.HeavyUpAndRight,
BottomRightCorner = CharLib.Box.HeavyUpAndLeft,
TUp = CharLib.Box.HeavyDownAndHorizontal,
TDown = CharLib.Box.HeavyUpAndHorizontal,
TLeft = CharLib.Box.HeavyVerticalAndRight,
TRight = CharLib.Box.HeavyVerticalAndLeft,
Plus = CharLib.Box.HeavyVerticalAndHorizontal
};
public static DrawStyle DoubleDrawStyle { get; } = new DrawStyle
{
Horizontal = CharLib.Box.DoubleHorizontal,
Vertical = CharLib.Box.DoubleVertical,
TopLeftCorner = CharLib.Box.DoubleDownAndRight,
TopRightCorner = CharLib.Box.DoubleDownAndLeft,
BottomLeftCorner = CharLib.Box.DoubleUpAndRight,
BottomRightCorner = CharLib.Box.DoubleUpAndLeft,
TUp = CharLib.Box.DoubleDownAndHorizontal,
TDown = CharLib.Box.DoubleUpAndHorizontal,
TLeft = CharLib.Box.DoubleVerticalAndRight,
TRight = CharLib.Box.DoubleVerticalAndLeft,
Plus = CharLib.Box.DoubleVerticalAndHorizontal
};
public static DrawStyle RoundedDrawStyle { get; } = new DrawStyle
{
Horizontal = CharLib.Box.LightHorizontal,
Vertical = CharLib.Box.LightVertical,
TopLeftCorner = CharLib.Box.LightArcDownAndRight,
TopRightCorner = CharLib.Box.LightArcDownAndLeft,
BottomLeftCorner = CharLib.Box.LightArcUpAndRight,
BottomRightCorner = CharLib.Box.LightArcUpAndLeft,
TUp = CharLib.Box.LightDownAndHorizontal,
TDown = CharLib.Box.LightUpAndHorizontal,
TLeft = CharLib.Box.LightVerticalAndRight,
TRight = CharLib.Box.LightVerticalAndLeft,
Plus = CharLib.Box.LightVerticalAndHorizontal
};
}