Table of Contents

Interface IAdornment

Namespace
Terminal.Gui.ViewBase
Assembly
Terminal.Gui.dll

Defines the contract for an adornment layer around a View. Implemented by the lightweight Margin, Border, and Padding classes.

public interface IAdornment

Remarks

IAdornment represents a pure settings object: it holds Thickness and provides coordinate-conversion methods. The full View-level backing object is created lazily via View and accessed through IAdornmentView.

Properties

Parent
Thickness

The thickness (space consumed by this adornment layer). Changing this triggers layout recalculation on the parent View.

View

The IAdornmentView backing this adornment. null until the adornment actually needs View-level functionality (rendering, SubViews, mouse, arrangement, shadow). Once set, the lifetime is controlled by the IAdornmentView implementation.

Methods

GetFrame()

The calculated frame rectangle for this adornment layer, set by Terminal.Gui.ViewBase.View.SetAdornmentFrames. This is the single source of truth for adornment geometry.

Events

ThicknessChanged

Fired when Thickness changes.