Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Optimizing resize updates in an HIView



I have an HIView embedded in a compositing window's content view. My view is also bound to the content view so that it's size expands or contracts along with the window. I only want to draw the portion(s) of my view that are exposed when the window grows. I don't need to re-draw any part of my view if the window contracts. I had hoped that the kEventParamRgnHandle or kEventParamShape provided in the kEventControlDraw event would indicate the exposed (grown) portion of the view, but this does not seem to be the case. Instead, after a resize, it always indicates that the entire view needs to be drawn.

Before moving to the HIView model, I could determine the exposed portion(s) to draw by examining the window's visible region between calls to BeginUpdate and EndUpdate. How can I accomplish this in a compositing window/HIView?

Thanks in advance,
Darren
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.