![]() |
ActionComponents
04.05.00
Customizable UI and time-saving tools for Android development with Xamarin and Visual Studio.
|
Represents a simulated iOS CGRect
used to ease the porting of UI code from iOS to Android. A CGRect
can be implicitly converted to and from an Android Rect
or RectF
.
More...
Public Member Functions | |
CGRect () | |
Initializes a new instance of the T:CoreGraphics.CGRect class. More... | |
CGRect (CGRect rect) | |
Initializes a new instance of the T:CoreGraphics.CGRect class. More... | |
CGRect (CGPoint point, CGSize size) | |
Initializes a new instance of the T:CoreGraphics.CGRect class. More... | |
CGRect (int x, int y, int width, int height) | |
Initializes a new instance of the T:CoreGraphics.CGRect class. More... | |
CGRect (double x, double y, double width, double height) | |
Initializes a new instance of the T:CoreGraphics.CGRect class. More... | |
CGRect (nfloat x, nfloat y, nfloat width, nfloat height) | |
Initializes a new instance of the T:CoreGraphics.CGRect class. More... | |
CGRect (Rect rect) | |
Initializes a new instance of the T:CoreGraphics.CGRect class. More... | |
CGRect (RectF rect) | |
Initializes a new instance of the T:CoreGraphics.CGRect class. More... | |
void | Copy (CGRect rect) |
Copy the specified rect into this rect. More... | |
nfloat | GetMinX () |
Gets the minimum x. More... | |
nfloat | GetMaxX () |
Gets the max x. More... | |
nfloat | GetMinY () |
Gets the minimum y. More... | |
nfloat | GetMaxY () |
Gets the max y. More... | |
bool | Contains (CGPoint point) |
Contains the specified point. More... | |
bool | Contains (CGRect rect) |
Contains the specified rect. More... | |
bool | Contains (int x, int y) |
Contains the specified x and y. More... | |
bool | Contains (double x, double y) |
Contains the specified x and y. More... | |
bool | Contains (nfloat x, nfloat y) |
Contains the specified x and y. More... | |
void | Inflate (CGSize size) |
Increases the size of this CGRect . More... | |
void | Inflate (int width, int height) |
Increases the size of this CGRect . More... | |
void | Inflate (double width, double height) |
Increases the size of this CGRect . More... | |
void | Inflate (nfloat width, nfloat height) |
Increases the size of this CGRect . More... | |
void | Intersect (CGRect rect) |
Replaces this CGRect with the intersection of itself and the specified CGRect . More... | |
bool | IntersectsWith (CGRect rect) |
Test to see if the given rectangle intersects with this rectangle. More... | |
void | Offset (CGPoint point) |
Moves the location of this rectangle by the specified amount. More... | |
void | Offset (int x, int y) |
Moves the location of this rectangle by the specified amount. More... | |
void | Offset (double x, double y) |
Moves the location of this rectangle by the specified amount. More... | |
void | Offset (nfloat x, nfloat y) |
Moves the location of this rectangle by the specified amount. More... | |
override string | ToString () |
Returns a T:System.String that represents the current T:CoreGraphics.CGRect. More... | |
Static Public Member Functions | |
static implicit | operator Rect (CGRect rect) |
Converts the CGRect to a Rect . More... | |
static implicit | operator CGRect (Rect rect) |
Converts the Rect to a CGRect . More... | |
static implicit | operator RectF (CGRect rect) |
Converts the CGRect to a RectF . More... | |
static implicit | operator CGRect (RectF rect) |
Converts the RectF to a CGRect . More... | |
static CGRect | operator+ (CGRect a, CGRect b) |
Adds a CoreGraphics.CGRect to a CoreGraphics.CGRect, yielding a new T:CoreGraphics.CGRect. More... | |
static CGRect | operator- (CGRect a, CGRect b) |
Subtracts a CoreGraphics.CGRect from a CoreGraphics.CGRect, yielding a new T:CoreGraphics.CGRect. More... | |
static bool | operator== (CGRect a, CGRect b) |
Determines whether a specified instance of CoreGraphics.CGRect is equal to another specified CoreGraphics.CGRect. More... | |
static bool | operator!= (CGRect a, CGRect b) |
Determines whether a specified instance of CoreGraphics.CGRect is not equal to another specified CoreGraphics.CGRect. More... | |
static bool | operator< (CGRect a, CGRect b) |
Determines whether one specified CoreGraphics.CGRect is lower than another specfied CoreGraphics.CGRect. More... | |
static bool | operator> (CGRect a, CGRect b) |
Determines whether one specified CoreGraphics.CGRect is greater than another specfied CoreGraphics.CGRect. More... | |
static bool | operator<= (CGRect a, CGRect b) |
Determines whether one specified CoreGraphics.CGRect is lower than or equal to another specfied CoreGraphics.CGRect. More... | |
static bool | operator>= (CGRect a, CGRect b) |
Determines whether one specified CoreGraphics.CGRect is greater than or equal to another specfied CoreGraphics.CGRect. More... | |
static CGRect | FromLTRB (nfloat left, nfloat top, nfloat right, nfloat bottom) |
Creates a CGRect structure with the specified edge locations. More... | |
static CGRect | Inflate (CGRect rect, nfloat width, nfloat height) |
Creates and returns an enlarged copy of the specified CGRect structure. The copy is enlarged by the specified amount. The original CGRect structure remains unmodified. More... | |
static CGRect | Intersect (CGRect a, CGRect b) |
Returns a new CGRect representing the intersection of the two given rectangles. More... | |
static CGRect | Union (CGRect a, CGRect b) |
Returns the union of the two rectangles More... | |
Properties | |
nfloat | X [get, set] |
Gets or sets the x coordinate. More... | |
nfloat | Y = 0f [get, set] |
Gets or sets the y coordinate. More... | |
nfloat | Height = 0f [get, set] |
Gets or sets the height. More... | |
nfloat | Width = 0f [get, set] |
Gets or sets the width. More... | |
nfloat | Bottom = 0f [get] |
Gets the bottom. More... | |
nfloat | Left [get] |
Gets the left. More... | |
CGPoint | Location [get, set] |
Gets or sets the location. More... | |
nfloat | Right [get] |
Gets the right. More... | |
CGSize | Size [get, set] |
Gets or sets the size. More... | |
nfloat | Top [get] |
Gets the top. More... | |
Represents a simulated iOS CGRect
used to ease the porting of UI code from iOS to Android. A CGRect
can be implicitly converted to and from an Android Rect
or RectF
.
CoreGraphics.CGRect.CGRect | ( | ) |
Initializes a new instance of the T:CoreGraphics.CGRect class.
CoreGraphics.CGRect.CGRect | ( | CGRect | rect | ) |
Initializes a new instance of the T:CoreGraphics.CGRect class.
rect | Rect. |
Initializes a new instance of the T:CoreGraphics.CGRect class.
point | Point. |
size | Size. |
CoreGraphics.CGRect.CGRect | ( | int | x, |
int | y, | ||
int | width, | ||
int | height | ||
) |
Initializes a new instance of the T:CoreGraphics.CGRect class.
x | The x coordinate. |
y | The y coordinate. |
width | Width. |
height | Height. |
CoreGraphics.CGRect.CGRect | ( | double | x, |
double | y, | ||
double | width, | ||
double | height | ||
) |
Initializes a new instance of the T:CoreGraphics.CGRect class.
x | The x coordinate. |
y | The y coordinate. |
width | Width. |
height | Height. |
CoreGraphics.CGRect.CGRect | ( | nfloat | x, |
nfloat | y, | ||
nfloat | width, | ||
nfloat | height | ||
) |
Initializes a new instance of the T:CoreGraphics.CGRect class.
x | The x coordinate. |
y | The y coordinate. |
width | Width. |
height | Height. |
CoreGraphics.CGRect.CGRect | ( | Rect | rect | ) |
Initializes a new instance of the T:CoreGraphics.CGRect class.
rect | Rect. |
CoreGraphics.CGRect.CGRect | ( | RectF | rect | ) |
Initializes a new instance of the T:CoreGraphics.CGRect class.
rect | Rect. |
bool CoreGraphics.CGRect.Contains | ( | CGPoint | point | ) |
Contains the specified point.
true
in the point is inside of the rect, else returns false
.point | Point. |
bool CoreGraphics.CGRect.Contains | ( | CGRect | rect | ) |
Contains the specified rect.
true
in the rect is inside of the rect, else returns false
.rect | Rect. |
bool CoreGraphics.CGRect.Contains | ( | int | x, |
int | y | ||
) |
Contains the specified x and y.
true
in the x,y point is inside of the rect, else returns false
.x | The x coordinate. |
y | The y coordinate. |
bool CoreGraphics.CGRect.Contains | ( | double | x, |
double | y | ||
) |
Contains the specified x and y.
true
in the x,y point is inside of the rect, else returns false
.x | The x coordinate. |
y | The y coordinate. |
bool CoreGraphics.CGRect.Contains | ( | nfloat | x, |
nfloat | y | ||
) |
Contains the specified x and y.
true
in the x,y point is inside of the rect, else returns false
.x | The x coordinate. |
y | The y coordinate. |
void CoreGraphics.CGRect.Copy | ( | CGRect | rect | ) |
Copy the specified rect into this rect.
rect | Rect. |
|
static |
nfloat CoreGraphics.CGRect.GetMaxX | ( | ) |
Gets the max x.
nfloat CoreGraphics.CGRect.GetMaxY | ( | ) |
Gets the max y.
nfloat CoreGraphics.CGRect.GetMinX | ( | ) |
Gets the minimum x.
nfloat CoreGraphics.CGRect.GetMinY | ( | ) |
Gets the minimum y.
Creates and returns an enlarged copy of the specified CGRect
structure. The copy is enlarged by the specified amount. The original CGRect
structure remains unmodified.
CGRect
.rect | Rect. |
width | Width. |
height | Height. |
void CoreGraphics.CGRect.Inflate | ( | CGSize | size | ) |
Increases the size of this CGRect
.
size | Size. |
void CoreGraphics.CGRect.Inflate | ( | int | width, |
int | height | ||
) |
Increases the size of this CGRect
.
width | Width. |
height | Height. |
void CoreGraphics.CGRect.Inflate | ( | double | width, |
double | height | ||
) |
Increases the size of this CGRect
.
width | Width. |
height | Height. |
void CoreGraphics.CGRect.Inflate | ( | nfloat | width, |
nfloat | height | ||
) |
Increases the size of this CGRect
.
width | Width. |
height | Height. |
void CoreGraphics.CGRect.Intersect | ( | CGRect | rect | ) |
bool CoreGraphics.CGRect.IntersectsWith | ( | CGRect | rect | ) |
Test to see if the given rectangle intersects with this rectangle.
true
, if the rectangles intersect, false
otherwise.rect | Rect. |
void CoreGraphics.CGRect.Offset | ( | CGPoint | point | ) |
Moves the location of this rectangle by the specified amount.
point | Point. |
void CoreGraphics.CGRect.Offset | ( | int | x, |
int | y | ||
) |
Moves the location of this rectangle by the specified amount.
x | The x coordinate. |
y | The y coordinate. |
void CoreGraphics.CGRect.Offset | ( | double | x, |
double | y | ||
) |
Moves the location of this rectangle by the specified amount.
x | The x coordinate. |
y | The y coordinate. |
void CoreGraphics.CGRect.Offset | ( | nfloat | x, |
nfloat | y | ||
) |
Moves the location of this rectangle by the specified amount.
x | The x coordinate. |
y | The y coordinate. |
|
static |
|
static |
|
static |
|
static |
Determines whether a specified instance of CoreGraphics.CGRect is not equal to another specified CoreGraphics.CGRect.
a | The first CoreGraphics.CGRect to compare. |
b | The second CoreGraphics.CGRect to compare. |
true
if a
and b
are not equal; otherwise, false
.Adds a CoreGraphics.CGRect to a CoreGraphics.CGRect, yielding a new T:CoreGraphics.CGRect.
a | The first CoreGraphics.CGRect to add. |
b | The second CoreGraphics.CGRect to add. |
a
and b
.Subtracts a CoreGraphics.CGRect from a CoreGraphics.CGRect, yielding a new T:CoreGraphics.CGRect.
a | The CoreGraphics.CGRect to subtract from (the minuend). |
b | The CoreGraphics.CGRect to subtract (the subtrahend). |
a
minus b
.Determines whether one specified CoreGraphics.CGRect is lower than another specfied CoreGraphics.CGRect.
a | The first CoreGraphics.CGRect to compare. |
b | The second CoreGraphics.CGRect to compare. |
true
if a
is lower than b
; otherwise, false
.Determines whether one specified CoreGraphics.CGRect is lower than or equal to another specfied CoreGraphics.CGRect.
a | The first CoreGraphics.CGRect to compare. |
b | The second CoreGraphics.CGRect to compare. |
true
if a
is lower than or equal to b
; otherwise, false
.Determines whether a specified instance of CoreGraphics.CGRect is equal to another specified CoreGraphics.CGRect.
a | The first CoreGraphics.CGRect to compare. |
b | The second CoreGraphics.CGRect to compare. |
true
if a
and b
are equal; otherwise, false
.Determines whether one specified CoreGraphics.CGRect is greater than another specfied CoreGraphics.CGRect.
a | The first CoreGraphics.CGRect to compare. |
b | The second CoreGraphics.CGRect to compare. |
true
if a
is greater than b
; otherwise, false
.Determines whether one specified CoreGraphics.CGRect is greater than or equal to another specfied CoreGraphics.CGRect.
a | The first CoreGraphics.CGRect to compare. |
b | The second CoreGraphics.CGRect to compare. |
true
if a
is greater than or equal to b
; otherwise, false
.override string CoreGraphics.CGRect.ToString | ( | ) |
Returns a T:System.String that represents the current T:CoreGraphics.CGRect.
Returns the union of the two rectangles
a | Rect. |
b | Rect. |
|
get |
Gets the bottom.
The bottom.
|
getset |
Gets or sets the height.
The height.
|
get |
Gets the left.
The left.
|
getset |
Gets or sets the location.
The location.
|
get |
Gets the right.
The right.
|
getset |
Gets or sets the size.
The size.
|
get |
Gets the top.
The top.
|
getset |
Gets or sets the width.
The width.
|
getset |
Gets or sets the x coordinate.
The x.
|
getset |
Gets or sets the y coordinate.
The y.