C# Class Monobjc.Foundation.NSPoint

Mostrar archivo Open project: Monobjc/monobjc Class Usage Examples

Public Properties

Property Type Description
NSZeroPoint NSPoint

Public Methods

Method Description
Add ( NSPoint nsPoint, NSSize nsSize ) : NSPoint

Translates the point by the specified size.

CGPointFromNSPoint ( NSPoint nspoint ) : CGPoint

Converts a NSPoint instance to a CGPoint

NSEqualPoints ( NSPoint aPoint, NSPoint bPoint ) : bool

Tests two points for equality.

Original declaration is : BOOL NSEqualPoints(NSPoint aPoint, NSPoint bPoint)

NSMakePoint ( CGFloat x, CGFloat y ) : NSPoint

Creates a new NSPoint from the specified values.

Original declaration is : NSPoint NSMakePoint(float x, float y)

NSPointFromCGPoint ( CGPoint cgpoint ) : NSPoint

Converts a CGPoint instance to a NSPoint

Substract ( NSPoint nsPoint, NSSize nsSize ) : NSPoint

Translates the point by the specified size.

Substract ( NSPoint nsPoint1, NSPoint nsPoint2 ) : NSSize

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

operator ( ) : NSPoint

Implements the operator +.

operator ( ) : NSSize

Implements the operator -.

Private Methods

Method Description
NSPointFromString ( [ MarshalTypeRef = typeof(IdMarshaler<NSString>))]NSStringaString ) : NSPoint
NSStringFromPoint ( NSPoint aPoint ) : NSString

Method Details

Add() public static method

Translates the point by the specified size.
public static Add ( NSPoint nsPoint, NSSize nsSize ) : NSPoint
nsPoint NSPoint A point.
nsSize NSSize A size.
return NSPoint

CGPointFromNSPoint() public static method

Converts a NSPoint instance to a CGPoint
public static CGPointFromNSPoint ( NSPoint nspoint ) : CGPoint
nspoint NSPoint The to convert.
return CGPoint

NSEqualPoints() public static method

Tests two points for equality.
Original declaration is : BOOL NSEqualPoints(NSPoint aPoint, NSPoint bPoint)
public static NSEqualPoints ( NSPoint aPoint, NSPoint bPoint ) : bool
aPoint NSPoint
bPoint NSPoint
return bool

NSMakePoint() public static method

Creates a new NSPoint from the specified values.
Original declaration is : NSPoint NSMakePoint(float x, float y)
public static NSMakePoint ( CGFloat x, CGFloat y ) : NSPoint
x CGFloat
y CGFloat
return NSPoint

NSPointFromCGPoint() public static method

Converts a CGPoint instance to a NSPoint
public static NSPointFromCGPoint ( CGPoint cgpoint ) : NSPoint
cgpoint CGPoint The to convert.
return NSPoint

Substract() public static method

Translates the point by the specified size.
public static Substract ( NSPoint nsPoint, NSSize nsSize ) : NSPoint
nsPoint NSPoint A point.
nsSize NSSize A size.
return NSPoint

Substract() public static method

Computes the size between the two points. The values are always positives.
public static Substract ( NSPoint nsPoint1, NSPoint nsPoint2 ) : NSSize
nsPoint1 NSPoint The point 1.
nsPoint2 NSPoint The point 2.
return NSSize

operator() public static method

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

operator() public static method

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

Property Details

NSZeroPoint public_oe static_oe property

A NSPoint instance with its coordinates set to zero.
public static NSPoint,Monobjc.Foundation NSZeroPoint
return NSPoint