ActionComponents  04.05.00
Customizable UI and time-saving tools for Android development with Xamarin and Visual Studio.
CoreGraphics.CGPoint Class Reference

Represents a simulated iOS CGPoint used to ease the porting of UI code from iOS to Android. A CGPoint can be implicitly converted to and from a base Android Point or PointF. More...

Public Member Functions

 CGPoint ()
 Initializes a new instance of the T:CoreGraphics.CGPoint class. More...
 
 CGPoint (CGPoint point)
 Initializes a new instance of the T:CoreGraphics.CGPoint class. More...
 
 CGPoint (CGSize size)
 Initializes a new instance of the T:CoreGraphics.CGPoint class. More...
 
 CGPoint (int x, int y)
 Initializes a new instance of the T:CoreGraphics.CGPoint class. More...
 
 CGPoint (double x, double y)
 Initializes a new instance of the T:CoreGraphics.CGPoint class. More...
 
 CGPoint (nfloat x, nfloat y)
 Initializes a new instance of the T:CoreGraphics.CGPoint class. More...
 
 CGPoint (Point point)
 Initializes a new instance of the T:CoreGraphics.CGPoint class. More...
 
 CGPoint (PointF point)
 Initializes a new instance of the T:CoreGraphics.CGPoint class. More...
 
bool IsBetweenHorizontally (CGPoint a, CGPoint b)
 Check to see if this point is horizontally between the two given points More...
 
bool IsBetweenVertically (CGPoint a, CGPoint b)
 Check to see if this point is Vertically between the two given points More...
 
override string ToString ()
 Returns a T:System.String that represents the current T:CoreGraphics.CGPoint. More...
 

Static Public Member Functions

static implicit operator Point (CGPoint point)
 Converts the CGPoint to a Point. More...
 
static implicit operator CGPoint (Point point)
 Converts the Point to a CGPoint. More...
 
static implicit operator PointF (CGPoint point)
 Converts the CGPoint to a PointF. More...
 
static implicit operator CGPoint (PointF point)
 Converts the PointF to a CGPoint. More...
 
static implicit operator CGSize (CGPoint point)
 Converts the CGPoint to a CGSize. More...
 
static implicit operator CGPoint (CGSize size)
 Converts the CGSize to a CGPoint. More...
 
static CGPoint operator+ (CGPoint a, CGPoint b)
 Adds a CoreGraphics.CGPoint to a CoreGraphics.CGPoint, yielding a new T:CoreGraphics.CGPoint. More...
 
static CGPoint operator- (CGPoint a, CGPoint b)
 Subtracts a CoreGraphics.CGPoint from a CoreGraphics.CGPoint, yielding a new T:CoreGraphics.CGPoint. More...
 
static CGPoint operator* (CGPoint a, CGPoint b)
 Computes the product of a and b, yielding a new T:CoreGraphics.CGPoint. More...
 
static CGPoint operator/ (CGPoint a, CGPoint b)
 Computes the division of a and b, yielding a new T:CoreGraphics.CGPoint. More...
 
static bool operator== (CGPoint a, CGPoint b)
 Determines whether a specified instance of CoreGraphics.CGPoint is equal to another specified CoreGraphics.CGPoint. More...
 
static bool operator!= (CGPoint a, CGPoint b)
 Determines whether a specified instance of CoreGraphics.CGPoint is not equal to another specified CoreGraphics.CGPoint. More...
 
static bool operator< (CGPoint a, CGPoint b)
 Determines whether one specified CoreGraphics.CGPoint is lower than another specfied CoreGraphics.CGPoint. More...
 
static bool operator> (CGPoint a, CGPoint b)
 Determines whether one specified CoreGraphics.CGPoint is greater than another specfied CoreGraphics.CGPoint. More...
 
static bool operator<= (CGPoint a, CGPoint b)
 Determines whether one specified CoreGraphics.CGPoint is lower than or equal to another specfied CoreGraphics.CGPoint. More...
 
static bool operator>= (CGPoint a, CGPoint b)
 Determines whether one specified CoreGraphics.CGPoint is greater than or equal to another specfied CoreGraphics.CGPoint. 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...
 

Detailed Description

