OverlayWindow クラス
OpenVR オーバーレイとして表示されるウィンドウの基底。 IOverlay の生成責務とオーバーレイキーの管理はこの階層が持ちます (将来のデスクトップウィンドウはこの知識を持ちません)。
名前空間: FloatSoda.Widgets
アセンブリ: FloatSoda.dll
public abstract record OverlayWindow : WindowWidget, IEquatable<Widget>, IEquatable<InheritedWidget>, IEquatable<WindowWidget>, IEquatable<OverlayWindow>object ← Widget ← InheritedWidget ← WindowWidget ← OverlayWindow
DashboardWindow, DeviceTrackedWindow, WorldSpaceWindow
実装するインターフェイス
Section titled “実装するインターフェイス”IEquatable<Widget>, IEquatable<InheritedWidget>, IEquatable<WindowWidget>, IEquatable<OverlayWindow>
継承したメンバー
Section titled “継承したメンバー”WindowWidget.Title, WindowWidget.Size, WindowWidget.ScopeType, WindowWidget.Of(IBuildContext), WindowWidget.UpdateShouldNotify(InheritedWidget), WindowWidget.CreateElement(), InheritedWidget.Child, InheritedWidget.ScopeType, InheritedWidget.CreateElement(), InheritedWidget.UpdateShouldNotify(InheritedWidget), Widget.Key, Widget.CanUpdate(Widget, Widget), Widget.CreateElement(), Widget.GetHashCode(), object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
テクスチャの物理密度(dots per meter)。オーバーレイの物理幅は レイアウト結果のピクセル幅 ÷ Dpm として自動算出されます。 既定は 4000 dpm(1px = 0.25mm。例: 幅 1000px のウィジェットは実寸 25cm)。 ダッシュボードオーバーレイのサイズは SteamVR が管理するため、 DashboardWindow では表示サイズに影響しない場合があります。
public Dpm Dpm { get; init; }プロパティの値
Section titled “プロパティの値”Dpm
Of(IBuildContext)
Section titled “Of(IBuildContext)”最も近い祖先の OverlayWindow を取得し、依存関係を登録します。 ルートがオーバーレイ以外のウィンドウの場合は例外をスローします。
public static OverlayWindow Of(IBuildContext context)パラメーター
Section titled “パラメーター”context IBuildContext