33 references to Right
Aspire.Tray.Tests (33)
Helpers\TrayPanelSvgRenderer.cs (3)
137
layer.Add(Line(b.X, guide.Position, b.
Right
, guide.Position, "#FF2BD6"));
140
layer.Add(Line(b.X, guide.Position, b.
Right
, guide.Position, "#2BB52B", "2 1"));
177
PanelTextAlignment.Trailing => ("end", text.Bounds.
Right
),
LinuxPlasmaAnchorTests.cs (2)
91
Assert.Equal(monitors[1].Geometry.
Right
- 6, panel.
Right
);
LinuxTrayTests.cs (2)
148
Assert.Equal(workarea.
Right
- 4 * scale, bounds.
Right
, precision: 10);
src\Aspire.Tray\Common\TrayPanel.cs (5)
1082
commands.Add(new FillPathCommand(PanelPath.Circle(title.
Right
+ 4, statusMiddle, 4), dot));
1083
var statusLeft = title.
Right
+ 14;
1308
commands.Add(new TextCommand(new(NestedTextLeft, item.Y, item.
Right
- 8 - NestedTextLeft, item.Height), label,
1315
var labelRight = item.
Right
- 8;
1386
var acceptBounds = new PanelRect(card.
Right
- 10 - ButtonWidth, controlsY, ButtonWidth, ButtonSize);
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);
src\Aspire.Tray\Linux\LinuxTrayPanel.cs (1)
471
var right = Math.Max(left, workarea.
Right
- width - margin);
TrayPanelTests.cs (7)
924
row => Assert.True(row.Bounds.X == TrayPanel.RowInset && row.Bounds.
Right
== TrayPanel.Width - TrayPanel.RowInset, $"{name}: {row.Key} at {row.Bounds}"));
957
Assert.Equal(TrayPanel.Width - TrayPanel.EdgeMargin, status.Bounds.
Right
);
975
=> 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;
1006
Assert.True(title.Bounds.
Right
< status.Bounds.X);
1455
Assert.True(footer[0].Bounds.
Right
<= footer[1].Bounds.X && footer[1].Bounds.
Right
<= footer[2].Bounds.X);