From: joakim@verona.se
To: rms@gnu.org
Cc: emacs-devel@gnu.org
Subject: Re: embedding gtk widgets in a buffer
Date: Sat, 10 May 2008 11:58:23 +0200 [thread overview]
Message-ID: <m3d4nuwke8.fsf@verona.se> (raw)
In-Reply-To: <E1JukrG-00039h-9x@fencepost.gnu.org> (Richard M. Stallman's message of "Sat, 10 May 2008 04:55:10 -0400")
Richard M Stallman <rms@gnu.org> writes:
> - create new instances of the widgets for every window the widget is
> supposed to be shown. This is visualy appealing, but troublesome to
> implement, at least if each widget is really going to look like its
> counterpart in another window, especially for xembed.
>
> Would that work? In the case of xembed, can both widgets talk
> to the same process and show the same output?
No, in the case of xembed it would probably not work very well.
>
> - the selected window and other windows are not drawn the same way. The
> selected window contains the real live widgets. The non-selected
> windows show some kind of shadow copy of the widget, in the simplest
> case a grey rectangle, more elaborately a bitmap copy of the widget at
> the time the window selection switch was made.
>
> That ought to do the job, if it is possible to get the whole output.
Just to clarify, the placeholder widgets in non-selected windows, would
be placeholders, not live buttons. They wont become live again until
that window is selected again. The placeholder widgets are a snapshot
copy of the state the widgets had when they were live at that position.
(It should be possible to update the placeholder widgets more often, but
I wont start out with that premise)
Im not quite sure if it would be posible to get a bitmap dump of
any sort of widget either, xembed is again probably a problem.
> I see a possible problem in the case where the widget is partially or
> wholely scrolled off the screen.
I had in mind getting the widgets to temporarily render into offscreen
bitmaps. If that's at all possible, the clipping of the widget should not
be a problem.
--
Joakim Verona
next prev parent reply other threads:[~2008-05-10 9:58 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-07 23:23 embedding gtk widgets in a buffer joakim
2008-05-08 0:21 ` joakim
2008-05-08 9:02 ` BVK
2008-05-08 22:28 ` Richard M Stallman
2008-05-08 23:13 ` joakim
2008-05-08 23:24 ` Lennart Borgman (gmail)
2008-05-10 8:55 ` Richard M Stallman
2008-05-10 11:55 ` joakim
2008-05-10 8:55 ` Richard M Stallman
2008-05-10 9:58 ` joakim [this message]
2008-05-10 10:22 ` Lennart Borgman (gmail)
2008-05-11 7:34 ` Richard M Stallman
2008-05-09 8:34 ` YAMAMOTO Mitsuharu
2008-05-10 21:07 ` joakim
2008-05-11 7:35 ` Richard M Stallman
2008-05-11 8:25 ` joakim
2008-05-11 12:32 ` David Kastrup
2008-05-11 12:48 ` joakim
2008-05-11 12:58 ` Lennart Borgman (gmail)
2008-05-12 4:38 ` tomas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3d4nuwke8.fsf@verona.se \
--to=joakim@verona.se \
--cc=emacs-devel@gnu.org \
--cc=rms@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).