[NUI] VectorGraphics:Open added APIs(DrawableGroup, Picture, Gradient)
authorJunsuChoi <jsuya.choi@samsung.com>
Tue, 24 Aug 2021 09:56:20 +0000 (18:56 +0900)
committerSeoyeon2Kim <34738918+Seoyeon2Kim@users.noreply.github.com>
Mon, 13 Sep 2021 07:33:23 +0000 (16:33 +0900)
commit2d22817c11b6da0a9d8c9ff7ced9c1729bbe9a2e
tree3a532de2ecbc785478ca80df1dee09c162c60ab1
parent7baef970b2b7a17050c8d9de85c14f3d30e11068
[NUI] VectorGraphics:Open added APIs(DrawableGroup, Picture, Gradient)

[Add ACR]
src/public/BaseComponents/VectorGraphics/CanvasView.cs
  [Add] public void RemoveDrawable(Drawable drawable)
  [Add] public void RemoveAllDrawables()

src/public/BaseComponents/VectorGraphics/Drawable.cs
  [Add] public Vector4 BoundingBox { get; }
  [Add] public void ClipPath(Drawable clip)
  [Add] public void Mask(Drawable mask, MaskType type)

src/public/BaseComponents/VectorGraphics/Shape.cs
  [Add] public Gradient FillGradient { get; set; }
  [Add] public Gradient StrokeGradient { get; set; }
  [Add] public void AddPath(PathCommands pathCommands)

src/public/BaseComponents/VectorGraphics/DrawableGroup.cs
  [Add] public DrawableGroup()
  [Add] public void AddDrawable(Drawable drawable)
  [Add] public void RemoveDrawable(Drawable drawable)
  [Add] public bool RemoveAllDrawables()

src/public/BaseComponents/VectorGraphics/Picture.cs
  [Add] public Picture()
  [Add] public void Load(string url)
  [Add] public void SetSize(Size2D size)
  [Add] public Size2D GetSize()

src/public/BaseComponents/VectorGraphics/Gradient.cs
  [Add] public SpreadType Spread { get; set; }
  [Add] public ReadOnlyCollection ColorStops { get; set; }

src/public/BaseComponents/VectorGraphics/LinearGradient.cs
  [Add] public LinearGradient()
  [Add] public void SetBounds(Position2D firstPoint, Position2D secondPoint)
  [Add] public void GetBounds(ref Position2D firstPoint, ref Position2D secondPoint)

src/public/BaseComponents/VectorGraphics/RadialGradient.cs
  [Add] public RadialGradient()
  [Add] public void SetBounds(Position2D centerPoint, float radius)
  [Add] public void GetBounds(ref Position2D centerPoint, ref float radius)

src/public/BaseComponents/VectorGraphics/ColorStop.cs
  [Add] public ColorStop(float offset, Color color)
  [Add] public float Offset { get; set; }
  [Add] public Color Color { get; set; }

src/public/BaseComponents/VectorGraphics/PathCommands.cs
  [Add] PathCommands(IEnumerable commands, IEnumerable points)
  [Add] public IEnumerable Commands { get; set; }
  [Add] public IEnumerable Points { get; set; }

src/public/BaseComponents/VectorGraphics/VectorGraphicsConstants.cs
  [Add] public enum MaskType { Alpha, AlphaInverse }
  [Add] public enum SpreadType { Pad, Reflect, Repeat }
  [Add] public enum PathCommandType { Close, MoveTo, LineTo, CubicTo }

[Changed ACR]
[Change]
src/public/BaseComponents/VectorGraphics/Shape.cs
public enum VectorGraphics.Shape.FillRuleType { Winding, EvenOdd }
->
src/public/BaseComponents/VectorGraphics/VectorGraphicsConstants.cs
public enum VectorGraphics.FillRuleType { Winding, EvenOdd }

[Change]
src/public/BaseComponents/VectorGraphics/Shape.cs
public enum VectorGraphics.Shape.StrokeCapType { Square, Round, Butt }
->
src/public/BaseComponents/VectorGraphics/VectorGraphicsConstants.cs
public enum VectorGraphics.StrokeCapType { Square, Round, Butt }

[Change]
src/public/BaseComponents/VectorGraphics/Shape.cs
public enum VectorGraphics.Shape.StrokeJoinType { Bevel, Round, Miter }
->
src/public/BaseComponents/VectorGraphics/VectorGraphicsConstants.cs
public enum VectorGraphics.StrokeJoinType { Bevel, Round, Miter }
12 files changed:
src/Tizen.NUI/src/public/BaseComponents/VectorGraphics/CanvasView.cs
src/Tizen.NUI/src/public/BaseComponents/VectorGraphics/ColorStop.cs
src/Tizen.NUI/src/public/BaseComponents/VectorGraphics/Drawable.cs
src/Tizen.NUI/src/public/BaseComponents/VectorGraphics/DrawableGroup.cs
src/Tizen.NUI/src/public/BaseComponents/VectorGraphics/Gradient.cs
src/Tizen.NUI/src/public/BaseComponents/VectorGraphics/LinearGradient.cs
src/Tizen.NUI/src/public/BaseComponents/VectorGraphics/PathCommands.cs
src/Tizen.NUI/src/public/BaseComponents/VectorGraphics/Picture.cs
src/Tizen.NUI/src/public/BaseComponents/VectorGraphics/RadialGradient .cs
src/Tizen.NUI/src/public/BaseComponents/VectorGraphics/Shape.cs
src/Tizen.NUI/src/public/BaseComponents/VectorGraphics/VectorGraphicsConstants.cs
test/Tizen.NUI.Samples/Tizen.NUI.Samples/Samples/CanvasViewSample.cs