MonobjcMonobjc Documented Class Library
NSCursor Constructor (newImage, fg, bg, hotSpot)
NamespacesMonobjc.AppKitNSCursorNSCursor(NSImage, NSColor, NSColor, NSPoint)

Initializes the cursor with the specified image and hot spot.

Original signature is '- (id)initWithImage:(NSImage *)newImage foregroundColorHint:(NSColor *)fg backgroundColorHint:(NSColor *)bg hotSpot:(NSPoint)hotSpot'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public NSCursor(
	NSImage newImage,
	NSColor fg,
	NSColor bg,
	NSPoint hotSpot
)
Public Sub New ( _
	newImage As NSImage, _
	fg As NSColor, _
	bg As NSColor, _
	hotSpot As NSPoint _
)
public:
NSCursor(
	NSImage^ newImage, 
	NSColor^ fg, 
	NSColor^ bg, 
	NSPoint hotSpot
)
Parameters
newImage (NSImage)
The image to assign to the cursor.
fg (NSColor)
The foreground color. This is currently ignored.
bg (NSColor)
The background color. This is currently ignored.
hotSpot (NSPoint)
The point to assign as the cursor's hot spot.
Return Value
The initialized cursor object.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)