MonobjcMonobjc Documented Class Library
MouseInRect Method (aPoint, aRect)
NamespacesMonobjc.AppKitNSViewMouseInRect(NSPoint, NSRect)

Returns whether a region of the receiver contains a specified point, accounting for whether the receiver is flipped or not.

Original signature is '- (BOOL)mouse:(NSPoint)aPoint inRect:(NSRect)aRect'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool MouseInRect(
	NSPoint aPoint,
	NSRect aRect
)
Public Overridable Function MouseInRect ( _
	aPoint As NSPoint, _
	aRect As NSRect _
) As Boolean
public:
virtual bool MouseInRect(
	NSPoint aPoint, 
	NSRect aRect
)
Parameters
aPoint (NSPoint)
A point that is expressed in the receiver's coordinate system. This point generally represents the hot spot of the mouse cursor.
aRect (NSRect)
A rectangle that is expressed in the receiver’s coordinate system.
Return Value
YES if aRect contains aPoint, NO otherwise.
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)