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