/// <summary>
/// Creates an initialized CanvasView.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public CanvasView() : this(Interop.CanvasView.New(), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// <summary>
/// The viewbox of the CanvasView.
+ /// The viewbox means the size of CanvasView's internal space.
+ /// If the size of the viewbox is larger than the size of the Canvasview, the shapes are displayed smaller than the specified size.
+ /// The default value of the viewbox is the same as the size of the canvasview.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public Size2D ViewBox
{
get
/// </summary>
/// <param name="drawable">Drawable object</param>
/// <exception cref="ArgumentNullException"> Thrown when drawable is null. </exception>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public void RemoveDrawable(Drawable drawable)
{
if (drawable == null)
/// <summary>
/// Remove all drawable objects added to the CanvasView.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public void RemoveAllDrawables()
{
Interop.CanvasView.RemoveAllDrawables(View.getCPtr(this));
/// <summary>
/// A data storing the information about the color and its relative position inside the gradient bounds.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public class ColorStop
{
private float offset; //The relative position of the color.
/// <summary>
/// Initialize ColorStop.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public ColorStop(float offset, Color color)
{
this.offset = offset;
/// <summary>
/// The relative position of the color.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public float Offset
{
set
/// <summary>
/// The color value.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public Color Color
{
set {
/// float boundingBoxWidth = shape.BoundingBox[2]; // boundingBoxWidth will be 100.
/// float boundingBoxHeight = shape.BoundingBox[3]; // boundingBoxHeight will be 100.
/// </code>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public Vector4 BoundingBox
{
get
/// <param name="clip">The clip drawable object.</param>
/// <exception cref="Exception"> Drawable clpping failed. </exception>
/// <exception cref="ArgumentNullException"> Thrown when drawable is null. </exception>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public void ClipPath(Drawable clip)
{
if (clip == null)
/// <param name="type">The masking type.</param>
/// <exception cref="Exception"> Drawable masking failed. </exception>
/// <exception cref="ArgumentNullException"> Thrown when drawable is null. </exception>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public void Mask(Drawable mask, MaskType type)
{
if (mask == null)
namespace Tizen.NUI.BaseComponents.VectorGraphics
{
/// <summary>
- /// A class enabling to hold many Drawable objects. As a whole they can be transformed, their transparency can be changed.
+ /// A class enabling to hold many Drawable objects.
+ /// The added Drawables are affected by the transform and opacity of DrawableGoup.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public class DrawableGroup : Drawable
{
private List<Drawable> drawables; //The list of added drawables
/// <summary>
/// Creates an initialized DrawableGroup.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public DrawableGroup() : this(Interop.DrawableGroup.New(), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// </summary>
/// <param name="drawable">Drawable object</param>
/// <exception cref="ArgumentNullException"> Thrown when drawable is null. </exception>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public void AddDrawable(Drawable drawable)
{
if (drawable == null)
}
/// <summary>
- /// Remove drawable object to the DrawableGroup.
+ /// Remove drawable object from the DrawableGroup.
/// This method is similar to deregistration.
/// </summary>
/// <param name="drawable">Drawable object</param>
/// <exception cref="ArgumentNullException"> Thrown when drawable is null. </exception>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public void RemoveDrawable(Drawable drawable)
{
if (drawable == null)
/// This method does not free the memory of the added drawable object.
/// </summary>
/// <returns>True when it's successful. False otherwise.</returns>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public bool RemoveAllDrawables()
{
bool ret = Interop.DrawableGroup.RemoveAllDrawables(BaseHandle.getCPtr(this));
/// It contains the information about the gradient colors and their arrangement
/// inside the gradient bounds. The gradients bounds are defined in the LinearGradient
/// or RadialGradient class, depending on the type of the gradient to be used.
- /// It specifies the gradient behavior in case the area defined by the gradient bounds
- /// is smaller than the area to be filled.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public class Gradient : BaseHandle
{
/// <summary>
/// <summary>
/// Specifying how to fill the area outside the gradient bounds.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public SpreadType Spread
{
get
/// The parameters list of the colors of the gradient and their position.
/// </summary>
/// <exception cref="ArgumentNullException"> Thrown when value is null. </exception>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public ReadOnlyCollection<ColorStop> ColorStops
{
get
/// Besides the class inherited from the Gradient class, it enables setting and getting the linear gradient bounds.
/// The behavior outside the gradient bounds depends on the value specified in the spread API.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public class LinearGradient : Gradient
{
/// <summary>
/// Creates an initialized linear gradient.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public LinearGradient() : this(Interop.LinearGradient.New(), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// <summary>
/// Sets the linear gradient bounds.
///
- /// The bounds of the linear gradient are defined as a surface constrained by two parallel lines crossing
- /// the given points firstPoint and secondPoint, respectively. Both lines are perpendicular to the line linking
- /// firstPoint and secondPoint.
+ /// The bounds of the linear gradient are defined by two parallel lines crossing the given points firstPoint and secondPoint, respectively.
+ /// Both lines are perpendicular to the line linking firstPoint and secondPoint.
/// </summary>
/// <param name="firstPoint">The first point used to determine the gradient bounds.</param>
/// <param name="secondPoint">The second point used to determine the gradient bounds.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public void SetBounds(Position2D firstPoint, Position2D secondPoint)
{
Interop.LinearGradient.SetBounds(BaseHandle.getCPtr(this), Position2D.getCPtr(firstPoint), Position2D.getCPtr(secondPoint));
/// </summary>
/// <param name="firstPoint">The first point used to determine the gradient bounds.</param>
/// <param name="secondPoint">The second point used to determine the gradient bounds.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public void GetBounds(ref Position2D firstPoint, ref Position2D secondPoint)
{
Interop.LinearGradient.GetBounds(BaseHandle.getCPtr(this), Position2D.getCPtr(firstPoint), Position2D.getCPtr(secondPoint));
/// Data class that contains information about a list of path commands.
/// For each command from the commands array, an appropriate number of points in points array should be specified.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public class PathCommands
{
private IEnumerable<PathCommandType> commands; //The array of commands.
/// <param name="commands">The array of commands.</param>
/// <param name="points">The array of points.</param>
/// <exception cref="ArgumentNullException"> Thrown when commands or points are null. </exception>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public PathCommands(IEnumerable<PathCommandType> commands, IEnumerable<float> points)
{
if (commands == null)
/// The commands array.
/// </summary>
/// <exception cref="ArgumentNullException"> Thrown when commands is null. </exception>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public IEnumerable<PathCommandType> Commands
{
get
/// The points array
/// </summary>
/// <exception cref="ArgumentNullException"> Thrown when points is null. </exception>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public IEnumerable<float> Points
{
get
/// A class representing an image read in one of the supported formats: raw, svg, png and etc.
/// Besides the methods inherited from the Drawable, it provides methods to load and draw images on the canvas.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public class Picture : Drawable
{
/// <summary>
/// Creates an initialized Picture.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public Picture() : this(Interop.Picture.New(), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// <param name="url">A path to the picture file.</param>
/// <exception cref="ArgumentNullException"> Thrown when url is null. </exception>
/// <exception cref="Exception"> Thrown when image load fail. </exception>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public void Load(string url)
{
if (url == null)
/// </summary>
/// <param name="size">A new size of the image in pixels</param>
/// <exception cref="ArgumentNullException"> Thrown when size is null. </exception>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public void SetSize(Size2D size)
{
if (size == null)
/// Gets the size of the image.
/// </summary>
/// <returns> The size of the image in pixels.</returns>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public Size2D GetSize()
{
global::System.IntPtr cPtr = Interop.Picture.GetSize(View.getCPtr(this));
/// <summary>
/// A class representing the radial gradient fill of the Shape object.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public class RadialGradient : Gradient
{
/// <summary>
/// Creates an initialized radial gradient.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public RadialGradient() : this(Interop.RadialGradient.New(), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// </summary>
/// <param name="centerPoint">The point of the center of the bounding circle.</param>
/// <param name="radius">The radius of the bounding circle.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public void SetBounds(Position2D centerPoint, float radius)
{
Interop.RadialGradient.SetBounds(BaseHandle.getCPtr(this), Position2D.getCPtr(centerPoint), radius);
/// </summary>
/// <param name="centerPoint">The point of the center of the bounding circle.</param>
/// <param name="radius">The radius of the bounding circle.</param>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public void GetBounds(ref Position2D centerPoint, ref float radius)
{
float ret = 0.0f;
}
/// <summary>
- /// Enumeration for The fill rule of shape.
- /// </summary>
- /// <since_tizen> 9 </since_tizen>
- public enum FillRuleType
- {
- /// <summary>
- /// Draw a horizontal line from the point to a location outside the shape. Determine whether the direction of the line at each intersection point is up or down. The winding number is determined by summing the direction of each intersection. If the number is non zero, the point is inside the shape.
- /// </summary>
- Winding = 0,
- /// <summary>
- /// Draw a horizontal line from the point to a location outside the shape, and count the number of intersections. If the number of intersections is an odd number, the point is inside the shape.
- /// </summary>
- EvenOdd
- }
-
- /// <summary>
- /// Enumeration for The cap style to be used for stroking the path.
- /// </summary>
- /// <since_tizen> 9 </since_tizen>
- public enum StrokeCapType
- {
- /// <summary>
- /// The end of lines is rendered as a square around the last point.
- /// </summary>
- Square = 0,
- /// <summary>
- /// The end of lines is rendered as a half-circle around the last point.
- /// </summary>
- Round,
- /// <summary>
- /// The end of lines is rendered as a full stop on the last point itself.
- /// </summary>
- Butt
- }
-
- /// <summary>
- /// numeration for The join style to be used for stroking the path.
- /// </summary>
- /// <since_tizen> 9 </since_tizen>
- public enum StrokeJoinType
- {
- /// <summary>
- /// Used to render beveled line joins. The outer corner of the joined lines is filled by enclosing the triangular region of the corner with a straight line between the outer corners of each stroke.
- /// </summary>
- Bevel = 0,
- /// <summary>
- /// Used to render rounded line joins. Circular arcs are used to join two lines smoothly.
- /// </summary>
- Round,
- /// <summary>
- /// Used to render mitered line joins. The intersection of the strokes is clipped at a line perpendicular to the bisector of the angle between the strokes, at the distance from the intersection of the segments equal to the product of the miter limit value and the border radius. This prevents long spikes being created.
- /// </summary>
- Miter
- }
-
- /// <summary>
/// The color to use for filling the path.
/// </summary>
/// <since_tizen> 9 </since_tizen>
/// The gradient to use for filling the path.
/// Even if FillColor is set, Gradient setting takes precedence.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public Gradient FillGradient
{
get
/// The gradient to use for stroking the path.
/// Even if StrokeColor is set, Gradient setting takes precedence.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public Gradient StrokeGradient
{
get
/// </summary>
/// <param name="pathCommands">The command object that contain sub-path information. (This command information is copied internally.)</param>
/// <exception cref="ArgumentNullException"> Thrown when pathCommands is null. </exception>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public void AddPath(PathCommands pathCommands)
{
if (pathCommands == null)
/// <summary>
/// Enumeration for The fill rule of shape.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public enum FillRuleType
{
/// <summary>
/// <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>
/// <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>
/// <summary>
/// Enumeration indicating the type used in the masking of two objects - the mask drawable and the own drawable.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public enum MaskType
{
/// <summary>
/// <summary>
/// Enumeration specifying how to fill the area outside the gradient bounds.
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public enum SpreadType
{
/// <summary>
/// Enumeration specifying the values of the path commands.
/// Not to be confused with the path commands from the svg path element (like M, L, Q, H and many others).
/// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 9 </since_tizen>
public enum PathCommandType
{
/// <summary>
{
StrokeColor = new Color(0.0f, 0.5f, 0.0f, 0.5f),
StrokeWidth = 10.0f,
- StrokeJoin = Shape.StrokeJoinType.Round,
+ StrokeJoin = StrokeJoinType.Round,
};
arcShape.AddArc(0.0f, 0.0f, 80.0f, 0.0f, 0.0f, true);
arcShape.Translate(100.0f, 300.0f);
FillColor = new Color(0.0f, 0.5f, 0.0f, 0.5f),
StrokeColor = new Color(0.5f, 0.0f, 0.5f, 0.5f),
StrokeWidth = 30.0f,
- FillRule = Shape.FillRuleType.EvenOdd,
- StrokeJoin = Shape.StrokeJoinType.Round,
+ FillRule = FillRuleType.EvenOdd,
+ StrokeJoin = StrokeJoinType.Round,
};
shape.Scale(0.5f);
FillColor = new Color(0.0f, 1.0f, 1.0f, 1.0f),
StrokeColor = new Color(0.5f, 1.0f, 0.5f, 1.0f),
StrokeWidth = 30.0f,
- StrokeCap = Shape.StrokeCapType.Round,
+ StrokeCap = StrokeCapType.Round,
FillGradient = starFillLinearGradient,
StrokeGradient = starStrokeLinearGradient,
};