view SilverlightGlimpse/SilverFlow.Controls/Geometry/Trail.cs @ 64:ba89e36631bc

Latest version
author Steven Hollidge <stevenhollidge@hotmail.com>
date Sun, 22 Apr 2012 14:20:52 +0100
parents 536498832a79
children
line wrap: on
line source

using System;
using System.Windows;

namespace SilverFlow.Geometry
{
    /// <summary>
    /// Mouse pointer trail.
    /// </summary>
    public class Trail
    {
        /// <summary>
        /// Gets or sets mouse position.
        /// </summary>
        /// <value>The position.</value>
        public Point Position { get; set; }

        /// <summary>
        /// Gets or sets the timestamp.
        /// </summary>
        /// <value>The timestamp.</value>
        public DateTime Timestamp { get; set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="Trail"/> class.
        /// </summary>
        public Trail()
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="Trail"/> class.
        /// </summary>
        /// <param name="point">Point.</param>
        /// <param name="time">Time.</param>
        public Trail(Point point, DateTime time)
        {
            this.Position = point;
            this.Timestamp = time;
        }
    }
}