Re: turning off display of changes for a gtk (gdk-built) widget
- From: Jim Parker <hopeye cfl rr com>
- To: Dan Stromberg <strombrg nis acs uci edu>, gtk-app-devel-list gnome org
- Subject: Re: turning off display of changes for a gtk (gdk-built) widget
- Date: Mon, 10 Jun 2002 18:09:14 -0400
Sounds like double buffering to me. Draw to a pixmap in memory, when
finished drawing, swap with the image on screen.
for example code and better explanation, check out the tutorial (see the
scribble example).
cheers,
Jim Parker
On Mon, 10 Jun 2002, Dan Stromberg wrote:
Date: Mon, 10 Jun 2002 07:12:34 -0700
To: gtk-app-devel-list gnome org
From: Dan Stromberg <strombrg nis acs uci edu>
Sender: gtk-app-devel-list-admin gnome org
Subject: turning off display of changes for a gtk (gdk-built) widget
I have a game app I'm working on.
I'm using somebody else's board widget. It's built using a ton of gdk
calls.
I want to be able to back up in a sequence of moves. The easiest way of
doing this is to clear the board and repaint from the beginning.
When I do this, the user can see a sequence of moves being replayed.
It's not the most pleasing thing to look at.
Is there any simple way I can temporarily turn off display of changes,
kind of like the refresh() call in curses, so that people won't see my
changed board until the changes are complete?
Thanks in advance.
--
Dan Stromberg UCI/NACS/DCS
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]