Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
HIShapeRef and CGPathRef?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

HIShapeRef and CGPathRef?



...this may be a naive question, but here goes:

Are HIShapeRef's and CGPathRef's interchangeable? That is, can I typecast one to the other and vice versa?

...I ask because I'm converting a huge codebase from quickdraw to coregraphics, and this week I'm focused on regions...after reading the "Replacing QuickDraw Regions" technote, I started converting RgnHandle's to CGPathRef's or CGMutablePathRef's...then I saw that SectRgn, UnionRgn, and DiffRgn don't have CGPath equivalents and that the HIShape api could be used...unfortunately I haven't found much documentation about HIShape's api beyond the header file, so I'm kinda stuck (the code isn't in a runnable state at the moment, so no testing yet)...

...any pearls of wisdom here?

thanx,
jamie

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
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 © 2011 Apple Inc. All rights reserved.