Show / Hide Table of Contents

Class ItemMovedEventArgs<T>

Event arguments for spatial maps ItemMoved event.

Inheritance
Object
ItemMovedEventArgs<T>
Namespace: SadRogue.Primitives.SpatialMaps
Assembly: TheSadRogue.Primitives.dll
Syntax
public class ItemMovedEventArgs<T> : EventArgs
Type Parameters
Name Description
T

Type of item being stored.

Constructors

ItemMovedEventArgs(T, Point, Point)

Constructor.

Declaration
public ItemMovedEventArgs(T item, Point oldPosition, Point newPosition)
Parameters
Type Name Description
T item

Item being represented.

Point oldPosition

Position of item before it was moved.

Point newPosition

Position of item after it has been moved.

ItemMovedEventArgs(T, Int32, Int32, Int32, Int32)

Constructor.

Declaration
public ItemMovedEventArgs(T item, int oldPositionX, int oldPositionY, int newPositionX, int newPositionY)
Parameters
Type Name Description
T item

Item being represented.

Int32 oldPositionX

X-value of the position of item before it was moved.

Int32 oldPositionY

Y-value of the position of item before it was moved.

Int32 newPositionX

X-value of the position of item after it has been moved.

Int32 newPositionY

Y-value of the position of item after it has been moved.

Properties

Item

Item being represented.

Declaration
public T Item { get; }
Property Value
Type Description
T

NewPosition

Position of item after it has been moved.

Declaration
public Point NewPosition { get; }
Property Value
Type Description
Point

OldPosition

Position of item before it was moved.

Declaration
public Point OldPosition { get; }
Property Value
Type Description
Point

Extension Methods

PropertyChangedEventHelpers.SafelySetProperty<TObject, TProperty>(TObject, ref TProperty, TProperty, EventHandler<ValueChangedEventArgs<TProperty>>)
PropertyChangedEventHelpers.SafelySetProperty<TObject, TProperty>(TObject, ref TProperty, TProperty, EventHandler<ValueChangedEventArgs<TProperty>>, EventHandler<ValueChangedEventArgs<TProperty>>)
In This Article
Back to top Generated by DocFX