C# Class Monobjc.Foundation.GeometryExtensions

Extension method to go back and forth between NSXXX and CGXXX structures.
Mostra file Open project: Monobjc/monobjc

Public Methods

Method Description
ToCGPoint ( this origin ) : CGPoint
ToCGRect ( this rect ) : CGRect
ToCGSize ( this size ) : CGSize
ToNSPoint ( this origin ) : NSPoint
ToNSRect ( this rect ) : NSRect
ToNSSize ( this size ) : NSSize

Method Details

ToCGPoint() public static method

public static ToCGPoint ( this origin ) : CGPoint
origin this
return Monobjc.ApplicationServices.CGPoint

ToCGRect() public static method

public static ToCGRect ( this rect ) : CGRect
rect this
return Monobjc.ApplicationServices.CGRect

ToCGSize() public static method

public static ToCGSize ( this size ) : CGSize
size this
return Monobjc.ApplicationServices.CGSize

ToNSPoint() public static method

public static ToNSPoint ( this origin ) : NSPoint
origin this
return NSPoint

ToNSRect() public static method

public static ToNSRect ( this rect ) : NSRect
rect this
return NSRect

ToNSSize() public static method

public static ToNSSize ( this size ) : NSSize
size this
return NSSize