Function: icon-elements

icon-elements is a byte-compiled function defined in icons.el.gz.

Signature

(icon-elements NAME)

Documentation

Return the elements of icon NAME.

The elements are represented as a plist where the keys are string, face and image. The image element is only present if the icon is represented by an image.

View in manual

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/icons.el.gz
(defun icon-elements (name)
  "Return the elements of icon NAME.
The elements are represented as a plist where the keys are
`string', `face' and `image'.  The `image' element is only
present if the icon is represented by an image."
  (let ((string (icon-string name)))
    (list 'face (get-text-property 0 'face string)
          'image (get-text-property 0 'display string)
          'string (substring-no-properties string))))