-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
ArcSegment.cs
82 lines (69 loc) · 3.41 KB
/
ArcSegment.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#nullable disable
using Microsoft.Maui.Graphics;
using Microsoft.Maui.Graphics.Converters;
namespace Microsoft.Maui.Controls.Shapes
{
/// <include file="../../../docs/Microsoft.Maui.Controls.Shapes/ArcSegment.xml" path="Type[@FullName='Microsoft.Maui.Controls.Shapes.ArcSegment']/Docs/*" />
public class ArcSegment : PathSegment
{
/// <include file="../../../docs/Microsoft.Maui.Controls.Shapes/ArcSegment.xml" path="//Member[@MemberName='.ctor'][1]/Docs/*" />
public ArcSegment()
{
}
/// <include file="../../../docs/Microsoft.Maui.Controls.Shapes/ArcSegment.xml" path="//Member[@MemberName='.ctor'][2]/Docs/*" />
public ArcSegment(Point point, Size size, double rotationAngle, SweepDirection sweepDirection, bool isLargeArc)
{
Point = point;
Size = size;
RotationAngle = rotationAngle;
SweepDirection = sweepDirection;
IsLargeArc = isLargeArc;
}
/// <summary>Bindable property for <see cref="Point"/>.</summary>
public static readonly BindableProperty PointProperty =
BindableProperty.Create(nameof(Point), typeof(Point), typeof(ArcSegment), new Point(0, 0));
/// <summary>Bindable property for <see cref="Size"/>.</summary>
public static readonly BindableProperty SizeProperty =
BindableProperty.Create(nameof(Size), typeof(Size), typeof(ArcSegment), new Size(0, 0));
/// <summary>Bindable property for <see cref="RotationAngle"/>.</summary>
public static readonly BindableProperty RotationAngleProperty =
BindableProperty.Create(nameof(RotationAngle), typeof(double), typeof(ArcSegment), 0.0);
/// <summary>Bindable property for <see cref="SweepDirection"/>.</summary>
public static readonly BindableProperty SweepDirectionProperty =
BindableProperty.Create(nameof(SweepDirection), typeof(SweepDirection), typeof(ArcSegment), SweepDirection.CounterClockwise);
/// <summary>Bindable property for <see cref="IsLargeArc"/>.</summary>
public static readonly BindableProperty IsLargeArcProperty =
BindableProperty.Create(nameof(IsLargeArc), typeof(bool), typeof(ArcSegment), false);
/// <include file="../../../docs/Microsoft.Maui.Controls.Shapes/ArcSegment.xml" path="//Member[@MemberName='Point']/Docs/*" />
public Point Point
{
set { SetValue(PointProperty, value); }
get { return (Point)GetValue(PointProperty); }
}
/// <include file="../../../docs/Microsoft.Maui.Controls.Shapes/ArcSegment.xml" path="//Member[@MemberName='Size']/Docs/*" />
[System.ComponentModel.TypeConverter(typeof(SizeTypeConverter))]
public Size Size
{
set { SetValue(SizeProperty, value); }
get { return (Size)GetValue(SizeProperty); }
}
/// <include file="../../../docs/Microsoft.Maui.Controls.Shapes/ArcSegment.xml" path="//Member[@MemberName='RotationAngle']/Docs/*" />
public double RotationAngle
{
set { SetValue(RotationAngleProperty, value); }
get { return (double)GetValue(RotationAngleProperty); }
}
/// <include file="../../../docs/Microsoft.Maui.Controls.Shapes/ArcSegment.xml" path="//Member[@MemberName='SweepDirection']/Docs/*" />
public SweepDirection SweepDirection
{
set { SetValue(SweepDirectionProperty, value); }
get { return (SweepDirection)GetValue(SweepDirectionProperty); }
}
/// <include file="../../../docs/Microsoft.Maui.Controls.Shapes/ArcSegment.xml" path="//Member[@MemberName='IsLargeArc']/Docs/*" />
public bool IsLargeArc
{
set { SetValue(IsLargeArcProperty, value); }
get { return (bool)GetValue(IsLargeArcProperty); }
}
}
}