[Alephmodular-devel] Clipping oneself into a corner
Status: Pre-Alpha
Brought to you by:
brefin
From: Br'fin <br...@ma...> - 2003-03-10 03:33:48
|
Most of the clipping stuff is wonderful and perfect. But I found one construct that was lacking. Clipping when you know you're dealing with a small part of a whole. Most specifically, this means setting the clipping area and redrawing the interface to 'highlight' buttons on the main menu. D'oh. I think I'm going to need to add a scoped view clipping to the buffer hierarchy. Unlike clipping objects, it doesn't limit you to a part that otherwise ignores the whole. Instead, it sets constraints on the buffer as a whole. Incidentally, if you have a view clipping and a clipping buffer, drawing commands (but not necessarily pixel editing) are only going to occur in the intersection of the two clippings. So there will be CClippedBuffer::Ptr get_clipped_buffer(rect) and CBuffer::ViewClipLock get_clipped_view_lock(rect) methinks. -Jeremy Parsons |