MonobjcMonobjc Documented Class Library
InitWithImageForegroundColorHintBackgroundColorHintHotSpot Method (newImage, fg, bg, hotSpot)
NamespacesMonobjc.AppKitNSCursorInitWithImageForegroundColorHintBackgroundColorHintHotSpot(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 virtual Id InitWithImageForegroundColorHintBackgroundColorHintHotSpot(
	NSImage newImage,
	NSColor fg,
	NSColor bg,
	NSPoint hotSpot
Public Overridable Function InitWithImageForegroundColorHintBackgroundColorHintHotSpot ( _
	newImage As NSImage, _
	fg As NSColor, _
	bg As NSColor, _
	hotSpot As NSPoint _
) As Id
virtual Id^ InitWithImageForegroundColorHintBackgroundColorHintHotSpot(
	NSImage^ newImage, 
	NSColor^ fg, 
	NSColor^ bg, 
	NSPoint hotSpot
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)