RunicHostedRegionSize record struct

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

public readonly record struct RunicHostedRegionSize : IEquatable<RunicHostedRegionSize>

Inherits or implements IEquatable.

A region's size, in CSS pixels of the host page, and the page's device pixel ratio.

Parameters

Width

The width, from 0 to 32,767.

Height

The height, from 0 to 32,767.

Scale

The device pixel ratio, from 0.25 to 8.

Remarks

Experimental; see docs/experimental.md.

Constructors

RunicHostedRegionSize

public RunicHostedRegionSize(int Width, int Height, double Scale)

A region's size, in CSS pixels of the host page, and the page's device pixel ratio.

Parameters

Width

The width, from 0 to 32,767.

Height

The height, from 0 to 32,767.

Scale

The device pixel ratio, from 0.25 to 8.

Remarks

Experimental; see docs/experimental.md.

Properties

Height

public int Height { get; init; }

The height, from 0 to 32,767.

Scale

public double Scale { get; init; }

The device pixel ratio, from 0.25 to 8.

Width

public int Width { get; init; }

The width, from 0 to 32,767.