C# Класс 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.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

BoundingRect() публичный статический Метод

public static BoundingRect ( this str, System.Drawing.SizeF size, NSStringDrawingOptions options ) : System.Drawing.RectangleF
str this
size System.Drawing.SizeF
options NSStringDrawingOptions
Результат System.Drawing.RectangleF

DangerousRelease() публичный статический Метод

public static DangerousRelease ( this obj ) : void
obj this
Результат void

DangerousRetain() публичный статический Метод

public static DangerousRetain ( this obj ) : void
obj this
Результат void

DrawGlyphs() публичный статический Метод

public static DrawGlyphs ( this layout, MonoMac.Foundation.NSRange range, System.Drawing.PointF point ) : void
layout this
range MonoMac.Foundation.NSRange
point System.Drawing.PointF
Результат void

NSColorFromCGColor() публичный статический Метод

public static NSColorFromCGColor ( CGColor cgColor ) : MonoMac.AppKit.NSColor
cgColor MonoMac.CoreGraphics.CGColor
Результат MonoMac.AppKit.NSColor

NextEventEx() публичный статический Метод

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
Результат NSEvent

Release() публичный статический Метод

public static Release ( IntPtr handle ) : void
handle System.IntPtr
Результат void

Retain() публичный статический Метод

public static Retain ( IntPtr handle ) : void
handle System.IntPtr
Результат void

ShouldChangeTextNew() публичный статический Метод

public static ShouldChangeTextNew ( this textView, MonoMac.Foundation.NSRange affectedCharRange, string replacementString ) : bool
textView this
affectedCharRange MonoMac.Foundation.NSRange
replacementString string
Результат bool