Table of Contents

Class ViewManipulator

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

Helper class that encapsulates view manipulation operations for arrangement (move/resize). Provides methods to move and resize a view while respecting minimum size constraints.

public sealed class ViewManipulator
Inheritance
ViewManipulator
Inherited Members

Constructors

ViewManipulator(View, Point, int, int)

Creates a new ViewManipulator for the specified view.

ViewManipulator(View, int, int)

Creates a ViewManipulator for keyboard-based arrangement (no grab point needed).

Methods

AdjustHeight(int)

Adjusts the view's height by the specified delta, respecting minimum height.

AdjustWidth(int)

Adjusts the view's width by the specified delta, respecting minimum width.

AdjustX(int)

Adjusts the view's X position by the specified delta.

AdjustY(int)

Adjusts the view's Y position by the specified delta.

Move(Point)

Moves the view to follow the mouse position.

ResizeBottom(Point)

Resizes view from the bottom edge, adjusting height only.

ResizeFromLeft(int)

Resizes from the left edge by adjusting both X position and width (for keyboard). Moves the view left/right while expanding/contracting from the left.

ResizeFromTop(int)

Resizes from the top edge by adjusting both Y position and height (for keyboard). Moves the view up/down while expanding/contracting from the top.

ResizeLeft(Point)

Resizes view from the left edge, adjusting X position and width.

ResizeRight(Point)

Resizes view from the right edge, adjusting width only.

ResizeTop(Point)

Resizes view from the top edge, adjusting Y position and height.