7 instantiations of StylusPoint
PresentationCore (6)
MS\Internal\Ink\StrokeNodeEnumerator.cs (1)
209StylusPoint previousStylusPoint = (previousIndex == -1 ? new StylusPoint() : _stylusPoints[previousIndex]);
System\Windows\Ink\Stroke.cs (1)
391new StylusPoint(xVal, yVal, pressure, bezierStylusPoints.Description, additionalData, false, false);
System\Windows\Input\Stylus\Common\StylusPointCollection.cs (3)
127stylusPoints.Add(new StylusPoint(point.X, point.Y)); 189StylusPoint newPoint = new StylusPoint(p.X, p.Y, StylusPoint.DefaultPressure, _stylusPointDescription, data, false, false); 505new StylusPoint(xCoord, yCoord, pressure, subsetToReformatToWithCurrentMetrics, newData, false, false);
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (1)
1965StylusPoint _rawPosition = new StylusPoint(0, 0);
PresentationFramework (1)
MS\Internal\Ink\PenCursorManager.cs (1)
331stylusPoints.Add(new StylusPoint(0f, 0f));
79 references to StylusPoint
PresentationCore (79)
MS\Internal\Ink\StrokeNodeEnumerator.cs (4)
131StylusPoint sp = stylusPoints[0]; 132StylusPoint lastStylusPoint = _stylusPoints[_stylusPoints.Count - 1]; 208StylusPoint stylusPoint = _stylusPoints[index]; 209StylusPoint previousStylusPoint = (previousIndex == -1 ? new StylusPoint() : _stylusPoints[previousIndex]);
System\Windows\Ink\Stroke.cs (15)
321StylusPoint prevStylusPoint = _stylusPoints[stylusPointsIndex - 1]; 381double xVal = bezierPoint.X > StylusPoint.MaxXY ? 382StylusPoint.MaxXY : 383(bezierPoint.X < StylusPoint.MinXY ? StylusPoint.MinXY : bezierPoint.X); 385double yVal = bezierPoint.Y > StylusPoint.MaxXY ? 386StylusPoint.MaxXY : 387(bezierPoint.Y < StylusPoint.MinXY ? StylusPoint.MinXY : bezierPoint.Y); 390StylusPoint newBezierPoint = 889StylusPoint stylusPoint = sourceStylusPoints[i + beginIndex]; 948StylusPoint tempEnd = stylusPoints[stylusPoints.Count - 1]; 953StylusPoint tempBegin = stylusPoints[0]; 992private Point GetIntermediatePoint(StylusPoint p1, StylusPoint p2, double findex)
System\Windows\Input\Stylus\Common\StylusDeviceBase.cs (1)
118internal abstract StylusPoint RawStylusPoint { get; }
System\Windows\Input\Stylus\Common\StylusPoint.cs (16)
22public struct StylusPoint : IEquatable<StylusPoint> 433public static explicit operator Point(StylusPoint stylusPoint) 460public static bool operator ==(StylusPoint stylusPoint1, StylusPoint stylusPoint2) 462return StylusPoint.Equals(stylusPoint1, stylusPoint2); 476public static bool operator !=(StylusPoint stylusPoint1, StylusPoint stylusPoint2) 478return !StylusPoint.Equals(stylusPoint1, stylusPoint2); 493public static bool Equals(StylusPoint stylusPoint1, StylusPoint stylusPoint2) 559if ((null == o) || !(o is StylusPoint)) 564StylusPoint value = (StylusPoint)o; 565return StylusPoint.Equals(this, value); 579public bool Equals(StylusPoint value) 581return StylusPoint.Equals(this, value);
System\Windows\Input\Stylus\Common\StylusPointCollection.cs (29)
23public class StylusPointCollection : Collection<StylusPoint> 56((List<StylusPoint>)this.Items).Capacity = initialCapacity; 81((List<StylusPoint>)this.Items).Capacity = initialCapacity; 89public StylusPointCollection(IEnumerable<StylusPoint> stylusPoints) 94List<StylusPoint> points = new List<StylusPoint>(stylusPoints); 105((List<StylusPoint>)this.Items).Capacity = points.Count; 121List<StylusPoint> stylusPoints = new List<StylusPoint>(); 135((List<StylusPoint>)this.Items).Capacity = stylusPoints.Count; 136((List<StylusPoint>)this.Items).AddRange(stylusPoints); 158((List<StylusPoint>)this.Items).Capacity = logicalPointCount; 189StylusPoint newPoint = new StylusPoint(p.X, p.Y, StylusPoint.DefaultPressure, _stylusPointDescription, data, false, false); 198((List<StylusPoint>)this.Items).Add(newPoint); 221StylusPoint stylusPoint = stylusPoints[x]; 224((List<StylusPoint>)this.Items).Add(stylusPoint); 286protected override sealed void InsertItem(int index, StylusPoint stylusPoint) 304protected override sealed void SetItem(int index, StylusPoint stylusPoint) 385((List<StylusPoint>)newCollection.Items).Add(this[x]); 390StylusPoint stylusPoint = this[x]; 396((List<StylusPoint>)newCollection.Items).Add(stylusPoint); 424StylusPoint stylusPoint = this[i]; 432((List<StylusPoint>)this.Items)[i] = stylusPoint; 483StylusPoint stylusPoint = this[i]; 504StylusPoint newStylusPoint = 514((List<StylusPoint>)newCollection.Items).Add(newStylusPoint); 532StylusPoint stylusPoint = this[i]; 601StylusPoint stylusPoint = this[b];
System\Windows\Input\Stylus\Common\StylusTouchDeviceBase.cs (4)
53private Rect GetBounds(StylusPoint stylusPoint, Point position, IInputElement relativeTo) 61private Rect GetBounds(StylusPoint stylusPoint, 88protected abstract double GetStylusPointWidthOrHeight(StylusPoint stylusPoint, bool isWidth); 109StylusPoint stylusPoint = stylusPoints[i];
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (3)
351internal override StylusPoint RawStylusPoint 641StylusPoint stylusPoint = _currentStylusPoints[_currentStylusPoints.Count - 1]; 865StylusPoint flickPoint = _currentStylusPoints[_currentStylusPoints.Count - 1];
System\Windows\Input\Stylus\Pointer\PointerTouchDevice.cs (1)
77protected override double GetStylusPointWidthOrHeight(StylusPoint stylusPoint, bool isWidth)
System\Windows\Input\Stylus\Wisp\WispLogic.cs (1)
2887StylusPoint stylusPoint = stylusPoints[stylusPoints.Count - 1];
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (4)
348StylusPoint stylusPoint = _eventStylusPoints[_eventStylusPoints.Count - 1]; 1215internal override StylusPoint RawStylusPoint 1615StylusPoint stylusPoint = _eventStylusPoints[_eventStylusPoints.Count - 1]; 1965StylusPoint _rawPosition = new StylusPoint(0, 0);
System\Windows\Input\Stylus\Wisp\WispStylusTouchDevice.cs (1)
44protected override double GetStylusPointWidthOrHeight(StylusPoint stylusPoint, bool isWidth)