Represents a rectangle.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public struct CGRect : IEquatable<CGRect>
Public Structure CGRect _ Implements IEquatable(Of CGRect)
public value class CGRect : IEquatable<CGRect>
Members
All Members | Constructors | Methods | Properties | Fields | |
Icon | Member | Description |
---|---|---|
CGRect(Single, Single, Single, Single) |
Initializes a new instance of the CGRect class.
| |
CGRect(CGPoint, CGSize) |
Initializes a new instance of the CGRect class.
| |
CGRectContainsPoint(CGRect, CGPoint) |
Indicates whether a rectangle contains a specified point.
| |
CGRectContainsRect(CGRect, CGRect) |
Indicates whether the first rectangle contains the second rectangle.
| |
CGRectDivide(CGRect, CGRect%, CGRect%, Single, CGRectEdge) |
Divides a source rectangle into two component rectangles.
| |
CGRectEqualToRect(CGRect, CGRect) |
Indicates whether two rectangles are equal in size and position.
| |
CGRectGetHeight(CGRect) |
Returns the height of a rectangle.
| |
CGRectGetMaxX(CGRect) |
Returns the x-axis coordinate that establishes the right edge of a rectangle.
| |
CGRectGetMaxY(CGRect) |
Returns the y-axis coordinate that establishes the top edge of a rectangle.
| |
CGRectGetMidX(CGRect) |
Returns the x-axis coordinate that establishes the center of a rectangle.
| |
CGRectGetMidY(CGRect) |
Returns the y-axis coordinate that establishes the center of a rectangle.
| |
CGRectGetMinX(CGRect) |
Returns the x-axis coordinate that establishes the left edge of a rectangle.
| |
CGRectGetMinY(CGRect) |
Returns the y-axis coordinate that establishes the bottom edge of a rectangle.
| |
CGRectGetWidth(CGRect) |
Returns the width of a rectangle.
| |
CGRectInset(CGRect, Single, Single) |
Returns a rectangle that is smaller or larger than the source rectangle, with the same center point.
| |
CGRectIntegral(CGRect) |
Returns a rectangle with integer values for its origin and size.
| |
CGRectIntersection(CGRect, CGRect) |
Returns the intersection of two rectangles.
| |
CGRectIntersectsRect(CGRect, CGRect) |
Indicates whether two rectangles intersect.
| |
CGRectIsEmpty(CGRect) |
Indicates whether a rectangle has zero width or height or is a null rectangle.
| |
CGRectIsInfinite(CGRect) |
Checks whether a rectangle is infinite.
| |
CGRectIsNull(CGRect) |
Indicates whether a rectangle is invalid.
| |
CGRectMake(Single, Single, Single, Single) |
Returns a rectangle structure constructed from coordinate and dimension values you provide.
| |
CGRectOffset(CGRect, Single, Single) |
Returns a rectangle with an origin offset from that of the source rectangle.
| |
CGRectStandardize(CGRect) |
Returns a rectangle with a positive width and height.
| |
CGRectUnion(CGRect, CGRect) |
Returns the smallest rectangle that contains two other specified rectangles.
| |
CGRectZero |
A CGRect with its origin and size set to zero.
| |
ContainsRect(CGRect) |
Returns an int value that indicates whether this rectangle completely encloses another.
| |
DivideRect(CGRect%, CGRect%, Single, CGRectEdge) |
Divides this rectangle into two new rectangles.
| |
Equality(CGRect, CGRect) |
Implements the operator ==.
| |
Equals(CGRect) |
Equalses the specified ns rect.
| |
Equals(Object) |
Indicates whether this instance and a specified object are equal.
(Overrides ValueType.Equals(Object).) | |
Finalize()()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
GetHashCode()()()() |
Returns the hash code for this instance.
(Overrides ValueType.GetHashCode()()()().) | |
GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
Height |
Returns the height of this rectangle.
| |
Inequality(CGRect, CGRect) |
Implements the operator !=.
| |
InsetRect(Single, Single) |
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(CGRect) |
Calculates the intersection of this rectangle with the specified rectangle.
| |
IntersectsRect(CGRect) |
Returns an int value that indicates whether this rectangle and the specified rectangle intersect.
| |
IsEmptyRect |
Returns an int value that indicates whether this rectangle is empty.
| |
MaxX |
Returns the largest x coordinate of the rectangle.
| |
MaxY |
Returns the largest y coordinate of the rectangle.
| |
MemberwiseClone()()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
MidX |
Returns the x coordinate of the rectangle�s midpoint.
| |
MidY |
Returns the y coordinate of the rectangle�s midpoint.
| |
MinX |
Returns the smallest x coordinate of the rectangle.
| |
MinY |
Returns the smallest y coordinate of the rectangle.
| |
OffsetRect(Single, Single) |
Creates a rectangle that offsets this rectangle by the specified amount.
| |
origin |
The origin of the rectangle (its starting x coordinate and y coordinate).
| |
PointInRect(CGPoint) |
Returns an int value that indicates whether a given point is in a specified rectangle.
| |
size |
The width and height of the rectangle, as measured from the origin.
| |
ToString()()()() |
Returns the a string representation of this instance.
(Overrides ValueType.ToString()()()().) | |
UnionRect(CGRect) |
Creates a rectangle as the union of this rectangle and the specified rectangle.
| |
Width |
Returns the width of the rectangle.
|
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)