Table of Contents

Enum VisualRole

Namespace
Terminal.Gui.Drawing
Assembly
Terminal.Gui.dll

Represents the semantic visual role of a visual element rendered by a View. Each VisualRole maps to a property of Scheme (e.g., Normal).

public enum VisualRole

Fields

Active = 4

The visual role for elements that are active or selected (e.g., selected item in a ListView). Also used for headers in, HexView, CharMap and TabView.

Disabled = 7

The visual role for elements that are disabled and not interactable.

Editable = 8

The visual role for elements that are editable (e.g., TextField and TextView).

Focus = 2

The visual role when the element is focused.

Highlight = 6

The visual role for elements that are highlighted (e.g., when the mouse is inside over a Button).

HotActive = 5

The visual role for Active elements with a HotKey indicator.

HotFocus = 3

The visual role for Focus elements with a HotKey indicator.

HotNormal = 1

The visual role for Normal elements with a HotKey indicator.

Normal = 0

The default visual role for unfocused, unselected, enabled elements.

ReadOnly = 9

The visual role for elements that are normally editable but currently read-only.

Remarks

A single View may render as one or multiple elements. Each element can be associated with a different VisualRole.