ILayer インターフェイス
描画内容と合成処理から成るレイヤーツリーの要素を表します。
名前空間: FloatSoda.Rendering.Layers
アセンブリ: FloatSoda.Rendering.dll
public interface ILayerレイアウトで描画境界を確定した後、同じコンテキストを使用して描画します。
PaintBounds
Section titled “PaintBounds”レイアウト後にこのレイヤーが描画へ影響する境界を取得します。
SKRect PaintBounds { get; }プロパティの値
Section titled “プロパティの値”Clone()
Section titled “Clone()”現在の合成設定を保持する、独立したレイヤーツリーを作成します。
ILayer Clone()子レイヤーを含めて複製された新しいレイヤー。
描画リソースの所有権は移転せず、複製元と共有される場合があります。
Layout(LayerContext)
Section titled “Layout(LayerContext)”このレイヤーと子レイヤーの描画境界を計算します。
void Layout(LayerContext context)パラメーター
Section titled “パラメーター”context LayerContext
描画先の座標系とキャンバスを保持するコンテキスト。
Paint(LayerContext)
Section titled “Paint(LayerContext)”レイアウト済みの内容を指定された描画先へ合成します。
void Paint(LayerContext context)パラメーター
Section titled “パラメーター”context LayerContext
合成先のキャンバスを保持するコンテキスト。