[NUI] Open newly added APIs in VectorGraphics(CanvasView, Drawable, Shape)
authorJunsuChoi <jsuya.choi@samsung.com>
Fri, 9 Apr 2021 07:47:19 +0000 (16:47 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Fri, 7 May 2021 01:32:27 +0000 (10:32 +0900)
src/public/BaseComponents/VectorGraphics/CanvasView.cs
CanvasView
    [Add] CanvasView(Size2D viewBox)
    [Add] void AddDrawable(Drawable drawable)
src/public/BaseComponents/VectorGraphics/Drawable.cs
Drawable
    [Add] float Opacity { get; set; }
    [Add] bool Rotate(float degree)
    [Add] bool Scale(float factor)
    [Add] bool Transform(float[] matrix)
    [Add] bool Translate(float x, float y)
src/public/BaseComponents/VectorGraphics/Shape.cs
Shape
    [Add] Shape()
    [Add] enum FillRuleType { Winding, EvenOdd }
    [Add] enum StrokeCapType { Square, Round, Butt }
    [Add] enum StrokeJoinType { Bevel, Round, Miter }
    [Add] Color FillColor { get; set; }
    [Add] FillRuleType FillRule { get; set; }
    [Add] float StrokeWidth { get; set; }
    [Add] Color StrokeColor { get; set; }
    [Add] StrokeCapType StrokeCap { get; set; }
    [Add] StrokeJoinType StrokeJoin { get; set; }
    [Add] ReadOnlyCollection<float> StrokeDash { get; set; }
    [Add] bool AddRect(float x, float y, float width, float height, float roundedCornerX, float roundedCornerY)
    [Add] bool AddCircle(float x, float y, float radiusX, float radiusY)
    [Add] bool AddArc(float x, float y, float radius, float startAngle, float sweep, bool pie)
    [Add] bool AddMoveTo(float x, float y)
    [Add] bool AddLineTo(float x, float y)
    [Add] bool AddCubicTo(float controlPoint1X, float controlPoint1Y, float controlPoint2X, float controlPoint2Y, float endPointX, float endPointY)
    [Add] bool Close()
    [Add] bool ResetPath()

src/Tizen.NUI/src/public/BaseComponents/VectorGraphics/CanvasView.cs
src/Tizen.NUI/src/public/BaseComponents/VectorGraphics/Drawable.cs
src/Tizen.NUI/src/public/BaseComponents/VectorGraphics/Shape.cs

index 830dcf2..d00925b 100755 (executable)
@@ -32,7 +32,7 @@ namespace Tizen.NUI.BaseComponents.VectorGraphics
         /// Creates an initialized CanvasView.
         /// </summary>
         /// <param name="viewBox">The size of viewbox.</param>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 9 </since_tizen>
         [SuppressMessage("Microsoft.Design", "CA2000: Dispose objects before losing scope", Justification = "It does not have dispose ownership.")]
         public CanvasView(Size2D viewBox) : this(viewBox == null ? throw new ArgumentNullException(nameof(viewBox)) : Interop.CanvasView.New(Uint16Pair.getCPtr(new Uint16Pair((uint)viewBox.Width, (uint)viewBox.Height))), true)
         {
@@ -74,7 +74,7 @@ namespace Tizen.NUI.BaseComponents.VectorGraphics
         /// This method is similar to registration. The added shape is drawn on the inner canvas.
         /// </summary>
         /// <param name="drawable">Drawable object</param>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 9 </since_tizen>
         public void AddDrawable(Drawable drawable)
         {
             Interop.CanvasView.AddDrawable(View.getCPtr(this), BaseHandle.getCPtr(drawable));
index b6dca59..50b20c1 100755 (executable)
@@ -29,7 +29,7 @@ namespace Tizen.NUI.BaseComponents.VectorGraphics
         /// Creates an initialized drawable.
         /// </summary>
         [EditorBrowsable(EditorBrowsableState.Never)]
-        private Drawable() {}
+        private Drawable() { }
 
         internal Drawable(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
         {
@@ -38,7 +38,7 @@ namespace Tizen.NUI.BaseComponents.VectorGraphics
         /// <summary>
         /// The transparency level [0 ~ 1.0], 0 means totally transparent, while 1 means opaque.
         /// </summary>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 9 </since_tizen>
         public float Opacity
         {
             get
@@ -57,7 +57,7 @@ namespace Tizen.NUI.BaseComponents.VectorGraphics
         /// </summary>
         /// <param name="degree">The degree value of angle.</param>
         /// <returns>True when it's successful. False otherwise.</returns>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 9 </since_tizen>
         public bool Rotate(float degree)
         {
             bool ret = Interop.Drawable.Rotate(BaseHandle.getCPtr(this), degree);
@@ -70,7 +70,7 @@ namespace Tizen.NUI.BaseComponents.VectorGraphics
         /// </summary>
         /// <param name="factor">The scale factor value.</param>
         /// <returns>True when it's successful. False otherwise.</returns>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 9 </since_tizen>
         public bool Scale(float factor)
         {
             bool ret = Interop.Drawable.Scale(BaseHandle.getCPtr(this), factor);
@@ -85,7 +85,7 @@ namespace Tizen.NUI.BaseComponents.VectorGraphics
         /// <returns>True when it's successful. False otherwise.</returns>
         /// <exception cref="ArgumentNullException"> Thrown when matrix is null. </exception>
         /// <exception cref="ArgumentException"> Thrown when matrix array length is not 9. </exception>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 9 </since_tizen>
         public bool Transform(float[] matrix)
         {
             if (matrix == null)
@@ -107,7 +107,7 @@ namespace Tizen.NUI.BaseComponents.VectorGraphics
         /// <param name="x">The x-axis movement value.</param>
         /// <param name="y">The y-axis movement value.</param>
         /// <returns>True when it's successful. False otherwise.</returns>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 9 </since_tizen>
         public bool Translate(float x, float y)
         {
             bool ret = Interop.Drawable.Translate(BaseHandle.getCPtr(this), x, y);
index e4a1474..e3546bf 100755 (executable)
@@ -31,7 +31,7 @@ namespace Tizen.NUI.BaseComponents.VectorGraphics
         /// <summary>
         /// Creates an initialized Shape.
         /// </summary>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 9 </since_tizen>
         public Shape() : this(Interop.Shape.New(), true)
         {
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
@@ -44,7 +44,7 @@ namespace Tizen.NUI.BaseComponents.VectorGraphics
         /// <summary>
         /// Enumeration for The fill rule of shape.
         /// </summary>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 9 </since_tizen>
         public enum FillRuleType
         {
             /// <summary>
@@ -60,7 +60,7 @@ namespace Tizen.NUI.BaseComponents.VectorGraphics
         /// <summary>
         /// Enumeration for The cap style to be used for stroking the path.
         /// </summary>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 9 </since_tizen>
         public enum StrokeCapType
         {
             /// <summary>
@@ -80,7 +80,7 @@ namespace Tizen.NUI.BaseComponents.VectorGraphics
         /// <summary>
         /// numeration for The join style to be used for stroking the path.
         /// </summary>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 9 </since_tizen>
         public enum StrokeJoinType
         {
             /// <summary>
@@ -100,7 +100,7 @@ namespace Tizen.NUI.BaseComponents.VectorGraphics
         /// <summary>
         /// The color to use for filling the path.
         /// </summary>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 9 </since_tizen>
         public Color FillColor
         {
             get
@@ -118,7 +118,7 @@ namespace Tizen.NUI.BaseComponents.VectorGraphics
         /// <summary>
         /// The current fill rule of the shape.
         /// </summary>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 9 </since_tizen>
         public FillRuleType FillRule
         {
             get
@@ -135,7 +135,7 @@ namespace Tizen.NUI.BaseComponents.VectorGraphics
         /// <summary>
         /// The stroke width to use for stroking the path.
         /// </summary>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 9 </since_tizen>
         public float StrokeWidth
         {
             get
@@ -152,7 +152,7 @@ namespace Tizen.NUI.BaseComponents.VectorGraphics
         /// <summary>
         /// The color to use for stroking the path.
         /// </summary>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 9 </since_tizen>
         public Color StrokeColor
         {
             get
@@ -170,7 +170,7 @@ namespace Tizen.NUI.BaseComponents.VectorGraphics
         /// <summary>
         /// The cap style to use for stroking the path. The cap will be used for capping the end point of a open subpath.
         /// </summary>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 9 </since_tizen>
         public StrokeCapType StrokeCap
         {
             get
@@ -188,7 +188,7 @@ namespace Tizen.NUI.BaseComponents.VectorGraphics
         /// The join style to use for stroking the path.
         /// The join style will be used for joining the two line segment while stroking the path.
         /// </summary>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 9 </since_tizen>
         public StrokeJoinType StrokeJoin
         {
             get
@@ -206,7 +206,7 @@ namespace Tizen.NUI.BaseComponents.VectorGraphics
         /// The stroke dash pattern. The dash pattern is specified dash pattern.
         /// </summary>
         /// <exception cref="ArgumentNullException"> Thrown when value is null. </exception>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 9 </since_tizen>
         public ReadOnlyCollection<float> StrokeDash
         {
             get
@@ -253,7 +253,7 @@ namespace Tizen.NUI.BaseComponents.VectorGraphics
         /// <param name="roundedCornerX">The x radius of the rounded corner and should be in range [ 0 to w/2 ].</param>
         /// <param name="roundedCornerY">The y radius of the rounded corner and should be in range [ 0 to w/2 ].</param>
         /// <returns>True when it's successful. False otherwise.</returns>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 9 </since_tizen>
         public bool AddRect(float x, float y, float width, float height, float roundedCornerX, float roundedCornerY)
         {
             bool ret = Interop.Shape.AddRect(BaseHandle.getCPtr(this), x, y, width, height, roundedCornerX, roundedCornerY);
@@ -266,10 +266,10 @@ namespace Tizen.NUI.BaseComponents.VectorGraphics
         /// </summary>
         /// <param name="x">X co-ordinate of the center of the circle.</param>
         /// <param name="y">Y co-ordinate of the center of the circle.</param>
-        /// <param name="radiusX">X axis radius of the circle.</param>
-        /// <param name="radiusY">X axis radius of the circle.</param>
+        /// <param name="radiusX">X axis radius.</param>
+        /// <param name="radiusY">Y axis radius.</param>
         /// <returns>True when it's successful. False otherwise.</returns>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 9 </since_tizen>
         public bool AddCircle(float x, float y, float radiusX, float radiusY)
         {
             bool ret = Interop.Shape.AddCircle(BaseHandle.getCPtr(this), x, y, radiusX, radiusY);
@@ -287,7 +287,7 @@ namespace Tizen.NUI.BaseComponents.VectorGraphics
         /// <param name="sweep">The Angle measures how long the arc will be drawn.</param>
         /// <param name="pie">If True, the area is created by connecting start angle point and sweep angle point of the drawn arc. If false, it doesn't.</param>
         /// <returns>True when it's successful. False otherwise.</returns>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 9 </since_tizen>
         public bool AddArc(float x, float y, float radius, float startAngle, float sweep, bool pie)
         {
             bool ret = Interop.Shape.AddArc(BaseHandle.getCPtr(this), x, y, radius, startAngle, sweep, pie);
@@ -302,7 +302,7 @@ namespace Tizen.NUI.BaseComponents.VectorGraphics
         /// <param name="x">X co-ordinate of the current point.</param>
         /// <param name="y">Y co-ordinate of the current point.</param>
         /// <returns>True when it's successful. False otherwise.</returns>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 9 </since_tizen>
         public bool AddMoveTo(float x, float y)
         {
             bool ret = Interop.Shape.AddMoveTo(BaseHandle.getCPtr(this), x, y);
@@ -319,7 +319,7 @@ namespace Tizen.NUI.BaseComponents.VectorGraphics
         /// <param name="x">X co-ordinate of end point of the line.</param>
         /// <param name="y">Y co-ordinate of end point of the line.</param>
         /// <returns>True when it's successful. False otherwise.</returns>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 9 </since_tizen>
         public bool AddLineTo(float x, float y)
         {
             bool ret = Interop.Shape.AddLineTo(BaseHandle.getCPtr(this), x, y);
@@ -340,7 +340,7 @@ namespace Tizen.NUI.BaseComponents.VectorGraphics
         /// <param name="endPointX">X co-ordinate of end point of the line.</param>
         /// <param name="endPointY">Y co-ordinate of end point of the line.</param>
         /// <returns>True when it's successful. False otherwise.</returns>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 9 </since_tizen>
         public bool AddCubicTo(float controlPoint1X, float controlPoint1Y, float controlPoint2X, float controlPoint2Y, float endPointX, float endPointY)
         {
             bool ret = Interop.Shape.AddCubicTo(BaseHandle.getCPtr(this), controlPoint1X, controlPoint1Y, controlPoint2X, controlPoint2Y, endPointX, endPointY);
@@ -355,7 +355,7 @@ namespace Tizen.NUI.BaseComponents.VectorGraphics
         /// If the subpath does not contain any points, this function does nothing.
         /// </summary>
         /// <returns>True when it's successful. False otherwise.</returns>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 9 </since_tizen>
         public bool Close()
         {
             bool ret = Interop.Shape.Close(BaseHandle.getCPtr(this));
@@ -368,7 +368,7 @@ namespace Tizen.NUI.BaseComponents.VectorGraphics
         /// Color and Stroke information are keeped.
         /// </summary>
         /// <returns>True when it's successful. False otherwise.</returns>
-        [EditorBrowsable(EditorBrowsableState.Never)]
+        /// <since_tizen> 9 </since_tizen>
         public bool ResetPath()
         {
             bool ret = Interop.Shape.ResetPath(BaseHandle.getCPtr(this));