C# Class Eto.Mac.MacExtensions

These are extensions for missing methods in monomac/xamarin.mac, or incorrectly bound.
Once monomac/xam.mac supports these methods or are implemented properly, then remove from here.
Mostrar archivo Open project: picoe/Eto Class Usage Examples

Public Methods

Method Description
BoundingRect ( this str, System.Drawing.SizeF size, NSStringDrawingOptions options ) : System.Drawing.RectangleF
DangerousRelease ( this obj ) : void
DangerousRetain ( this obj ) : void
DrawGlyphs ( this layout, MonoMac.Foundation.NSRange range, System.Drawing.PointF point ) : void
NSColorFromCGColor ( CGColor cgColor ) : MonoMac.AppKit.NSColor
NextEventEx ( this app, NSEventMask mask, MonoMac.Foundation.NSDate untilDate, NSString mode, bool dequeue ) : NSEvent
Release ( IntPtr handle ) : void
Retain ( IntPtr handle ) : void
ShouldChangeTextNew ( this textView, MonoMac.Foundation.NSRange affectedCharRange, string replacementString ) : bool

Method Details

BoundingRect() public static method

public static BoundingRect ( this str, System.Drawing.SizeF size, NSStringDrawingOptions options ) : System.Drawing.RectangleF
str this
size System.Drawing.SizeF
options NSStringDrawingOptions
return System.Drawing.RectangleF

DangerousRelease() public static method

public static DangerousRelease ( this obj ) : void
obj this
return void

DangerousRetain() public static method

public static DangerousRetain ( this obj ) : void
obj this
return void

DrawGlyphs() public static method

public static DrawGlyphs ( this layout, MonoMac.Foundation.NSRange range, System.Drawing.PointF point ) : void
layout this
range MonoMac.Foundation.NSRange
point System.Drawing.PointF
return void

NSColorFromCGColor() public static method

public static NSColorFromCGColor ( CGColor cgColor ) : MonoMac.AppKit.NSColor
cgColor MonoMac.CoreGraphics.CGColor
return MonoMac.AppKit.NSColor

NextEventEx() public static method

public static NextEventEx ( this app, NSEventMask mask, MonoMac.Foundation.NSDate untilDate, NSString mode, bool dequeue ) : NSEvent
app this
mask NSEventMask
untilDate MonoMac.Foundation.NSDate
mode MonoMac.Foundation.NSString
dequeue bool
return NSEvent

Release() public static method

public static Release ( IntPtr handle ) : void
handle System.IntPtr
return void

Retain() public static method

public static Retain ( IntPtr handle ) : void
handle System.IntPtr
return void

ShouldChangeTextNew() public static method

public static ShouldChangeTextNew ( this textView, MonoMac.Foundation.NSRange affectedCharRange, string replacementString ) : bool
textView this
affectedCharRange MonoMac.Foundation.NSRange
replacementString string
return bool