ContainerLayer クラス
子レイヤーを保持し、一覧の順序で同じ描画先へ合成するレイヤーです。
名前空間: FloatSoda.Rendering.Layers
アセンブリ: FloatSoda.Rendering.dll
public class ContainerLayer : ILayerClipPathLayer, ClipRectLayer, ClipRoundRectLayer, OpacityLayer, TransformLayer
実装するインターフェイス
Section titled “実装するインターフェイス”継承したメンバー
Section titled “継承したメンバー”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Children
Section titled “Children”合成する子レイヤーの一覧を取得します。
public List<ILayer> Children { get; }プロパティの値
Section titled “プロパティの値”HasChildren
Section titled “HasChildren”子レイヤーが1つ以上存在するかどうかを取得します。
public bool HasChildren { get; }プロパティの値
Section titled “プロパティの値”PaintBounds
Section titled “PaintBounds”レイアウト後のすべての子レイヤーを包含する描画境界を取得します。
public SKRect PaintBounds { get; protected set; }プロパティの値
Section titled “プロパティの値”Clone()
Section titled “Clone()”すべての子レイヤーを再帰的に複製した、新しいコンテナーレイヤーを作成します。
public virtual ILayer Clone()子レイヤーの一覧を独立して保持する新しいコンテナーレイヤー。
Layout(LayerContext)
Section titled “Layout(LayerContext)”すべての子レイヤーをレイアウトし、それらを包含する描画境界を設定します。
public virtual void Layout(LayerContext context)パラメーター
Section titled “パラメーター”context LayerContext
子レイヤーのレイアウトに使用するコンテキスト。
LayoutChildren(LayerContext)
Section titled “LayoutChildren(LayerContext)”すべての子レイヤーをレイアウトし、それらを包含する描画境界を返します。
protected SKRect LayoutChildren(LayerContext context)パラメーター
Section titled “パラメーター”context LayerContext
子レイヤーのレイアウトに使用するコンテキスト。
子レイヤーが描画へ影響する境界の和集合。子が存在しない場合は空の矩形。
Paint(LayerContext)
Section titled “Paint(LayerContext)”子レイヤーを一覧の先頭から順に描画します。
public virtual void Paint(LayerContext context)パラメーター
Section titled “パラメーター”context LayerContext
子レイヤーの合成先となるキャンバスを保持するコンテキスト。