emacs-devel
[Top][All Lists]
Advanced

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

Re: Emacs canvas support


From: Stefan Monnier
Subject: Re: Emacs canvas support
Date: Thu, 30 Apr 2020 08:08:59 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>> I think it would make more sense to treat the overlaid canvas as
>> a completely separate pixmap: when we get an request to redraw
>> a particular area of the screen, we'd ask the current redisplay code to
>> redraw the corresponding text content and then we'd ask the canvas code
>> to draw on top of it.  So for rendering of the canvas code we don't need
>> to know which part of the canvas cover which characters, we just render
>> the glyph matrix into a pixmap, render the canvas into another pixmap
>> and then combine them onto the screen.
>
> That's what I'm trying to do right now, but so far keeping track of
> exactly where each canvas is displayed on the screen seems to be
> difficult.

I was thinking of having just one canvas per (Emacs) window.

> I'd appreciate some suggestions, thanks.

I can help with type system and compiler design.
But I have no practical experience with graphical APIs, sadly.


        Stefan




reply via email to

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