#include "CGGeometry.h"
Go to the source code of this file.
Functions | |
rhsPoint height rhsSize height rhsRect dY aPoint function | CGRectContainsRect (lhsRect, rhsRect) |
function | CGRectIntersectsRect (lhsRect, rhsRect) |
function | CGRectIntegral (aRect) |
function | CGRectIntersection (lhsRect, rhsRect) |
function | CGRectStandardize (aRect) |
function | CGRectUnion (lhsRect, rhsRect) |
function | CGPointFromString (aString) |
function | CGSizeFromString (aString) |
function | CGRectFromString (aString) |
function | CGPointFromEvent (anEvent) |
Variables | |
rhsPoint height rhsSize | y |
rhsPoint height rhsSize | width |
rhsPoint height rhsSize height rhsRect | dX |
function CGPointFromEvent | ( | anEvent | ) |
Definition at line 202 of file CGGeometry.j.
function CGPointFromString | ( | aString | ) |
Definition at line 181 of file CGGeometry.j.
rhsPoint height rhsSize height rhsRect dY aPoint function CGRectContainsRect | ( | lhsRect | , | |
rhsRect | ||||
) |
Returns a BOOL
indicating whether CGRect lhsRect
contains CGRect rhsRect
. CGRect
lhsRect | the CGRect to test if rhsRect is inside of | |
rhsRect | the CGRect to test if it fits inside lhsRect . |
YES
if rhsRect
fits inside lhsRect
. Definition at line 76 of file CGGeometry.j.
function CGRectFromString | ( | aString | ) |
Definition at line 195 of file CGGeometry.j.
function CGRectIntegral | ( | aRect | ) |
Makes the origin and size of a CGRect all integers. Specifically, by making the southwest corner the origin (rounded down), and the northeast corner a CGSize (rounded up).
aRect | the rectangle to operate on |
Definition at line 104 of file CGGeometry.j.
function CGRectIntersection | ( | lhsRect | , | |
rhsRect | ||||
) |
Returns the intersection of the two provided rectangles as a new rectangle.
lhsRect | the first rectangle used for calculation | |
rhsRect | the second rectangle used for calculation |
Definition at line 128 of file CGGeometry.j.
function CGRectIntersectsRect | ( | lhsRect | , | |
rhsRect | ||||
) |
Returns YES
if the two rectangles intersect CGRect
lhsRect | the first CGRect | |
rhsRect | the second CGRect |
YES
if the two rectangles have any common spaces, and NO
, otherwise. Definition at line 90 of file CGGeometry.j.
function CGRectStandardize | ( | aRect | ) |
Definition at line 144 of file CGGeometry.j.
function CGRectUnion | ( | lhsRect | , | |
rhsRect | ||||
) |
Definition at line 171 of file CGGeometry.j.
function CGSizeFromString | ( | aString | ) |
Definition at line 188 of file CGGeometry.j.
rhsPoint height rhsSize height rhsRect dX |
Definition at line 51 of file CGGeometry.j.
rhsPoint height rhsSize width |
Definition at line 43 of file CGGeometry.j.
rhsPoint height rhsSize y |
Definition at line 43 of file CGGeometry.j.