27 references to Right
Aspire.Tray.Tests (27)
Helpers\TrayPanelSvgRenderer.cs (1)
126
PanelTextAlignment.Trailing => ("end", text.Bounds.
Right
),
src\Aspire.Tray\Common\TrayPanel.cs (8)
935
commands.Add(new FillPathCommand(PanelPath.Circle(title.
Right
+ 4, middle, 4), dot));
936
var statusLeft = title.
Right
+ 14;
1160
commands.Add(new TextCommand(new(TextLeft + 26, item.Y, item.
Right
- 8 - TextLeft - 26, item.Height), label,
1167
var labelRight = item.
Right
- 8;
1173
new(item.
Right
- 8 - 16, item.Y + 7, 16, 16), palette.TextTertiary);
1238
var acceptBounds = new PanelRect(card.
Right
- 10 - ButtonWidth, controlsY, ButtonWidth, ButtonSize);
1273
var title = new PanelRect(back.
Right
+ 8, (HeaderHeight - 20) / 2, Width - back.
Right
- 24, 20);
src\Aspire.Tray\Common\TrayPanelGeometry.cs (13)
18
public bool Contains(double x, double y) => x >= X && x <
Right
&& y >= Y && y < Bottom;
20
public bool Contains(PanelRect other) => other.X >= X && other.Y >= Y && other.
Right
<=
Right
&& other.Bottom <= Bottom;
22
public bool IntersectsWith(PanelRect other) => other.X <
Right
&& X < other.
Right
&& other.Y < Bottom && Y < other.Bottom;
32
var right = Math.Min(
Right
, other.
Right
);
134
=> new PanelPath().MoveTo(rect.X, rect.Y).LineTo(rect.
Right
, rect.Y).LineTo(rect.
Right
, rect.Bottom)
148
var path = new PanelPath().MoveTo(rect.X + topLeft, rect.Y).LineTo(rect.
Right
- topRight, rect.Y);
151
path.Arc(rect.
Right
- topRight, rect.Y + topRight, topRight, -90, 90, connect: true);
153
path.LineTo(rect.
Right
, rect.Bottom - bottomRight);
156
path.Arc(rect.
Right
- bottomRight, rect.Bottom - bottomRight, bottomRight, 0, 90, connect: true);
TrayPanelTests.cs (5)
870
=> Math.Abs(a.X - b.X) < 1e-9 && Math.Abs(a.Y - b.Y) < 1e-9 && Math.Abs(a.
Right
- b.
Right
) < 1e-9 && Math.Abs(a.Bottom - b.Bottom) < 1e-9;
901
Assert.True(title.Bounds.
Right
< status.Bounds.X);
1346
Assert.True(footer[0].Bounds.
Right
<= footer[1].Bounds.X && footer[1].Bounds.
Right
<= footer[2].Bounds.X);