Table of Contents

Class MarginPlacement.Resize

Namespace
Icy.Design.Editor.Placement
Assembly
IcyUI.Design.dll

The size-or-margin resize every strategy builds on.

protected sealed class MarginPlacement.Resize : IResizeOperation
Inheritance
MarginPlacement.Resize
Implements
Inherited Members
Extension Methods

Constructors

Resize(PlacementContext, ResizeHandle, bool, bool, bool)

The size-or-margin resize every strategy builds on.

public Resize(PlacementContext context, ResizeHandle handle, bool anchorHorizontal, bool anchorVertical, bool sizeStretched = false)

Parameters

context PlacementContext

The container and the resized element.

handle ResizeHandle

The dragged handle.

anchorHorizontal bool

Whether the container anchors the element horizontally, so only the width changes.

anchorVertical bool

Whether the container anchors the element vertically, so only the height changes.

sizeStretched bool

Whether a stretched axis gets an explicit size rather than a margin, for containers whose slots follow the element.

Methods

Update(Vector2)

Computes the attributes for the handle dragged by delta since the gesture started.

public IReadOnlyList<AttributeEdit> Update(Vector2 delta)

Parameters

delta Vector2

The pointer's offset from where the gesture started, in the container's local units.

Returns

IReadOnlyList<AttributeEdit>

The attribute values the element should have now.