Skip to main content

EntryLook struct

Namespace: Arlecchino.Widgets.Text · Assembly: Arlecchino

How a line being typed into is written: the text itself, the part of it that is selected, and the one symbol the caret stands on, which is written the other way round.

public readonly struct EntryLook : IEquatable<EntryLook>

Implements IEquatable<T><EntryLook>

Constructors

MemberSummary
EntryLook(IArlecchinoColor, IArlecchinoColor, IArlecchinoColor)How a line being typed into is written: the text itself, the part of it that is selected, and the one symbol the caret stands on, which is written the other way round.

Properties

MemberSummary
CaretWhat the symbol under the caret is written in.
SelectionWhat the selected part of it is written in.
TextWhat the line is written in.

Methods

MemberSummary
Deconstruct(out IArlecchinoColor, out IArlecchinoColor, out IArlecchinoColor)

Constructors in detail

EntryLook(IArlecchinoColor, IArlecchinoColor, IArlecchinoColor)

public EntryLook(IArlecchinoColor Text, IArlecchinoColor Selection, IArlecchinoColor Caret);

How a line being typed into is written: the text itself, the part of it that is selected, and the one symbol the caret stands on, which is written the other way round.

Parameters

NameTypeDescription
TextIArlecchinoColorWhat the line is written in.
SelectionIArlecchinoColorWhat the selected part of it is written in.
CaretIArlecchinoColorWhat the symbol under the caret is written in.

Properties in detail

Caret

public IArlecchinoColor Caret { get; init; }

What the symbol under the caret is written in.

Type IArlecchinoColor

Selection

public IArlecchinoColor Selection { get; init; }

What the selected part of it is written in.

Type IArlecchinoColor

Text

public IArlecchinoColor Text { get; init; }

What the line is written in.

Type IArlecchinoColor

Methods in detail

Deconstruct(out IArlecchinoColor, out IArlecchinoColor, out IArlecchinoColor)

public void Deconstruct(
out IArlecchinoColor Text,
out IArlecchinoColor Selection,
out IArlecchinoColor Caret);

Parameters

NameTypeDescription
TextIArlecchinoColor
SelectionIArlecchinoColor
CaretIArlecchinoColor