Skip to content

ClipScope ​

Namespace: Hex1b.Widgets

Assembly: Hex1b.dll

Defines how a ZStack's content is clipped.

csharp
public abstract record ClipScope : IEquatable<ClipScope>

Inheritance ​

Object → ClipScope

Implements ​

Properties ​

Parent ​

Content is clipped to the parent's bounds. This is the default.

Returns: ClipScope

csharp
public static ClipScope Parent { get; }

Screen ​

Content is not clipped - can render to the full screen/terminal bounds.

Returns: ClipScope

csharp
public static ClipScope Screen { get; }

Methods ​

Widget(Hex1bWidget) ​

Content is clipped to a specific widget's bounds.

Parameters:

  • widget (Hex1bWidget): The widget whose bounds define the clip region.

Returns: ClipScope

csharp
public static ClipScope Widget(Hex1bWidget widget)

Released under the MIT License.