NSCopyBits and expose events
NSCopyBits and expose events
- Subject: NSCopyBits and expose events
- From: Paul Fox <email@hidden>
- Date: Sun, 30 Jun 2002 10:28:22 +0000
In X Windows, you can bitblt an area by doing something
like:
XCopyArea(..., x, y, width, height, dstx, dsty)
This copies a rectangle in the window to another location.
One of the things this primitive handles is that if part of the
source region contains child windows (or any window obscuring the source),
then the bits which should have been copied, but couldnt be, will
result in ExposureEvents being sent to the client, forcing normal
redraw of the parts. The X server contains all this logic and looking
at the source - it full of region calculations. Nice. It works.
Its complex for the general case.
Now in cocoa we can do a bitblt with NSCopyBits, but it doesnt do
automatic exposures for the uncovered regions.
Other than replicating the full exposure logic from X in my app, is
there any way to achieve this in my app or any existing examples
of code to do this?
thanx
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.