144 references to PathOperation
Microsoft.Maui.Graphics (108)
PathBuilder.cs (5)
600
var
segmentType = arcPath.GetSegmentType(s);
603
if (segmentType ==
PathOperation
.Move)
607
else if (segmentType ==
PathOperation
.Line)
611
else if (segmentType ==
PathOperation
.Cubic)
615
else if (segmentType ==
PathOperation
.Quad)
PathExtensions.cs (6)
15
var
type = path.GetSegmentType(i);
18
if (type ==
PathOperation
.Move)
23
else if (type ==
PathOperation
.Line)
28
else if (type ==
PathOperation
.Quad)
35
else if (type ==
PathOperation
.Cubic)
44
else if (type ==
PathOperation
.Close)
PathF.cs (97)
15
private readonly List<
PathOperation
> _operations;
22
private PathF(List<PointF> points, List<float> arcSizes, List<bool> arcClockwise, List<
PathOperation
> operations, int subPathCount)
32
foreach (
var
operation in _operations)
34
if (operation ==
PathOperation
.Move)
39
else if (operation ==
PathOperation
.Close)
75
_operations = new List<
PathOperation
>();
86
return _operations[_operations.Count - 1] ==
PathOperation
.Close;
103
public IEnumerable<
PathOperation
> SegmentTypes
180
if (_operations[0] ==
PathOperation
.Move)
185
if (_operations[_operations.Count - 1] ==
PathOperation
.Close)
198
public
PathOperation
GetSegmentType(int aIndex)
253
_operations.Add(
PathOperation
.Move);
264
_operations.Add(
PathOperation
.Close);
272
if (_operations[_operations.Count - 1] ==
PathOperation
.Close)
294
_operations.Add(
PathOperation
.Move);
299
_operations.Add(
PathOperation
.Line);
322
_operations.Insert(index,
PathOperation
.Line);
336
if (Count == 0 || OperationCount == 0 || GetSegmentType(OperationCount - 1) ==
PathOperation
.Close)
347
_operations.Add(
PathOperation
.Arc);
361
_operations.Add(
PathOperation
.Quad);
382
_operations.Insert(index,
PathOperation
.Quad);
399
_operations.Add(
PathOperation
.Cubic);
421
_operations.Insert(index,
PathOperation
.Cubic);
435
var
operation = _operations[operationIndex];
436
if (operation ==
PathOperation
.Move)
443
else if (operation ==
PathOperation
.Line)
450
else if (operation ==
PathOperation
.Quad)
457
else if (operation ==
PathOperation
.Cubic)
464
else if (operation ==
PathOperation
.Arc)
471
else if (operation ==
PathOperation
.Close)
482
public
PathOperation
GetSegmentInfo(int segmentIndex, out int pointIndex, out int arcAngleIndex, out int arcClockwiseIndex)
492
var
type = _operations[s];
493
if (type ==
PathOperation
.Move)
500
else if (type ==
PathOperation
.Line)
506
else if (type ==
PathOperation
.Quad)
512
else if (type ==
PathOperation
.Cubic)
518
else if (type ==
PathOperation
.Arc)
526
else if (type ==
PathOperation
.Close)
534
return
PathOperation
.Close;
544
var
segmentType = _operations[segment];
545
if (segmentType ==
PathOperation
.Move)
552
else if (segmentType ==
PathOperation
.Line)
559
else if (segmentType ==
PathOperation
.Quad)
571
else if (segmentType ==
PathOperation
.Cubic)
588
else if (segmentType ==
PathOperation
.Arc)
613
var
segmentType = _operations[segment];
614
if (segmentType ==
PathOperation
.Move)
624
else if (segmentType ==
PathOperation
.Line)
635
else if (segmentType ==
PathOperation
.Quad)
645
else if (segmentType ==
PathOperation
.Cubic)
655
else if (segmentType ==
PathOperation
.Arc)
665
else if (segmentType ==
PathOperation
.Close)
688
foreach (
var
operation in _operations)
690
if (operation ==
PathOperation
.Move)
695
else if (operation ==
PathOperation
.Close)
719
var
segmentType = _operations[segment];
727
if (segmentType ==
PathOperation
.Move)
731
else if (segmentType ==
PathOperation
.Line)
735
else if (segmentType ==
PathOperation
.Quad)
739
else if (segmentType ==
PathOperation
.Cubic)
743
else if (segmentType ==
PathOperation
.Arc)
767
var
segmentType = _operations[segment];
768
if (segmentType ==
PathOperation
.Move)
808
else if (segmentType ==
PathOperation
.Line)
819
else if (segmentType ==
PathOperation
.Quad)
831
else if (segmentType ==
PathOperation
.Cubic)
844
else if (segmentType ==
PathOperation
.Arc)
861
else if (segmentType ==
PathOperation
.Close)
881
foreach (
var
segmentType in _operations)
883
if (segmentType ==
PathOperation
.Move)
888
else if (segmentType ==
PathOperation
.Line)
893
else if (segmentType ==
PathOperation
.Quad)
899
else if (segmentType ==
PathOperation
.Cubic)
906
else if (segmentType ==
PathOperation
.Arc)
916
else if (segmentType ==
PathOperation
.Close)
952
foreach (
var
operation in _operations)
954
if (operation ==
PathOperation
.Move)
960
else if (operation ==
PathOperation
.Line)
964
else if (operation ==
PathOperation
.Quad)
968
else if (operation ==
PathOperation
.Cubic)
972
else if (operation ==
PathOperation
.Arc)
976
else if (operation ==
PathOperation
.Close)
998
var operations = new List<
PathOperation
>(_operations);
1006
if (operations[i] ==
PathOperation
.Move)
1011
operations.Insert(0,
PathOperation
.Move);
1015
operations[segmentStart] =
PathOperation
.Move;
1016
operations[i] =
PathOperation
.Close;
1021
else if (operations[i] ==
PathOperation
.Close)
1299
var
segmentType = _operations[i];
1356
var
segmentType = _operations[i];
1465
var
operation = _operations[i];
1468
case
PathOperation
.Move:
1471
case
PathOperation
.Line:
1474
case
PathOperation
.Quad:
1485
case
PathOperation
.Cubic:
1493
case
PathOperation
.Arc:
1503
case
PathOperation
.Close:
Microsoft.Maui.Graphics.Skia (19)
SKGraphicsExtensions.cs (19)
123
foreach (
var
type in path.SegmentTypes)
125
if (type ==
PathOperation
.Move)
130
else if (type ==
PathOperation
.Line)
136
else if (type ==
PathOperation
.Quad)
142
else if (type ==
PathOperation
.Cubic)
150
else if (type ==
PathOperation
.Arc)
177
else if (type ==
PathOperation
.Close)
197
var
type = target.GetSegmentType(segmentIndex);
198
if (type ==
PathOperation
.Line)
207
else if (type ==
PathOperation
.Quad)
217
else if (type ==
PathOperation
.Cubic)
228
else if (type ==
PathOperation
.Arc)
271
foreach (
var
type in target.SegmentTypes)
273
if (type ==
PathOperation
.Move)
278
else if (type ==
PathOperation
.Line)
283
else if (type ==
PathOperation
.Quad)
293
else if (type ==
PathOperation
.Cubic)
306
else if (type ==
PathOperation
.Arc)
333
else if (type ==
PathOperation
.Close)
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (17)
src\Graphics\src\Graphics\Platforms\Windows\GraphicsExtensions.cs (17)
141
var
lastOperation =
PathOperation
.Move;
143
foreach (
var
type in path.SegmentTypes)
147
if (type ==
PathOperation
.Move)
149
if (lastOperation !=
PathOperation
.Close && lastOperation !=
PathOperation
.Move)
159
else if (type ==
PathOperation
.Line)
165
else if (type ==
PathOperation
.Quad)
174
else if (type ==
PathOperation
.Cubic)
184
else if (type ==
PathOperation
.Arc)
234
else if (type ==
PathOperation
.Close)
242
if (segmentIndex >= 0 && lastOperation !=
PathOperation
.Close)
274
var
type = path.GetSegmentType(segmentIndex);
275
if (type ==
PathOperation
.Line)
284
else if (type ==
PathOperation
.Quad)
296
else if (type ==
PathOperation
.Cubic)
310
else if (type ==
PathOperation
.Arc)