CGRect, CGSize and CGPoint
by admin on November 5th, 2008

Digging into development of iPhone applications, you’ll eventually encounter references to CGRect, CGSize, and CGPoint. These references are to C structures (see this post for more information on structures). This post will provide a high-level view of what comprises CGRect and its counterparts. Here is how CGRect is defined:

struct CGRect {
CGPoint origin;
[...]

Comments are closed.