Table of Contents

Struct AppKit.NSColorRef

Namespace
Xui.Runtime.MacOS
Assembly
Xui.Runtime.MacOS.dll
public ref struct AppKit.NSColorRef
Inherited Members

Constructors

NSColorRef(nint)

public NSColorRef(nint self)

Parameters

self nint

NSColorRef(NFloat, NFloat, NFloat, NFloat)

Creates an NSColor from explicit RGBA components. Retained for balanced ownership.

public NSColorRef(NFloat red, NFloat green, NFloat blue, NFloat alpha)

Parameters

red NFloat
green NFloat
blue NFloat
alpha NFloat

NSColorRef(Color)

Creates an NSColor from an sRGB color. The autoreleased object returned by colorWithCalibratedRed:green:blue:alpha: is retained so that Dispose's CFRelease produces a balanced release.

public NSColorRef(Color color)

Parameters

color Color

Fields

Class

public static readonly ObjC.Class Class

Field Value

ObjC.Class

Self

public readonly nint Self

Field Value

nint

Methods

Dispose()

public void Dispose()

Operators

implicit operator nint(NSColorRef)

public static implicit operator nint(AppKit.NSColorRef nsColorRef)

Parameters

nsColorRef AppKit.NSColorRef

Returns

nint