Skip to content

Commit

Permalink
Add Shapes: PathView
Browse files Browse the repository at this point in the history
  • Loading branch information
JoonghyunCho authored and rookiejava committed Apr 15, 2021
1 parent 7128c49 commit 3207826
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Tizen.UIExtensions.ElmSharp/Shapes/LinearGradientBrush.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ public LinearGradientBrush()
EndPoint = new Point(1, 1);
}

public LinearGradientBrush(List<GradientStop> gradientStops) : this()
public LinearGradientBrush(IList<GradientStop> gradientStops) : this()
{
GradientStops = gradientStops;
}

public LinearGradientBrush(List<GradientStop> gradientStops, Point startPoint, Point endPoint)
public LinearGradientBrush(IList<GradientStop> gradientStops, Point startPoint, Point endPoint)
{
GradientStops = gradientStops;
StartPoint = startPoint;
Expand Down
22 changes: 22 additions & 0 deletions src/Tizen.UIExtensions.ElmSharp/Shapes/PathView.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
using ElmSharp;
using SkiaSharp;

namespace Tizen.UIExtensions.ElmSharp
{
public class PathView : ShapeView
{
public PathView(EvasObject parent) : base(parent)
{
}

public void UpdateData(SKPath path)
{
UpdateShape(path);
}

public void UpdateTransform(SKMatrix transform)
{
UpdateShapeTransform(transform);
}
}
}

0 comments on commit 3207826

Please sign in to comment.