C# Class Monobjc.ApplicationServices.CGPoint

Mostra file Open project: Monobjc/monobjc Class Usage Examples

Public Properties

Property Type Description
CGPointZero CGPoint

Public Methods

Method Description
Add ( CGPoint cgPoint, CGSize cgSize ) : CGPoint

Translates the point by the specified size.

CGPointEqualToPoint ( CGPoint point1, CGPoint point2 ) : int

Indicates whether two points are equal.

Original declaration is : int CGPointEqualToPoint ( CGPoint point1, CGPoint point2 );

CGPointMake ( CGFloat x, CGFloat y ) : CGPoint

Returns a point structure constructed from coordinate values you provide.

Original declaration is : CGPoint CGPointMake ( float x, float y );

Substract ( CGPoint cgPoint, CGSize cgSize ) : CGPoint

Translates the point by the specified size.

Substract ( CGPoint cgPoint1, CGPoint cgPoint2 ) : CGSize

Computes the size between the two points. The values are always positives.

operator ( ) : CGPoint

Implements the operator +.

operator ( ) : CGSize

Implements the operator -.

Method Details

Add() public static method

Translates the point by the specified size.
public static Add ( CGPoint cgPoint, CGSize cgSize ) : CGPoint
cgPoint CGPoint A point.
cgSize CGSize A size.
return CGPoint

CGPointEqualToPoint() public static method

Indicates whether two points are equal.
Original declaration is : int CGPointEqualToPoint ( CGPoint point1, CGPoint point2 );
public static CGPointEqualToPoint ( CGPoint point1, CGPoint point2 ) : int
point1 CGPoint The first point to examine.
point2 CGPoint The second point to examine.
return int

CGPointMake() public static method

Returns a point structure constructed from coordinate values you provide.
Original declaration is : CGPoint CGPointMake ( float x, float y );
public static CGPointMake ( CGFloat x, CGFloat y ) : CGPoint
x CGFloat The x-coordinate of the point to construct.
y CGFloat The y-coordinate of the point to construct.
return CGPoint

Substract() public static method

Translates the point by the specified size.
public static Substract ( CGPoint cgPoint, CGSize cgSize ) : CGPoint
cgPoint CGPoint A point.
cgSize CGSize A size.
return CGPoint

Substract() public static method

Computes the size between the two points. The values are always positives.
public static Substract ( CGPoint cgPoint1, CGPoint cgPoint2 ) : CGSize
cgPoint1 CGPoint The point 1.
cgPoint2 CGPoint The point 2.
return CGSize

operator() public static method

Implements the operator +.
public static operator ( ) : CGPoint
return CGPoint

operator() public static method

Implements the operator -.
public static operator ( ) : CGSize
return CGSize

Property Details

CGPointZero public_oe static_oe property

A CGRect with its x and y set to zero.
public static CGPoint,Monobjc.ApplicationServices CGPointZero
return CGPoint