Property | Type | Description | |
---|---|---|---|
CGRectZero |
Method | Description | |
---|---|---|
CGRectContainsPoint ( |
Indicates whether a rectangle contains a specified point. Original declaration is : int CGRectContainsPoint ( CGRect rect, CGPoint point ); |
|
CGRectContainsRect ( |
Indicates whether the first rectangle contains the second rectangle. Original declaration is : int CGRectContainsRect ( CGRect rect1, CGRect rect2 ); |
|
CGRectDivide ( |
Divides a source rectangle into two component rectangles. Original declaration is : void CGRectDivide ( CGRect rect, CGRect *slice, CGRect *remainder, float amount, CGRectEdge edge ); |
|
CGRectEqualToRect ( |
Indicates whether two rectangles are equal in size and position. Original declaration is : int CGRectEqualToRect ( CGRect rect1, CGRect rect2 ); |
|
CGRectGetHeight ( |
Returns the height of a rectangle. Original declaration is : float CGRectGetHeight ( CGRect rect ); |
|
CGRectGetMaxX ( |
Returns the x-axis coordinate that establishes the right edge of a rectangle. Original declaration is : float CGRectGetMaxX ( CGRect rect ); |
|
CGRectGetMaxY ( |
Returns the y-axis coordinate that establishes the top edge of a rectangle. Original declaration is : float CGRectGetMaxY ( CGRect rect ); |
|
CGRectGetMidX ( |
Returns the x-axis coordinate that establishes the center of a rectangle. Original declaration is : float CGRectGetMidX ( CGRect rect ); |
|
CGRectGetMidY ( |
Returns the y-axis coordinate that establishes the center of a rectangle. Original declaration is : float CGRectGetMidY ( CGRect rect ); |
|
CGRectGetMinX ( |
Returns the x-axis coordinate that establishes the left edge of a rectangle. Original declaration is : float CGRectGetMinX ( CGRect rect ); |
|
CGRectGetMinY ( |
Returns the y-axis coordinate that establishes the bottom edge of a rectangle. Original declaration is : float CGRectGetMinY ( CGRect rect ); |
|
CGRectGetWidth ( |
Returns the width of a rectangle. Original declaration is : float CGRectGetWidth ( CGRect rect ); |
|
CGRectInset ( |
Returns a rectangle that is smaller or larger than the source rectangle, with the same center point. Original declaration is : CGRect CGRectInset ( CGRect rect, float dx, float dy ); |
|
CGRectIntegral ( |
Returns a rectangle with integer values for its origin and size. Original declaration is : CGRect CGRectIntegral ( CGRect rect ); |
|
CGRectIntersection ( |
Returns the intersection of two rectangles. Original declaration is : CGRect CGRectIntersection ( CGRect rect1, CGRect rect2 ); |
|
CGRectIntersectsRect ( |
Indicates whether two rectangles intersect. Original declaration is : int CGRectIntersectsRect ( CGRect rect1, CGRect rect2 ); |
|
CGRectIsEmpty ( |
Indicates whether a rectangle has zero width or height or is a null rectangle. Original declaration is : int CGRectIsEmpty ( CGRect rect ); |
|
CGRectIsInfinite ( |
Checks whether a rectangle is infinite. Original declaration is : bool CGRectIsInfinite ( CGRect rect ); |
|
CGRectIsNull ( |
Indicates whether a rectangle is invalid. Original declaration is : int CGRectIsNull ( CGRect rect ); |
|
CGRectMake ( |
Returns a rectangle structure constructed from coordinate and dimension values you provide. Original declaration is : CGRect CGRectMake ( float x, float y, float width, float height ); |
|
CGRectOffset ( |
Returns a rectangle with an origin offset from that of the source rectangle. Original declaration is : CGRect CGRectOffset ( CGRect rect, float dx, float dy ); |
|
CGRectStandardize ( |
Returns a rectangle with a positive width and height. Original declaration is : CGRect CGRectStandardize ( CGRect rect ); |
|
CGRectUnion ( |
Returns the smallest rectangle that contains two other specified rectangles. Original declaration is : CGRect CGRectUnion ( CGRect r1, CGRect r2 ); |
|
ContainsRect ( |
Returns an int value that indicates whether this rectangle completely encloses another.
|
|
DivideRect ( |
Divides this rectangle into two new rectangles.
|
|
InsetRect ( |
Creates a rectangle that insets this rectangle by a specified amount.
|
|
IntegralRect ( ) : |
Creates a rectangle with the sides of this rectangle to integer values.
|
|
IntersectionRect ( |
Calculates the intersection of this rectangle with the specified rectangle.
|
|
IntersectsRect ( |
Returns an int value that indicates whether this rectangle and the specified rectangle intersect.
|
|
OffsetRect ( |
Creates a rectangle that offsets this rectangle by the specified amount.
|
|
PointInRect ( |
Returns an int value that indicates whether a given point is in a specified rectangle.
|
|
UnionRect ( |
Creates a rectangle as the union of this rectangle and the specified rectangle.
|
public static CGRectContainsPoint ( |
||
rect | The rectangle to examine. | |
point | The point to examine. | |
return | int |
public static CGRectContainsRect ( |
||
rect1 | The rectangle to examine for containment of the rectangle passed in rect2. | |
rect2 | The rectangle to examine for being contained in the rectangle passed in rect1. | |
return | int |
public static CGRectDivide ( |
||
rect | The source rectangle. | |
slice | On input, a pointer to an uninitialized rectangle. On return, a rectangle that contains the specified edge and extends the distance beyond it specified by the amount parameter. | |
remainder | On input, a pointer to an uninitialized rectangle. On return, the rectangle contains the portion of the source rectangle that remains after CGRectEdge produces the 'slice' rectangle. | |
amount | A distance from the rectangle's side that is specified in the edge parameter. This distance defines the line, parallel to the specified side, that Quartz uses to divide the source rectangle. | |
edge | CGRectEdge | A CGRectEdge value (CGRectMinXEdge, CGRectMinYEdge, CGRectMaxXEdge, or CGRectMaxYEdge) that specifies the side of the rectangle from which the distance passed in the amount parameter is measured. CGRectDivide produces a 'slice' rectangle that contains the specified edge and extends amount distance beyond it. |
return | void |
public static CGRectEqualToRect ( |
||
rect1 | The first rectangle to examine. | |
rect2 | The second rectangle to examine. | |
return | int |
public static CGRectGetHeight ( |
||
rect | The rectangle to examine. | |
return | float |
public static CGRectGetMaxX ( |
||
rect | The rectangle to examine. | |
return | float |
public static CGRectGetMaxY ( |
||
rect | The rectangle to examine. | |
return | float |
public static CGRectGetMidX ( |
||
rect | The rectangle to examine. | |
return | float |
public static CGRectGetMidY ( |
||
rect | The rectangle to examine. | |
return | float |
public static CGRectGetMinX ( |
||
rect | The rectangle to examine. | |
return | float |
public static CGRectGetMinY ( |
||
rect | The rectangle to examine. | |
return | float |
public static CGRectGetWidth ( |
||
rect | The rectangle to examine. | |
return | float |
public static CGRectInset ( |
||
rect | The source rectangle. | |
dx | The value by which to adjust the x-coordinates of the source rectangle. To create an inset rectangle, specify a positive value. To create a larger, encompassing rectangle, specify a negative value. | |
dy | The value by which to adjust the y-coordinates of the source rectangle. To create an inset rectangle, specify a positive value. To create a larger, encompassing rectangle, specify a negative value. | |
return |
public static CGRectIntegral ( |
||
rect | The source rectangle. | |
return |
public static CGRectIntersection ( |
||
rect1 | The first source rectangle. | |
rect2 | The second source rectangle. | |
return |
public static CGRectIntersectsRect ( |
||
rect1 | The first rectangle to examine. | |
rect2 | The second rectangle to examine. | |
return | int |
public static CGRectIsEmpty ( |
||
rect | The rectangle to examine. | |
return | int |
public static CGRectIsInfinite ( |
||
rect | The rectangle to examine. | |
return | bool |
public static CGRectIsNull ( |
||
rect | The rectangle to examine. | |
return | int |
public static CGRectMake ( |
||
x | The x-coordinate of the rectangle's origin point. | |
y | The y-coordinate of the rectangle's origin point. | |
width | The width of the rectangle. | |
height | The height of the rectangle. | |
return |
public static CGRectOffset ( |
||
rect | The source rectangle. | |
dx | The value by which to move the x-coordinate of the source rectangle's origin. | |
dy | The value by which to move the y-coordinate of the source rectangle's origin. | |
return |
public static CGRectStandardize ( |
||
rect | The source rectangle. | |
return |
public static CGRectUnion ( |
||
r1 | The first source rectangle. | |
r2 | The second source rectangle. | |
return |
public DivideRect ( |
||
slice | ||
remainder | ||
amount | ||
edge | CGRectEdge | |
return | void |
public InsetRect ( |
||
dX | ||
dY | ||
return |
public IntersectionRect ( |
||
aRect | ||
return |
public OffsetRect ( |
||
dX | ||
dY | ||
return |