Mailing Lists: Apple Mailing Lists

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

CGContextTranslateCTM Question



'Morning All:

(Now that the power's back on... 23.5 hours without and I had just filled the fridge...)

I am back to trying to get the this problem with SplitView and non-compositing windows straightened out.

If I don't do a CGContextTranslateCTM() when drawing, the splitters are drawn upside down and the sections of my window appear to be the correct proportions. Just the wrong way around.

If I do a CGContextTranslateCTM(x, 0.0f, splitRect.Height()) for the vertical and CGContextTranslateCTM(x, splitRect.Width(), -1.0f) for the horizontal, things are not drawn properly. The vertical splitter is in the wrong position, and the horizontal is no where to be seen.

So, if I've move the origin and coordinate system around, doesn't the actual rectangle that defines the splitter also have to be adjusted? How to do that?

Or are the parameters to CGContextTranslateCTM wrong? (It's been a long time since I've done matrix math, and am a little rusty).

Any hints would be appreciated...


Thanks

John
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.



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.