LayerContext 構造体
レイヤーツリーのレイアウトと描画で共有する描画先を表します。
名前空間: FloatSoda.Rendering.Layers
アセンブリ: FloatSoda.Rendering.dll
public readonly record struct LayerContext : IEquatable<LayerContext>実装するインターフェイス
Section titled “実装するインターフェイス”継承したメンバー
Section titled “継承したメンバー”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
コンストラクター
Section titled “コンストラクター”LayerContext(SKCanvas)
Section titled “LayerContext(SKCanvas)”レイヤーツリーのレイアウトと描画で共有する描画先を表します。
public LayerContext(SKCanvas Canvas)パラメーター
Section titled “パラメーター”Canvas SKCanvas
レイヤーの描画先となるキャンバス。所有権は呼び出し元に残ります。
Canvas
Section titled “Canvas”レイヤーの描画先となるキャンバス。所有権は呼び出し元に残ります。
public SKCanvas Canvas { get; init; }プロパティの値
Section titled “プロパティの値”Create(SKSurface)
Section titled “Create(SKSurface)”サーフェスのキャンバスを描画先とするコンテキストを作成します。
public static LayerContext Create(SKSurface surface)パラメーター
Section titled “パラメーター”surface SKSurface
描画先のサーフェス。所有権は呼び出し元に残り、コンテキストの使用中は有効な状態に保つ必要があります。
指定されたサーフェスのキャンバスを参照するコンテキスト。