Show / Hide Table of Contents

Class ItemMovedEventArgs<T>

Event arguments for spatial maps ItemMoved event.

Inheritance
object
EventArgs
ItemMovedEventArgs<T>
Inherited Members
EventArgs.Empty
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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

View Source

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.

View Source

ItemMovedEventArgs(T, int, int, int, int)

Constructor.

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

Item being represented.

int oldPositionX

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

int oldPositionY

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

int newPositionX

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

int newPositionY

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

Properties

View Source

Item

Item being represented.

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

NewPosition

Position of item after it has been moved.

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

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>>?)
  • View Source
In this article
Back to top Generated by DocFX