Function: xwidget-insert
xwidget-insert is a byte-compiled function defined in xwidget.el.gz.
Signature
(xwidget-insert POS TYPE TITLE WIDTH HEIGHT &optional ARGS RELATED)
Documentation
Insert an xwidget at position POS.
Supply the xwidget's TYPE, TITLE, WIDTH, HEIGHT, and RELATED.
See make-xwidget for the possible TYPE values.
The usage of optional argument ARGS depends on the xwidget.
This returns the result of make-xwidget.
Source Code
;; Defined in /usr/src/emacs/lisp/xwidget.el.gz
(defun xwidget-insert (pos type title width height &optional args related)
"Insert an xwidget at position POS.
Supply the xwidget's TYPE, TITLE, WIDTH, HEIGHT, and RELATED.
See `make-xwidget' for the possible TYPE values.
The usage of optional argument ARGS depends on the xwidget.
This returns the result of `make-xwidget'."
(goto-char pos)
(let ((id (make-xwidget type title width height args nil related)))
(put-text-property (point) (+ 1 (point))
'display (list 'xwidget ':xwidget id))
id))