nanogui: Drawing to background pixmap


Previous by date: 25 May 2004 21:33:46 +0100 Re: Drawing to background pixmap, tj
Next by date: 25 May 2004 21:33:46 +0100 Re: non-rectangular window drawing problem, Greg Haerr
Previous in thread: 25 May 2004 21:33:46 +0100 Re: Drawing to background pixmap, tj
Next in thread:

Subject: Re: [nanogui] Drawing to background pixmap
From: "Greg Haerr" ####@####.####
Date: 25 May 2004 21:33:46 +0100
Message-Id: <11c101c44298$e162fe80$b600a8c0@censoft.com>

: That's the problem. It is nano-X that redraws the background whenever 
: the window is created or uncovered. You draw the foreground from expose 
: event. So, how do you force the background to redraw from the app?

To draw text foreground color and a background color during
the GrText call, use GrSetGCUseBackground(TRUE).

To force the nano-X server to draw the window's pre-defined
single background color on a portion of the window, use
GrClearWindow(...,TRUE).

To draw a complex background image, the application must catch
EXPOSURE events and draw foreground and background during
the processing for that event.  In this case, it is preferable to use
the GrSetWMProperties() call to turn off the default nano-X server
single background color drawing, to avoid flicker that results from
the server drawing a background color and the application drawing
the foreground/background again, possibly in a different color.

Regards,

Greg

Previous by date: 25 May 2004 21:33:46 +0100 Re: Drawing to background pixmap, tj
Next by date: 25 May 2004 21:33:46 +0100 Re: non-rectangular window drawing problem, Greg Haerr
Previous in thread: 25 May 2004 21:33:46 +0100 Re: Drawing to background pixmap, tj
Next in thread:


Powered by ezmlm-browse 0.20.