Represents a simulated iOS CGPoint used to ease the porting of UI code from iOS to Android. A CGPoint can be implicitly converted to and from a base Android Point or PointF.

Constructor & Destructor Documentation

CoreGraphics.CGPoint.CGPoint ( )

Initializes a new instance of the T:CoreGraphics.CGPoint class.

Here is the caller graph for this function:

CoreGraphics.CGPoint.CGPoint ( CGPoint  point)

Initializes a new instance of the T:CoreGraphics.CGPoint class.

Parameters
pointPoint.
CoreGraphics.CGPoint.CGPoint ( CGSize  size)

Initializes a new instance of the T:CoreGraphics.CGPoint class.

Parameters
sizeSize.
CoreGraphics.CGPoint.CGPoint ( int  x,
int  y 
)

Initializes a new instance of the T:CoreGraphics.CGPoint class.

Parameters
xThe x coordinate.
yThe y coordinate.
CoreGraphics.CGPoint.CGPoint ( double  x,
double  y 
)

Initializes a new instance of the T:CoreGraphics.CGPoint class.

Parameters
xThe x coordinate.
yThe y coordinate.
CoreGraphics.CGPoint.CGPoint ( nfloat  x,
nfloat  y 
)

Initializes a new instance of the T:CoreGraphics.CGPoint class.

Parameters
xThe x coordinate.
yThe y coordinate.
CoreGraphics.CGPoint.CGPoint ( Point  point)

Initializes a new instance of the T:CoreGraphics.CGPoint class.

Parameters
pointPoint.
CoreGraphics.CGPoint.CGPoint ( PointF  point)

Initializes a new instance of the T:CoreGraphics.CGPoint class.

Parameters
pointPoint.

Member Function Documentation

bool CoreGraphics.CGPoint.IsBetweenHorizontally ( CGPoint  a,
CGPoint  b 
)

Check to see if this point is horizontally between the two given points

Returns
true, if between horizontally, false otherwise.
Parameters
aThe first point.
bThe second point.
bool CoreGraphics.CGPoint.IsBetweenVertically ( CGPoint  a,
CGPoint  b 
)

Check to see if this point is Vertically between the two given points

Returns
true, if between Vertically, false otherwise.
Parameters
aThe first point.
bThe second point.
static implicit CoreGraphics.CGPoint.operator CGPoint ( Point  point)
static

Converts the Point to a CGPoint.

Returns
The implicitly converted CGPoint.
Parameters
pointPoint.

Here is the call graph for this function:

static implicit CoreGraphics.CGPoint.operator CGPoint ( PointF  point)
static

Converts the PointF to a CGPoint.

Returns
The implicitly converted CGPoint.
Parameters
pointPoint.

Here is the call graph for this function:

static implicit CoreGraphics.CGPoint.operator CGPoint ( CGSize  size)
static

Converts the CGSize to a CGPoint.

Returns
The implicitly converted CGPoint.
Parameters
sizeSize.

Here is the call graph for this function:

static implicit CoreGraphics.CGPoint.operator CGSize ( CGPoint  point)
static

Converts the CGPoint to a CGSize.

Returns
The implicitly converted CGSize.
Parameters
pointPoint.
static implicit CoreGraphics.CGPoint.operator Point ( CGPoint  point)
static

Converts the CGPoint to a Point.

Returns
The implicitly converted Point.
Parameters
pointPoint.
static implicit CoreGraphics.CGPoint.operator PointF ( CGPoint  point)
static

Converts the CGPoint to a PointF.

Returns
The implicitly converted PointF.
Parameters
pointPoint.
static bool CoreGraphics.CGPoint.operator!= ( CGPoint  a,
CGPoint  b 
)
static

Determines whether a specified instance of CoreGraphics.CGPoint is not equal to another specified CoreGraphics.CGPoint.

Parameters
aThe first CoreGraphics.CGPoint to compare.
bThe second CoreGraphics.CGPoint to compare.
Returns
true if a and b are not equal; otherwise, false.
static CGPoint CoreGraphics.CGPoint.operator* ( CGPoint  a,
CGPoint  b 
)
static

Computes the product of a and b, yielding a new T:CoreGraphics.CGPoint.

