/// <since_tizen> 9 </since_tizen>
public class Shape : Drawable
{
+ private Gradient fillGradient; //Added gradient
+ private Gradient strokeGradient; //Added gradient
+
/// <summary>
/// Creates an initialized Shape.
/// </summary>
}
/// <summary>
+ /// The gradient to use for filling the path.
+ /// Even if FillColor is set, Gradient setting takes precedence.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public Gradient FillGradient
+ {
+ get
+ {
+ global::System.IntPtr cPtr = Interop.Shape.GetFillGradient(BaseHandle.getCPtr(this));
+ Gradient ret = new Gradient(cPtr, true);
+ return ret;
+ }
+ set
+ {
+ if (value != null)
+ {
+ Interop.Shape.SetFillGradient(BaseHandle.getCPtr(this), BaseHandle.getCPtr(value));
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ fillGradient = value;
+ }
+ }
+ }
+
+ /// <summary>
/// The current fill rule of the shape.
/// </summary>
/// <since_tizen> 9 </since_tizen>
}
/// <summary>
+ /// The gradient to use for stroking the path.
+ /// Even if StrokeColor is set, Gradient setting takes precedence.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public Gradient StrokeGradient
+ {
+ get
+ {
+ global::System.IntPtr cPtr = Interop.Shape.GetStrokeGradient(BaseHandle.getCPtr(this));
+ Gradient ret = new Gradient(cPtr, true);
+ return ret;
+ }
+ set
+ {
+ if (value != null)
+ {
+ Interop.Shape.SetStrokeGradient(BaseHandle.getCPtr(this), BaseHandle.getCPtr(value));
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ strokeGradient = value;
+ }
+ }
+ }
+
+ /// <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>
/// <since_tizen> 9 </since_tizen>