CGFloat CGPoint CGSize CGRect 绘图有关的类型

以下来自斯坦福大学公开课

CGFloat

just a float number,but we always use it for graphics

CGPoint

c struct with two CGFloats in it :x and y

CGSize

c struct with two CGFloats in it :width and height

CGRect

c struct with a CGPoint orgin and a CGSzie size

你可能感兴趣的:(c,struct,float)