RunicHostedPresentationRequest record

Namespace Runic.Application.Views.Desktop in Runic.Application.Views.Desktop 0.23.0

public sealed record RunicHostedPresentationRequest : IEquatable<RunicHostedPresentationRequest>

Inherits or implements IEquatable.

A guest's presentation request for one of its windows. Only the members of its RunicHostedPresentationRequest.Kind are set; a policy clamps a request by returning a copy with other values (RunicHostedPresentationDecision.Apply).

Remarks

Experimental; see docs/experimental.md.

Properties

ColorScheme

public DesktopColorScheme? ColorScheme { get; init; }

Height

public int? Height { get; init; }

The content height of RunicHostedPresentationKind.Resize, in device-independent pixels.

Kind

public RunicHostedPresentationKind Kind { get; }

What the guest asks for.

LayoutDirection

public DesktopLayoutDirection? LayoutDirection { get; init; }

Path

public string? Path { get; init; }

The absolute path of RunicHostedPresentationKind.SetRepresentedFile, or null for none.

Placement

public DesktopWindowPlacement? Placement { get; init; }

The placement of RunicHostedPresentationKind.SetPlacement, in the units of the host's DesktopWindowState.Placement, which the guest read from the window's placement pushes.

Remarks

A policy clamps it with request with { Placement = request.Placement! with { Width = Math.Min(request.Placement.Width, 1600) } }, or keeps the window where it is with null DesktopWindowPlacement.X and DesktopWindowPlacement.Y.

Priority

public DesktopAnnouncementPriority? Priority { get; init; }

Text

public string? Text { get; init; }

Width

public int? Width { get; init; }

The content width of RunicHostedPresentationKind.Resize, in device-independent pixels.

Window

public RunicHostedWindow Window { get; }

The window.

X

public int? X { get; init; }

The horizontal position of RunicHostedPresentationKind.Move, in the host's desktop coordinates.

Y

public int? Y { get; init; }

The vertical position of RunicHostedPresentationKind.Move, in the host's desktop coordinates.