MonobjcMonobjc Documented Class Library
CGRectInset Method (rect, dx, dy)
NamespacesMonobjc.ApplicationServicesCGGeometryCGRectInset(CGRect, CGFloat, CGFloat)

Returns a rectangle that is smaller or larger than the source rectangle, with the same center point.

Original signature is 'CGRect CGRectInset ( CGRect rect, CGFloat dx, CGFloat dy );'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static CGRect CGRectInset(
	CGRect rect,
	CGFloat dx,
	CGFloat dy
)
Public Shared Function CGRectInset ( _
	rect As CGRect, _
	dx As CGFloat, _
	dy As CGFloat _
) As CGRect
public:
static CGRect CGRectInset(
	CGRect rect, 
	CGFloat dx, 
	CGFloat dy
)
Parameters
rect (CGRect)
MISSING
dx (CGFloat)
MISSING
dy (CGFloat)
MISSING
Return Value
A rectangle. The origin value is offset in the x-axis by the distance specified by the dx parameter and in the y-axis by the distance specified by the dy parameter, and its size adjusted by (2*dx,2*dy), relative to the source rectangle. If dx and dy are positive values, then the rectangle’s size is decreased. If dx and dy are negative values, the rectangle’s size is increased.
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)