ClipRoundRectLayer クラス
すべての子レイヤーの描画を角丸矩形の内側へ制限するレイヤーです。
名前空間: FloatSoda.Rendering.Layers
アセンブリ: FloatSoda.Rendering.dll
public class ClipRoundRectLayer : ContainerLayer, ILayerobject ← ContainerLayer ← ClipRoundRectLayer
実装するインターフェイス
Section titled “実装するインターフェイス”継承したメンバー
Section titled “継承したメンバー”ContainerLayer.Children, ContainerLayer.HasChildren, ContainerLayer.PaintBounds, ContainerLayer.Layout(LayerContext), ContainerLayer.LayoutChildren(LayerContext), ContainerLayer.Paint(LayerContext), ContainerLayer.Clone(), object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
コンストラクター
Section titled “コンストラクター”ClipRoundRectLayer(SKRoundRect)
Section titled “ClipRoundRectLayer(SKRoundRect)”すべての子レイヤーの描画を角丸矩形の内側へ制限するレイヤーです。
public ClipRoundRectLayer(SKRoundRect clipRect)パラメーター
Section titled “パラメーター”clipRect SKRoundRect
子レイヤーの描画を許可する角丸矩形。所有権は呼び出し元に残ります。
ClipBehavior
Section titled “ClipBehavior”クリップ境界の描画品質を取得または設定します。
public Clip ClipBehavior { get; set; }プロパティの値
Section titled “プロパティの値”ClipRect
Section titled “ClipRect”子レイヤーの描画を許可する角丸矩形を取得または設定します。
public SKRoundRect ClipRect { get; set; }プロパティの値
Section titled “プロパティの値”Clone()
Section titled “Clone()”角丸矩形、クリップ方式、および子レイヤーを保持する新しいレイヤーを作成します。
public override ILayer Clone()子レイヤーを再帰的に複製した新しい角丸矩形クリップレイヤー。
Layout(LayerContext)
Section titled “Layout(LayerContext)”子レイヤーをレイアウトし、角丸矩形の外接矩形と重なる描画領域を評価します。
public override void Layout(LayerContext context)パラメーター
Section titled “パラメーター”context LayerContext
子レイヤーのレイアウトに使用するコンテキスト。
Paint(LayerContext)
Section titled “Paint(LayerContext)”角丸矩形の内側に限って子レイヤーを描画します。
public override void Paint(LayerContext context)パラメーター
Section titled “パラメーター”context LayerContext
クリップした子レイヤーを合成するキャンバスを保持するコンテキスト。
描画後にキャンバスの状態を復元するため、後続のレイヤーへクリップは引き継がれません。