Пример #1
0
 public void SetButtonLocation(PathPoint value)
 {
     buttonProxy.TranslationX = value.X;
     buttonProxy.TranslationY = value.Y;
 }
Пример #2
0
 /// <summary>
 /// Create a straight line from the current path point to the new one
 /// specified by x and y.
 /// </summary>
 public void LineTo(float x, float y)
 {
     points.Add(PathPoint.LineTo(x, y));
 }
Пример #3
0
 /// <summary>
 /// Create a cubic Bezier curve from the current path point to the new one
 /// specified by x and y. The curve uses the current path location as the first anchor
 /// point, the control points (c0X, c0Y) and (c1X, c1Y), and (x, y) as the end anchor point.
 /// </summary>
 public void CurveTo(float c0X, float c0Y, float c1X, float c1Y, float x, float y)
 {
     points.Add(PathPoint.CurveTo(c0X, c0Y, c1X, c1Y, x, y));
 }
Пример #4
0
 /// <summary>
 /// Move from the current path point to the new one
 /// specified by x and y. This will create a discontinuity if this point is
 /// neither the first point in the path nor the same as the previous point
 /// in the path.
 /// </summary>
 public void MoveTo(float x, float y)
 {
     points.Add(PathPoint.MoveTo(x, y));
 }