9 instantiations of Monitor
Aspire.Tray.Tests (9)
LinuxPlasmaAnchorTests.cs (8)
83new("eDP-1", new(0, 0, 2880, 1920), false), 84new("DP-5", new(2880, 0, 4608, 2592), true) 101LinuxPlasmaAnchor.Monitor[] monitors = [new("GTK model name", new(1920, 0, 3072, 1728), true)]; 121new("eDP-1", new(0, 0, 2880, 1920), !externalPrimary), 122new("DP-5", new(2880, 0, 4608, 2592), externalPrimary) 133LinuxPlasmaAnchor.Monitor[] monitors = [new("DP-5", new(-2880, -150, 2880, 1620), true)]; 147LinuxPlasmaAnchor.Monitor[] monitors = [new("DP-5", new(2880, 0, 4608, 2592), true)]; 180new("DP-5", new(1920 * gtkScale, 0, 3072 * gtkScale, 1728 * gtkScale), true)
src\Aspire.Tray\Linux\LinuxPlasmaAnchor.cs (1)
27return new Monitor(Marshal.PtrToStringUTF8(gdk_monitor_get_model(monitor)) ?? "",
9 references to Monitor
Aspire.Tray.Tests (9)
LinuxPlasmaAnchorTests.cs (6)
82LinuxPlasmaAnchor.Monitor[] monitors = [ 101LinuxPlasmaAnchor.Monitor[] monitors = [new("GTK model name", new(1920, 0, 3072, 1728), true)]; 120LinuxPlasmaAnchor.Monitor[] monitors = [ 133LinuxPlasmaAnchor.Monitor[] monitors = [new("DP-5", new(-2880, -150, 2880, 1620), true)]; 147LinuxPlasmaAnchor.Monitor[] monitors = [new("DP-5", new(2880, 0, 4608, 2592), true)]; 179LinuxPlasmaAnchor.Monitor[] monitors = [
src\Aspire.Tray\Linux\LinuxPlasmaAnchor.cs (3)
44internal static PanelRect Map(PanelRect anchor, IReadOnlyList<Output> outputs, IReadOnlyList<Monitor> monitors, 53var candidates = new List<(PanelRect Bounds, Monitor Monitor)>(); 64var monitor = monitors.SingleOrDefault(monitor => monitor.Name == output.Name)