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