core-foundation-rs
core-foundation-rs copied to clipboard
Encoding missing for CGPoint, CGSize, CGRect, etc, so can't be passed as arguments to msg_send
The NS structures NSPoint, NSSize, NSRect, etc implement Encode for their types (for Mac OS only), but the core-graphic ones don't. These items are often passed to objc methods as arguments, so they need to conform.
Clarification: they can be passed as arguments, but you can't use them to define a new ObjC method such as setFrame:(CGSize frame).