[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Drawing UI elements behind text
From: |
Eli Zaretskii |
Subject: |
Re: Drawing UI elements behind text |
Date: |
Wed, 27 Nov 2024 20:58:33 +0200 |
> Date: Wed, 27 Nov 2024 19:28:58 +0100
> Cc: jdtsmith@gmail.com, emacs-devel@gnu.org
> From: Cecilio Pardo <cpardo@imayhem.com>
>
> > If they are completely disconnected, how does this work when the
> > window is scrolled several lines?
>
> They are anchored at locations on the buffer, specified by line/column.
> This is transformed into pixels using the size of the default char cell
> for the buffer. The buffer scroll position on each window is used to
> compute the final position on the frame/screen.
>
> For buffers that use different font sizes or images this is probably not
> very useful. Direct pixel positions can be used too.
>
> They are drawn after switching the back paint buffer, so that the
> redisplay result is left alone.
So you clear them up when redisplay starts and then redraw them in
their entirety when it ends, something like that? Doesn't that slow
down redisplay, especially if there are many pixels and a large
window?
- Re: Drawing UI elements behind text, (continued)
Re: Drawing UI elements behind text, JD Smith, 2024/11/24
- Re: Drawing UI elements behind text, Cecilio Pardo, 2024/11/26
- Re: Drawing UI elements behind text, Eli Zaretskii, 2024/11/27
- Re: Drawing UI elements behind text, Cecilio Pardo, 2024/11/27
- Re: Drawing UI elements behind text,
Eli Zaretskii <=
- Re: Drawing UI elements behind text, Cecilio Pardo, 2024/11/27
- Re: Drawing UI elements behind text, Eli Zaretskii, 2024/11/27
- Re: Drawing UI elements behind text, Cecilio Pardo, 2024/11/27
- Re: Drawing UI elements behind text, Eli Zaretskii, 2024/11/28
- Re: Drawing UI elements behind text, Cecilio Pardo, 2024/11/28
- Re: Drawing UI elements behind text, Eli Zaretskii, 2024/11/28
- Re: Drawing UI elements behind text, Cecilio Pardo, 2024/11/28
- Re: Drawing UI elements behind text, Eli Zaretskii, 2024/11/28
- Re: Drawing UI elements behind text, Cecilio Pardo, 2024/11/28
Re: Drawing UI elements behind text, JD Smith, 2024/11/27