C# Class Paint.TouchPointSizeColour

Touch point. Immutable class for tracking the location and type of 'touch'/gesture made by the user along with colour and size information
Inheritance: ITouchPointSizeColor
Mostrar archivo Open project: RandolphBurt/MonoGame-iOS-SimplePaint Class Usage Examples

Public Methods

Method Description
TouchPointSizeColour ( Vector2 position, TouchType touchType, Microsoft.Xna.Framework.Color color, Rectangle size ) : Microsoft.Xna.Framework

Initializes a new instance of the Paint.TouchPoint class.

Method Details

TouchPointSizeColour() public method

Initializes a new instance of the Paint.TouchPoint class.
public TouchPointSizeColour ( Vector2 position, TouchType touchType, Microsoft.Xna.Framework.Color color, Rectangle size ) : Microsoft.Xna.Framework
position Microsoft.Xna.Framework.Vector2 The position on screen that the user touched.
touchType TouchType Touch type (FreeFrag, Tap etc)
color Microsoft.Xna.Framework.Color The color for this point
size Microsoft.Xna.Framework.Rectangle The size of the point
return Microsoft.Xna.Framework