7 types derived from PanelCommand
Aspire.Tray.Tests (7)
src\Aspire.Tray\Common\TrayPanelScene.cs (7)
59internal sealed record FillPathCommand(PanelPath Path, PanelColor Color) : PanelCommand; 62internal sealed record StrokePathCommand(PanelPath Path, PanelColor Color, double Width) : PanelCommand; 79double? ExplicitBaseline = null) : PanelCommand 89internal sealed record LogoCommand(PanelRect Bounds) : PanelCommand; 96internal sealed record AppIconCommand(PanelRect Bounds, string Application, IReadOnlyList<PanelCommand> Fallback) : PanelCommand; 99internal sealed record PushClipCommand(PanelRect Bounds) : PanelCommand; 101internal sealed record PopClipCommand : PanelCommand;
32 references to PanelCommand
Aspire.Tray.Tests (32)
Helpers\TrayPanelSvgRenderer.cs (2)
48foreach (var command in scene.Commands) 65foreach (var shape in appIcon.Fallback)
src\Aspire.Tray\Common\TrayPanel.cs (15)
830var commands = new List<PanelCommand>(); 974var hidden = new List<PanelCommand>(); 1174private void AddHeader(List<PanelCommand> commands, TrayViewState state, TrayPanelPalette palette) 1193List<PanelCommand> commands, 1218private void AddEmptyState(List<PanelCommand> commands, DiscoveryState discovery, double top, TrayPanelPalette palette) 1244private void AddSectionHeader(List<PanelCommand> commands, List<PanelHitTarget> targets, PanelSection section, double top, 1282private void AddRow(List<PanelCommand> commands, List<PanelHitTarget> targets, AppHostMenuItem host, PanelSection section, 1401private void AddActions(List<PanelCommand> commands, List<PanelHitTarget> targets, AppHostMenuItem host, PanelSection section, 1418var fallback = new List<PanelCommand>(); 1473private void AddConfirm(List<PanelCommand> commands, List<PanelHitTarget> targets, PanelConfirm confirm, AppHostMenuItem? host, 1527private void AddSettingsHeader(List<PanelCommand> commands, List<PanelHitTarget> targets, TrayPanelPalette palette) 1540private void AddSettingsToggle(List<PanelCommand> commands, List<PanelHitTarget> targets, PanelTargetKind kind, PanelSettings settings, 1567private void AddAbout(List<PanelCommand> commands, PanelSettings settings, double top, TrayPanelPalette palette) 1586private void AddFooter(List<PanelCommand> commands, List<PanelHitTarget> targets, PanelRect footer, TrayPanelPalette palette) 1611private void AddInteractionFill(List<PanelCommand> commands, PanelTargetKey key, PanelRect bounds, TrayPanelPalette palette, bool includeFocus)
src\Aspire.Tray\Common\TrayPanelGlyphs.cs (3)
52public static void AddStatus(List<PanelCommand> commands, PanelStatusGlyph glyph, PanelRect bounds, TrayPanelPalette palette) 97public static void AddIcon(List<PanelCommand> commands, PanelIcon icon, PanelRect bounds, PanelColor color) 204public static void AddToggle(List<PanelCommand> commands, bool on, bool enabled, PanelRect bounds, TrayPanelPalette palette)
src\Aspire.Tray\Common\TrayPanelScene.cs (2)
96internal sealed record AppIconCommand(PanelRect Bounds, string Application, IReadOnlyList<PanelCommand> Fallback) : PanelCommand; 238IReadOnlyList<PanelCommand> Commands,
src\Aspire.Tray\Common\TrayPanelSceneJson.cs (1)
65foreach (var command in scene.Commands)
src\Aspire.Tray\Linux\LinuxTrayPanel.cs (3)
622foreach (var command in _panel.Scene.Commands) 633private void RenderCommand(nint context, PanelCommand command) 663foreach (var fallback in icon.Fallback)
TrayPanelTests.cs (6)
865var commands = new List<PanelCommand>(); 1203var commands = new List<PanelCommand>(); 1232var commands = new List<PanelCommand>(); 1289var commands = new List<PanelCommand>(); 1334var commands = new List<PanelCommand>(); 1610private static PanelRect GetBounds(PanelCommand command)