nanogui: Clearing a certain area of a window


Previous by date: 1 Oct 2005 01:25:31 +0100 Clearing a certain area of a window, tj
Next by date: 1 Oct 2005 01:25:31 +0100 Re: Clearing a certain area of a window, tj
Previous in thread: 1 Oct 2005 01:25:31 +0100 Clearing a certain area of a window, tj
Next in thread: 1 Oct 2005 01:25:31 +0100 Re: Clearing a certain area of a window, tj

Subject: Re: [nanogui] Clearing a certain area of a window
From: "Greg Haerr" ####@####.####
Date: 1 Oct 2005 01:25:31 +0100
Message-Id: <124901c5c61c$dc611120$6401a8c0@winXP>

: Is it possible to clear only a certain rectangular area of a window 
: instead of having to use GrClearWindow()? I have used GrFillRect() when 
: the background is solid,

GrClearWindow will clear just a portion of a window, and that should
be the best choice, if the application never drew the window in the
first place.  If the application used GrFillRect, then that should be
used to repaint.


:  but what about when the background is a pixmap, 
: using GrSetBackgroundPixmap()?

GrClearWindow should cause a repaint event such that the
server executes the same code that drew the background pixmap
in the first place, tiled, stretched, etc.  


: 
: You could GrCopyArea() from the original pixmap to the window, but what 
: is the background is tiled, stretched, etc?

No sense in duplicating server code, IMO.


: 
: Be whole lot quicker if it's a small area compared to the entire window. 
: Especially on a several 100Mhz embedded processor.

Are you saying that GrClearWindow doesn't work, or is just
slow?  

Regards,

Greg

Previous by date: 1 Oct 2005 01:25:31 +0100 Clearing a certain area of a window, tj
Next by date: 1 Oct 2005 01:25:31 +0100 Re: Clearing a certain area of a window, tj
Previous in thread: 1 Oct 2005 01:25:31 +0100 Clearing a certain area of a window, tj
Next in thread: 1 Oct 2005 01:25:31 +0100 Re: Clearing a certain area of a window, tj


Powered by ezmlm-browse 0.20.