[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SVG widget in GNU Emacs

From: Anand Tamariya
Subject: Re: SVG widget in GNU Emacs
Date: Wed, 20 Oct 2021 14:43:23 +0530

On Wed, Oct 20, 2021 at 1:45 PM Lars Ingebrigtsen <larsi@gnus.org> wrote:
Anand Tamariya <atamariya@gmail.com> writes:

> Now you can use SVG widget in GNU Emacs. That is, use an SVG image or
> fragment as background for push-button widget in Emacs buffer.

Sounds interesting, but I'm not quite sure I understand what this means
in practice.
You can create games or interaction dialogues using these widgets as shown in the image.

> Sample API: svg-widget (svg frag &optional width height &rest args)
> Code: https://gitlab.com/atamariya/emacs/-/blob/dev/lisp/svg.el

Could you post a patch of the code you've added to svg.el?
(apply 'widget-create 'push-button :display (svg-image e) args)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]