Class Pos | Terminal.Gui v1 (original) (raw)

Namespace

Terminal.Gui

Assembly

Terminal.Gui.dll

Describes the position of a View which can be an absolute value, a percentage, centered, or relative to the ending dimension. Integer values are implicitly convertible to an absolute Pos. These objects are created using the static methods Percent, AnchorEnd, and Center. The Pos objects can be combined with the addition and subtraction operators.

Inheritance

Pos

Inherited Members

Methods

AnchorEnd(int)

Creates a Pos object that is anchored to the end (right side or bottom) of the dimension, useful to flush the layout from the right or bottom.

At(int)

Creates an Absolute Pos from the specified integer value.

Bottom(View)

Returns a Pos object tracks the Bottom (Y+Height) coordinate of the specified View

Center()

Returns a Pos object that can be used to center the View

Equals(object)

Determines whether the specified object is equal to the current object.

Function(Func)

Creates a "PosFunc" from the specified function.

GetHashCode()

Serves as the default hash function.

Left(View)

Returns a Pos object tracks the Left (X) position of the specified View.

Percent(float)

Creates a percentage Pos object

Right(View)

Returns a Pos object tracks the Right (X+Width) coordinate of the specified View.

Top(View)

Returns a Pos object tracks the Top (Y) position of the specified View.

X(View)

Returns a Pos object tracks the Left (X) position of the specified View.

Y(View)

Returns a Pos object tracks the Top (Y) position of the specified View.

Operators

operator +(Pos, Pos)

Adds a Pos to a Pos, yielding a new Pos.

implicit operator Pos(int)

Creates an Absolute Pos from the specified integer value.

operator -(Pos, Pos)

Subtracts a Pos from a Pos, yielding a new Pos.