/// <summary> /// If a given element is focused, this method draws a focus ring around the current path. /// </summary> /// <param name="path">A Path2D path to use.</param> /// <param name="element">The element to check whether it is focused or not.</param> public virtual void DrawFocusIfNeeded(Path2D path, Element element) { return; }
/// <summary> /// Fills the specified path with the specified fill rule. /// </summary> /// <param name="path">A Path2D path to fill.</param> /// <param name="fillRule"> /// The algorithm by which to determine if a point is inside a path or outside a path. /// </param> public virtual void Fill(Path2D path, CanvasTypes.CanvasFillRule fillRule) { return; }
/// <summary> /// Reports whether or not the specified point is contained in the current path. /// </summary> /// <param name="path">A Path2D path to use.</param> /// <param name="x">The X coordinate of the point to check.</param> /// <param name="y">The Y coordinate of the point to check.</param> /// <param name="fillRule"> /// The algorithm by which to determine if a point is inside a path or outside a path. /// </param> /// <returns> /// A Boolean, which is true if the specified point is contained in the current or specfied path, /// otherwise false. /// </returns> public virtual extern bool IsPointInPath(Path2D path, Any<uint, int, double> x, Any<uint, int, double> y, CanvasTypes.CanvasFillRule? fillRule);
/// <summary> /// Reports whether or not the specified point is inside the area contained by the stroking of a path. /// </summary> /// <param name="path">A Path2D path to use.</param> /// <param name="x">The X coordinate of the point to check.</param> /// <param name="y">The Y coordinate of the point to check.</param> /// <returns> /// A Boolean, which is true if the point is inside the area contained by the stroking of a path, /// otherwise false. /// </returns> public virtual extern bool IsPointInStroke(Path2D path, Any<uint, int, double> x, Any<uint, int, double> y);
/// <summary> /// Adds a path to the current path. /// </summary> /// <param name="path"></param> /// <param name="transform"></param> public void AddPath(Path2D path, SVGMatrix transform = null) { return; }
/// <summary> /// Reports whether or not the specified point is inside the area contained by the stroking of a path. /// </summary> /// <param name="path">A Path2D path to use.</param> /// <param name="x">The X coordinate of the point to check.</param> /// <param name="y">The Y coordinate of the point to check.</param> /// <returns> /// A Boolean, which is true if the point is inside the area contained by the stroking of a path, /// otherwise false. /// </returns> public virtual extern bool IsPointInStroke(Path2D path, Any <uint, int, double> x, Any <uint, int, double> y);
/// <summary> /// Scrolls the current path or a given path into the view. /// </summary> /// <param name="path">A Path2D path to use.</param> /// <remarks>This is experimental API that should not be used in production code.</remarks> public virtual void ScrollPathIntoView(Path2D path) { return; }
/// <summary> /// Strokes the subpaths with the current stroke style. /// </summary> /// <param name="path">A Path2D path to stroke.</param> public virtual void Stroke(Path2D path) { return; }
/// <summary> /// If a given element is focused, this method draws a focus ring around the current path. /// </summary> /// <param name="path">A Path2D path to use.</param> /// <param name="element">The element to check whether it is focused or not.</param> public virtual void DrawFocusIfNeeded(Path2D path, HTMLElement element) { return; }
/// <summary> /// Reports whether or not the specified point is contained in the current path. /// </summary> /// <param name="path">A Path2D path to use.</param> /// <param name="x">The X coordinate of the point to check.</param> /// <param name="y">The Y coordinate of the point to check.</param> /// <returns> /// A Boolean, which is true if the specified point is contained in the current or specfied path, /// otherwise false. /// </returns> public virtual extern bool IsPointInPath(Path2D path, Union <uint, int, double> x, Union <uint, int, double> y);
/// <summary> /// Reports whether or not the specified point is inside the area contained by the stroking of a path. /// </summary> /// <param name="path">A Path2D path to use.</param> /// <param name="x">The X coordinate of the point to check.</param> /// <param name="y">The Y coordinate of the point to check.</param> /// <returns> /// A Boolean, which is true if the point is inside the area contained by the stroking of a path, /// otherwise false. /// </returns> public virtual bool IsPointInStroke(Path2D path, Any <uint, int, double> x, Any <uint, int, double> y) { return(false); }
/// <summary> /// Reports whether or not the specified point is contained in the current path. /// </summary> /// <param name="path">A Path2D path to use.</param> /// <param name="x">The X coordinate of the point to check.</param> /// <param name="y">The Y coordinate of the point to check.</param> /// <param name="fillRule"> /// The algorithm by which to determine if a point is inside a path or outside a path. /// </param> /// <returns> /// A Boolean, which is true if the specified point is contained in the current or specfied path, /// otherwise false. /// </returns> public virtual bool IsPointInPath(Path2D path, Any <uint, int, double> x, Any <uint, int, double> y, CanvasTypes.CanvasFillRule?fillRule) { return(false); }
/// <summary> /// Reports whether or not the specified point is contained in the current path. /// </summary> /// <param name="path">A Path2D path to use.</param> /// <param name="x">The X coordinate of the point to check.</param> /// <param name="y">The Y coordinate of the point to check.</param> /// <param name="fillRule"> /// The algorithm by which to determine if a point is inside a path or outside a path. /// </param> /// <returns> /// A Boolean, which is true if the specified point is contained in the current or specfied path, /// otherwise false. /// </returns> public virtual bool IsPointInPath(Path2D path, Any<uint, int, double> x, Any<uint, int, double> y, CanvasTypes.CanvasFillRule? fillRule) { return false; }
/// <summary> /// Creates a clipping path from the current sub-paths. Everything drawn after clip() is /// called appears inside the clipping path only. For an example, see Clipping paths in /// the Canvas tutorial. /// </summary> /// <param name="path">A Path2D path to clip.</param> /// <param name="fillRule"> /// The algorithm by which to determine if a point is inside a path or outside a path. /// </param> public virtual void Clip(Path2D path, CanvasTypes.CanvasFillRule fillRule) { return; }
/// <summary> /// Reports whether or not the specified point is inside the area contained by the stroking of a path. /// </summary> /// <param name="path">A Path2D path to use.</param> /// <param name="x">The X coordinate of the point to check.</param> /// <param name="y">The Y coordinate of the point to check.</param> /// <returns> /// A Boolean, which is true if the point is inside the area contained by the stroking of a path, /// otherwise false. /// </returns> public virtual bool IsPointInStroke(Path2D path, Any<uint, int, double> x, Any<uint, int, double> y) { return false; }
/// <summary> /// Reports whether or not the specified point is contained in the current path. /// </summary> /// <param name="path">A Path2D path to use.</param> /// <param name="x">The X coordinate of the point to check.</param> /// <param name="y">The Y coordinate of the point to check.</param> /// <param name="fillRule"> /// The algorithm by which to determine if a point is inside a path or outside a path. /// </param> /// <returns> /// A Boolean, which is true if the specified point is contained in the current or specfied path, /// otherwise false. /// </returns> public virtual extern bool IsPointInPath(Path2D path, Any <uint, int, double> x, Any <uint, int, double> y, CanvasTypes.CanvasFillRule?fillRule);
/// <summary> /// Creates a new Path2D object from an specified Path2D object. /// </summary> public Path2D(Path2D path) { return; }