An Objective-C/Perl Bridge

Cocoa C structs

Cocoa defines several types that are not objects, but ordinary C data structures. Accessing the members of such structures with pack() and unpack() is possible, but awkward, so CamelBones also provides an OOP-style interface for working with them.

CamelBones::NSPoint: A point in two dimensions, with X and Y coordinates.

CamelBones::NSRange: Part of a series, with a beginning location and length.

CamelBones::NSRect: A rectangular area, with an origin point and a size.

CamelBones::NSSize: A two-dimensional size, with width and height.