Skip to content

Interface IOffsettable<T>

Definition

Namespace: StardewUI.Layout
Assembly: StardewUI.dll

Provides a method to clone the current instance with an offset applied.

public interface IOffsettable<T>

Type Parameters

T
The output type; should be the same as the implementing class.

Members

Methods

Name Description
Offset(Vector2) Creates a clone of this instance with an offset applied to its position.

Details

Methods

Offset(Vector2)

Creates a clone of this instance with an offset applied to its position.

T Offset(Microsoft.Xna.Framework.Vector2 distance);
Parameters

distance   Vector2
The offset distance.

Returns

T