Table of Contents

Class PosFunc

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

Represents a position that is computed by executing a function that returns an integer position.

public record PosFunc : Pos, IEquatable<Pos>, IEquatable<PosFunc>
Inheritance
PosFunc
Implements
Inherited Members

Remarks

This is a low-level API that is typically used internally by the layout system. Use the various static methods on the Pos class to create Pos objects instead.

Constructors

PosFunc(Func<View?, int>, View?)

Represents a position that is computed by executing a function that returns an integer position.

PosFunc(PosFunc)

Properties

EqualityContract
Fn

Gets the function that computes the position.

View

Gets the passed view that the position is based on.

Methods

Deconstruct(out Func<View?, int>, out View?)
Equals(object?)
Equals(Pos?)
Equals(PosFunc?)
GetHashCode()
PrintMembers(StringBuilder)
ToString()

Operators

operator ==(PosFunc?, PosFunc?)
operator !=(PosFunc?, PosFunc?)