-
Notifications
You must be signed in to change notification settings - Fork 145
Expand file tree
/
Copy pathSurfaceBrushReferenceNode.cs
More file actions
157 lines (139 loc) · 4.27 KB
/
SurfaceBrushReferenceNode.cs
File metadata and controls
157 lines (139 loc) · 4.27 KB
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#if WINAPPSDK
using Microsoft.UI.Composition;
#else
using Windows.UI.Composition;
#endif
namespace CommunityToolkit.WinUI.Animations.Expressions;
/// <summary>
/// Class SurfaceBrushReferenceNode. This class cannot be inherited.
/// </summary>
/// <seealso cref="CommunityToolkit.WinUI.Animations.Expressions.ReferenceNode" />
public sealed partial class SurfaceBrushReferenceNode : ReferenceNode
{
/// <summary>
/// Initializes a new instance of the <see cref="SurfaceBrushReferenceNode"/> class.
/// </summary>
/// <param name="paramName">Name of the parameter.</param>
/// <param name="brush">The brush.</param>
internal SurfaceBrushReferenceNode(string? paramName, CompositionSurfaceBrush? brush = null)
: base(paramName!, brush)
{
}
/// <summary>
/// Creates the target reference.
/// </summary>
/// <returns>SurfaceBrushReferenceNode.</returns>
internal static SurfaceBrushReferenceNode CreateTargetReference()
{
var node = new SurfaceBrushReferenceNode(null);
node.NodeType = ExpressionNodeType.TargetReference;
return node;
}
/// <summary>
/// Gets the horizontal alignment ratio.
/// </summary>
/// <value>The horizontal alignment ratio.</value>
public ScalarNode HorizontalAlignmentRatio
{
get { return ReferenceProperty<ScalarNode>("HorizontalAlignmentRatio"); }
}
/// <summary>
/// Gets the vertical alignment ratio.
/// </summary>
/// <value>The vertical alignment ratio.</value>
public ScalarNode VerticalAlignmentRatio
{
get { return ReferenceProperty<ScalarNode>("VerticalAlignmentRatio"); }
}
/// <summary>
/// Gets the bottom inset.
/// </summary>
/// <value>The bottom inset.</value>
public ScalarNode BottomInset
{
get { return ReferenceProperty<ScalarNode>("BottomInset"); }
}
/// <summary>
/// Gets the left inset.
/// </summary>
/// <value>The left inset.</value>
public ScalarNode LeftInset
{
get { return ReferenceProperty<ScalarNode>("LeftInset"); }
}
/// <summary>
/// Gets the right inset.
/// </summary>
/// <value>The right inset.</value>
public ScalarNode RightInset
{
get { return ReferenceProperty<ScalarNode>("RightInset"); }
}
/// <summary>
/// Gets the top inset.
/// </summary>
/// <value>The top inset.</value>
public ScalarNode TopInset
{
get { return ReferenceProperty<ScalarNode>("TopInset"); }
}
/// <summary>
/// Gets the rotation angle.
/// </summary>
/// <value>The rotation angle.</value>
public ScalarNode RotationAngle
{
get { return ReferenceProperty<ScalarNode>("RotationAngle"); }
}
/// <summary>
/// Gets the rotation angle in degrees.
/// </summary>
/// <value>The rotation angle in degrees.</value>
public ScalarNode RotationAngleInDegrees
{
get { return ReferenceProperty<ScalarNode>("RotationAngleInDegrees"); }
}
/// <summary>
/// Gets the anchor point.
/// </summary>
/// <value>The anchor point.</value>
public Vector2Node AnchorPoint
{
get { return ReferenceProperty<Vector2Node>("AnchorPoint"); }
}
/// <summary>
/// Gets the center point.
/// </summary>
/// <value>The center point.</value>
public Vector2Node CenterPoint
{
get { return ReferenceProperty<Vector2Node>("CenterPoint"); }
}
/// <summary>
/// Gets the offset.
/// </summary>
/// <value>The offset.</value>
public Vector2Node Offset
{
get { return ReferenceProperty<Vector2Node>("Offset"); }
}
/// <summary>
/// Gets the scale.
/// </summary>
/// <value>The scale.</value>
public Vector2Node Scale
{
get { return ReferenceProperty<Vector2Node>("Scale"); }
}
/// <summary>
/// Gets the transform matrix.
/// </summary>
/// <value>The transform matrix.</value>
public Matrix3x2Node TransformMatrix
{
get { return ReferenceProperty<Matrix3x2Node>("TransformMatrix"); }
}
}