1 instantiation of LinuxTrayPanel
Aspire.Tray.Tests (1)
src\Aspire.Tray\Linux\LinuxTrayApplication.cs (1)
84
_panel =
new
(controller, _applications, ExecutePanelAction, LinuxDesktopEnvironment.GetPanelBackend());
13 references to LinuxTrayPanel
Aspire.Tray.Tests (13)
LinuxPlasmaAnchorTests.cs (1)
90
var panel =
LinuxTrayPanel
.Place(monitors[1].Geometry, anchor.CenterX, anchor.Bottom, 200, 1.5);
LinuxTrayTests.cs (8)
100
var bounds =
LinuxTrayPanel
.Place(new(0, 30, 1000, 770), anchorX, anchorY, 180, 1);
108
var bounds =
LinuxTrayPanel
.Place(new(-1920, 30, 1920, 1050), -900, 15, 300, 1);
122
Assert.Equal(expected,
LinuxTrayPanel
.GetScale(resolution), precision: 10);
132
Assert.Throws<InvalidOperationException>(() =>
LinuxTrayPanel
.GetScale(resolution));
144
var bounds =
LinuxTrayPanel
.Place(workarea, -20, workarea.Bottom, 300, scale);
161
var panel =
LinuxTrayPanel
.Place(geometry, -900, 15, 300, scale);
165
var (x, y) =
LinuxTrayPanel
.ToPanelPoint(panel, geometry, control.CenterX, control.CenterY, scale);
189
Assert.Equal(expected is null ? null : Enum.Parse<PanelKey>(expected),
LinuxTrayPanel
.MapKey(key, shift));
src\Aspire.Tray\Linux\LinuxTrayApplication.cs (1)
36
private
LinuxTrayPanel
? _panel;
src\Aspire.Tray\Linux\LinuxTrayPanel.cs (3)
764
private static int Dispatch(nint data, Func<
LinuxTrayPanel
, int> callback)
766
var
panel = (
LinuxTrayPanel
)GCHandle.FromIntPtr(data).Target!;