7 instantiations of StylusPoint
PresentationCore (6)
MS\Internal\Ink\StrokeNodeEnumerator.cs (1)
202
StylusPoint previousStylusPoint = (previousIndex == -1 ? new
StylusPoint
() : _stylusPoints[previousIndex]);
System\Windows\Ink\Stroke.cs (1)
376
new
StylusPoint
(xVal, yVal, pressure, bezierStylusPoints.Description, additionalData, false, false);
System\Windows\Input\Stylus\Common\StylusPointCollection.cs (3)
119
stylusPoints.Add(new
StylusPoint
(point.X, point.Y));
181
StylusPoint newPoint = new
StylusPoint
(p.X, p.Y, StylusPoint.DefaultPressure, _stylusPointDescription, data, false, false);
497
new
StylusPoint
(xCoord, yCoord, pressure, subsetToReformatToWithCurrentMetrics, newData, false, false);
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (1)
1962
StylusPoint _rawPosition = new
StylusPoint
(0, 0);
PresentationFramework (1)
MS\Internal\Ink\PenCursorManager.cs (1)
326
stylusPoints.Add(new
StylusPoint
(0f, 0f));
79 references to StylusPoint
PresentationCore (79)
MS\Internal\Ink\StrokeNodeEnumerator.cs (4)
124
StylusPoint
sp = stylusPoints[0];
125
StylusPoint
lastStylusPoint = _stylusPoints[_stylusPoints.Count - 1];
201
StylusPoint
stylusPoint = _stylusPoints[index];
202
StylusPoint
previousStylusPoint = (previousIndex == -1 ? new StylusPoint() : _stylusPoints[previousIndex]);
System\Windows\Ink\Stroke.cs (15)
306
StylusPoint
prevStylusPoint = _stylusPoints[stylusPointsIndex - 1];
366
double xVal = bezierPoint.X >
StylusPoint
.MaxXY ?
367
StylusPoint
.MaxXY :
368
(bezierPoint.X <
StylusPoint
.MinXY ?
StylusPoint
.MinXY : bezierPoint.X);
370
double yVal = bezierPoint.Y >
StylusPoint
.MaxXY ?
371
StylusPoint
.MaxXY :
372
(bezierPoint.Y <
StylusPoint
.MinXY ?
StylusPoint
.MinXY : bezierPoint.Y);
375
StylusPoint
newBezierPoint =
874
StylusPoint
stylusPoint = sourceStylusPoints[i + beginIndex];
933
StylusPoint
tempEnd = stylusPoints[stylusPoints.Count - 1];
938
StylusPoint
tempBegin = stylusPoints[0];
977
private Point GetIntermediatePoint(
StylusPoint
p1,
StylusPoint
p2, double findex)
System\Windows\Input\Stylus\Common\StylusDeviceBase.cs (1)
104
internal abstract
StylusPoint
RawStylusPoint { get; }
System\Windows\Input\Stylus\Common\StylusPoint.cs (16)
12
public struct StylusPoint : IEquatable<
StylusPoint
>
423
public static explicit operator Point(
StylusPoint
stylusPoint)
450
public static bool operator ==(
StylusPoint
stylusPoint1,
StylusPoint
stylusPoint2)
452
return
StylusPoint
.Equals(stylusPoint1, stylusPoint2);
466
public static bool operator !=(
StylusPoint
stylusPoint1,
StylusPoint
stylusPoint2)
468
return !
StylusPoint
.Equals(stylusPoint1, stylusPoint2);
483
public static bool Equals(
StylusPoint
stylusPoint1,
StylusPoint
stylusPoint2)
549
if ((null == o) || !(o is
StylusPoint
))
554
StylusPoint
value = (
StylusPoint
)o;
555
return
StylusPoint
.Equals(this, value);
569
public bool Equals(
StylusPoint
value)
571
return
StylusPoint
.Equals(this, value);
System\Windows\Input\Stylus\Common\StylusPointCollection.cs (29)
15
public class StylusPointCollection : Collection<
StylusPoint
>
48
((List<
StylusPoint
>)this.Items).Capacity = initialCapacity;
73
((List<
StylusPoint
>)this.Items).Capacity = initialCapacity;
81
public StylusPointCollection(IEnumerable<
StylusPoint
> stylusPoints)
86
List<
StylusPoint
> points = new List<
StylusPoint
>(stylusPoints);
97
((List<
StylusPoint
>)this.Items).Capacity = points.Count;
113
List<
StylusPoint
> stylusPoints = new List<
StylusPoint
>();
127
((List<
StylusPoint
>)this.Items).Capacity = stylusPoints.Count;
128
((List<
StylusPoint
>)this.Items).AddRange(stylusPoints);
150
((List<
StylusPoint
>)this.Items).Capacity = logicalPointCount;
181
StylusPoint
newPoint = new StylusPoint(p.X, p.Y,
StylusPoint
.DefaultPressure, _stylusPointDescription, data, false, false);
190
((List<
StylusPoint
>)this.Items).Add(newPoint);
213
StylusPoint
stylusPoint = stylusPoints[x];
216
((List<
StylusPoint
>)this.Items).Add(stylusPoint);
278
protected override sealed void InsertItem(int index,
StylusPoint
stylusPoint)
296
protected override sealed void SetItem(int index,
StylusPoint
stylusPoint)
377
((List<
StylusPoint
>)newCollection.Items).Add(this[x]);
382
StylusPoint
stylusPoint = this[x];
388
((List<
StylusPoint
>)newCollection.Items).Add(stylusPoint);
416
StylusPoint
stylusPoint = this[i];
424
((List<
StylusPoint
>)this.Items)[i] = stylusPoint;
475
StylusPoint
stylusPoint = this[i];
496
StylusPoint
newStylusPoint =
506
((List<
StylusPoint
>)newCollection.Items).Add(newStylusPoint);
524
StylusPoint
stylusPoint = this[i];
593
StylusPoint
stylusPoint = this[b];
System\Windows\Input\Stylus\Common\StylusTouchDeviceBase.cs (4)
51
private Rect GetBounds(
StylusPoint
stylusPoint, Point position, IInputElement relativeTo)
59
private Rect GetBounds(
StylusPoint
stylusPoint,
86
protected abstract double GetStylusPointWidthOrHeight(
StylusPoint
stylusPoint, bool isWidth);
107
StylusPoint
stylusPoint = stylusPoints[i];
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (3)
343
internal override
StylusPoint
RawStylusPoint
633
StylusPoint
stylusPoint = _currentStylusPoints[_currentStylusPoints.Count - 1];
857
StylusPoint
flickPoint = _currentStylusPoints[_currentStylusPoints.Count - 1];
System\Windows\Input\Stylus\Pointer\PointerTouchDevice.cs (1)
73
protected override double GetStylusPointWidthOrHeight(
StylusPoint
stylusPoint, bool isWidth)
System\Windows\Input\Stylus\Wisp\WispLogic.cs (1)
2878
StylusPoint
stylusPoint = stylusPoints[stylusPoints.Count - 1];
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (4)
345
StylusPoint
stylusPoint = _eventStylusPoints[_eventStylusPoints.Count - 1];
1212
internal override
StylusPoint
RawStylusPoint
1612
StylusPoint
stylusPoint = _eventStylusPoints[_eventStylusPoints.Count - 1];
1962
StylusPoint
_rawPosition = new StylusPoint(0, 0);
System\Windows\Input\Stylus\Wisp\WispStylusTouchDevice.cs (1)
36
protected override double GetStylusPointWidthOrHeight(
StylusPoint
stylusPoint, bool isWidth)