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