Parameters
aThe CoreGraphics.CGPoint to multiply.
bThe CoreGraphics.CGPoint to multiply.
Returns
The T:CoreGraphics.CGPoint that is the a * b.

Here is the call graph for this function:

static CGPoint CoreGraphics.CGPoint.operator+ ( CGPoint  a,
CGPoint  b 
)
static

Adds a CoreGraphics.CGPoint to a CoreGraphics.CGPoint, yielding a new T:CoreGraphics.CGPoint.

Parameters
aThe first CoreGraphics.CGPoint to add.
bThe second CoreGraphics.CGPoint to add.
Returns
The T:CoreGraphics.CGPoint that is the sum of the values of a and b.

Here is the call graph for this function:

static CGPoint CoreGraphics.CGPoint.operator- ( CGPoint  a,
CGPoint  b 
)
static

Subtracts a CoreGraphics.CGPoint from a CoreGraphics.CGPoint, yielding a new T:CoreGraphics.CGPoint.

Parameters
aThe CoreGraphics.CGPoint to subtract from (the minuend).
bThe CoreGraphics.CGPoint to subtract (the subtrahend).
Returns
The T:CoreGraphics.CGPoint that is the a minus b.

Here is the call graph for this function:

static CGPoint CoreGraphics.CGPoint.operator/ ( CGPoint  a,
CGPoint  b 
)
static

Computes the division of a and b, yielding a new T:CoreGraphics.CGPoint.

Parameters
aThe CoreGraphics.CGPoint to divide (the divident).
bThe CoreGraphics.CGPoint to divide (the divisor).
Returns
The T:CoreGraphics.CGPoint that is the a / b.

Here is the call graph for this function:

static bool CoreGraphics.CGPoint.operator< ( CGPoint  a,
CGPoint  b 
)
static

Determines whether one specified CoreGraphics.CGPoint is lower than another specfied CoreGraphics.CGPoint.

Parameters
aThe first CoreGraphics.CGPoint to compare.
bThe second CoreGraphics.CGPoint to compare.
Returns
true if a is lower than b; otherwise, false.
static bool CoreGraphics.CGPoint.operator<= ( CGPoint  a,
CGPoint  b 
)
static

Determines whether one specified CoreGraphics.CGPoint is lower than or equal to another specfied CoreGraphics.CGPoint.

Parameters
aThe first CoreGraphics.CGPoint to compare.
bThe second CoreGraphics.CGPoint to compare.
Returns
true if a is lower than or equal to b; otherwise, false.
static bool CoreGraphics.CGPoint.operator== ( CGPoint  a,
CGPoint  b 
)
static

Determines whether a specified instance of CoreGraphics.CGPoint is equal to another specified CoreGraphics.CGPoint.

Parameters
aThe first CoreGraphics.CGPoint to compare.
bThe second CoreGraphics.CGPoint to compare.
Returns
true if a and b are equal; otherwise, false.
static bool CoreGraphics.CGPoint.operator> ( CGPoint  a,
CGPoint  b 
)
static

Determines whether one specified CoreGraphics.CGPoint is greater than another specfied CoreGraphics.CGPoint.

Parameters
aThe first CoreGraphics.CGPoint to compare.
bThe second CoreGraphics.CGPoint to compare.
Returns
true if a is greater than b; otherwise, false.
static bool CoreGraphics.CGPoint.operator>= ( CGPoint  a,
CGPoint  b 
)
static

Determines whether one specified CoreGraphics.CGPoint is greater than or equal to another specfied CoreGraphics.CGPoint.

Parameters
aThe first CoreGraphics.CGPoint to compare.
bThe second CoreGraphics.CGPoint to compare.
Returns
true if a is greater than or equal to b; otherwise, false.
override string CoreGraphics.CGPoint.ToString ( )

Returns a T:System.String that represents the current T:CoreGraphics.CGPoint.

Returns
A T:System.String that represents the current T:CoreGraphics.CGPoint.

Property Documentation

nfloat CoreGraphics.CGPoint.X
getset

Gets or sets the x coordinate.

The x.

nfloat CoreGraphics.CGPoint.Y = 0f
getset

Gets or sets the y coordinate.

The y.