Function: svg-rectangle

svg-rectangle is a byte-compiled function defined in svg.el.gz.

Signature

(svg-rectangle SVG X Y WIDTH HEIGHT &rest ARGS)

Documentation

Create a rectangle on SVG, starting at position X/Y, of WIDTH/HEIGHT.

ARGS is a plist of modifiers. Possible values are

:stroke-width PIXELS The line width.
:stroke-color COLOR The line color.
:gradient ID The gradient ID to use.

Source Code

;; Defined in /usr/src/emacs/lisp/svg.el.gz
(defun svg-rectangle (svg x y width height &rest args)
  "Create a rectangle on SVG, starting at position X/Y, of WIDTH/HEIGHT.
ARGS is a plist of modifiers.  Possible values are

:stroke-width PIXELS   The line width.
:stroke-color COLOR    The line color.
:gradient ID           The gradient ID to use."
  (svg--append
   svg
   (dom-node 'rect
	     `((width . ,width)
	       (height . ,height)
	       (x . ,x)
	       (y . ,y)
	       ,@(svg--arguments svg args)))))