Table of Contents

Interface IRegionClippingLayout

Namespace
SharpConsoleUI.Layout
Assembly
SharpConsoleUI.dll

Interface for layout containers that support region-specific clipping. This allows different clip rectangles to be applied to children based on their properties, such as preventing scrollable content from painting over sticky controls.

public interface IRegionClippingLayout

Methods

GetPaintClipRect(LayoutNode, LayoutRect)

Gets the paint clip rectangle for a specific child node. This allows the layout to restrict where each child can paint based on its position type.

LayoutRect GetPaintClipRect(LayoutNode child, LayoutRect parentClipRect)

Parameters

child LayoutNode

The child node to get the clip rectangle for.

parentClipRect LayoutRect

The parent's clip rectangle.

Returns

LayoutRect

A clip rectangle that restricts where the child can paint.