C# 클래스 Monobjc.Foundation.NSRect

파일 보기 프로젝트 열기: Monobjc/monobjc 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
NSZeroRect NSRect

Private Properties

프로퍼티 타입 설명
NSRectFromCGRect NSRect
NSRectFromString NSRect
NSRectToCGRect Monobjc.ApplicationServices.CGRect
NSStringFromRect NSString

공개 메소드들

메소드 설명
ContainsRect ( NSRect aRect ) : bool

Returns a Boolean value that indicates whether this rectangle completely encloses another.

DivideRect ( NSRect &slice, NSRect &remainder, CGFloat amount, NSRectEdge edge ) : void

Divides this rectangle into two new rectangles.

InsetRect ( float dX, float dY ) : NSRect

Creates a rectangle that insets this rectangle by a specified amount.

IntegralRect ( ) : NSRect

Creates a rectangle with the sides of this rectangle to integer values.

IntersectionRect ( NSRect aRect ) : NSRect

Calculates the intersection of this rectangle with the specified rectangle.

IntersectsRect ( NSRect aRect ) : bool

Returns a Boolean value that indicates whether this rectangle and the specified rectangle intersect.

MouseInRect ( NSPoint aPoint, bool isFlipped ) : bool

Returns a Boolean value that indicates whether the point is in the rectangle.

NSContainsRect ( NSRect aRect, NSRect bRect ) : bool

Returns a Boolean value that indicates whether one rectangle completely encloses another.

Original declaration is : BOOL NSContainsRect(NSRect aRect, NSRect bRect)

NSDivideRect ( NSRect inRect, NSRect &slice, NSRect &remainder, CGFloat amount, NSRectEdge edge ) : void

Divides a rectangle into two new rectangles.

Original declaration is : void NSDivideRect(NSRect inRect, NSRect *slice, NSRect *remainder, float amount, NSRectEdge edge)

NSEqualRects ( NSRect aRect, NSRect bRect ) : bool

Returns a Boolean value that indicates whether the two rectangles are equal.

Original declaration is : BOOL NSEqualRects(NSRect aRect, NSRect bRect)

NSHeight ( NSRect aRect ) : float

Returns the height of a given rectangle.

Original declaration is : float NSHeight(NSRect aRect)

NSInsetRect ( NSRect aRect, float dX, float dY ) : NSRect

Insets a rectangle by a specified amount.

Original declaration is : NSRect NSInsetRect(NSRect aRect, float dX, float dY)

NSIntegralRect ( NSRect aRect ) : NSRect

Adjusts the sides of a rectangle to integer values.

Original declaration is : NSRect NSIntegralRect(NSRect aRect)

NSIntersectionRect ( NSRect aRect, NSRect bRect ) : NSRect

Calculates the intersection of two rectangles.

Original declaration is : NSRect NSIntersectionRect(NSRect aRect, NSRect bRect)

NSIntersectsRect ( NSRect aRect, NSRect bRect ) : bool

Returns a Boolean value that indicates whether two rectangles intersect.

Original declaration is : BOOL NSIntersectsRect(NSRect aRect, NSRect bRect)

NSIsEmptyRect ( NSRect aRect ) : bool

Returns a Boolean value that indicates whether a given rectangle is empty.

Original declaration is : BOOL NSIsEmptyRect(NSRect aRect)

NSMakeRect ( float x, float y, float w, float h ) : NSRect

Creates a new NSRect from the specified values.

Original declaration is : NSRect NSMakeRect(float x, float y, float w, float h)

NSMaxX ( NSRect aRect ) : CGFloat

Returns the largest x coordinate of a given rectangle.

Original declaration is : float NSMaxX(NSRect aRect)

NSMaxY ( NSRect aRect ) : CGFloat

Returns the largest y coordinate of a given rectangle.

Original declaration is : float NSMaxY(NSRect aRect)

NSMidX ( NSRect aRect ) : CGFloat

Returns the x coordinate of a given rectangle�s midpoint.

Original declaration is : float NSMidX(NSRect aRect)

NSMidY ( NSRect aRect ) : CGFloat

Returns the y coordinate of a given rectangle�s midpoint.

Original declaration is : float NSMidY(NSRect aRect)

NSMinX ( NSRect aRect ) : CGFloat

Returns the smallest x coordinate of a given rectangle.

Original declaration is : float NSMinX(NSRect aRect)

NSMinY ( NSRect aRect ) : CGFloat

Returns the smallest y coordinate of a given rectangle.

Original declaration is : float NSMinY(NSRect aRect)

NSMouseInRect ( NSPoint aPoint, NSRect aRect, bool isFlipped ) : bool

Returns a Boolean value that indicates whether the point is in the specified rectangle.

Original declaration is : BOOL NSMouseInRect(NSPoint aPoint, NSRect aRect, BOOL isFlipped)

NSOffsetRect ( NSRect aRect, CGFloat dX, CGFloat dY ) : NSRect

Offsets the rectangle by the specified amount.

Original declaration is : NSRect NSOffsetRect(NSRect aRect, float dX, float dY)

NSPointInRect ( NSPoint aPoint, NSRect aRect ) : bool

Returns a Boolean value that indicates whether a given point is in a given rectangle.

Original declaration is : BOOL NSPointInRect(NSPoint aPoint, NSRect aRect)

NSUnionRect ( NSRect aRect, NSRect bRect ) : NSRect

Calculates the union of two rectangles.

Original declaration is : NSRect NSUnionRect(NSRect aRect, NSRect bRect)

NSWidth ( NSRect aRect ) : float

Returns the width of the specified rectangle.

Original declaration is : float NSWidth(NSRect aRect)

OffsetRect ( CGFloat dX, CGFloat dY ) : NSRect

Creates a rectangle that offsets this rectangle by the specified amount.

PointInRect ( NSPoint aPoint ) : bool

Returns a Boolean value that indicates whether a given point is in a specified rectangle.

UnionRect ( NSRect aRect ) : NSRect

Creates a rectangle as the union of this rectangle and the specified rectangle.

비공개 메소드들

메소드 설명
NSRectFromCGRect ( CGRect cgrect ) : NSRect
NSRectFromString ( [ MarshalTypeRef = typeof(IdMarshaler<NSString>))]NSStringaString ) : NSRect
NSRectToCGRect ( NSRect nsrect ) : CGRect
NSStringFromRect ( NSRect aRect ) : NSString

메소드 상세

ContainsRect() 공개 메소드

Returns a Boolean value that indicates whether this rectangle completely encloses another.
public ContainsRect ( NSRect aRect ) : bool
aRect NSRect
리턴 bool

DivideRect() 공개 메소드

Divides this rectangle into two new rectangles.
public DivideRect ( NSRect &slice, NSRect &remainder, CGFloat amount, NSRectEdge edge ) : void
slice NSRect
remainder NSRect
amount Monobjc.ApplicationServices.CGFloat
edge NSRectEdge
리턴 void

InsetRect() 공개 메소드

Creates a rectangle that insets this rectangle by a specified amount.
public InsetRect ( float dX, float dY ) : NSRect
dX float
dY float
리턴 NSRect

IntegralRect() 공개 메소드

Creates a rectangle with the sides of this rectangle to integer values.
public IntegralRect ( ) : NSRect
리턴 NSRect

IntersectionRect() 공개 메소드

Calculates the intersection of this rectangle with the specified rectangle.
public IntersectionRect ( NSRect aRect ) : NSRect
aRect NSRect
리턴 NSRect

IntersectsRect() 공개 메소드

Returns a Boolean value that indicates whether this rectangle and the specified rectangle intersect.
public IntersectsRect ( NSRect aRect ) : bool
aRect NSRect
리턴 bool

MouseInRect() 공개 메소드

Returns a Boolean value that indicates whether the point is in the rectangle.
public MouseInRect ( NSPoint aPoint, bool isFlipped ) : bool
aPoint NSPoint
isFlipped bool
리턴 bool

NSContainsRect() 공개 정적인 메소드

Returns a Boolean value that indicates whether one rectangle completely encloses another.
Original declaration is : BOOL NSContainsRect(NSRect aRect, NSRect bRect)
public static NSContainsRect ( NSRect aRect, NSRect bRect ) : bool
aRect NSRect
bRect NSRect
리턴 bool

NSDivideRect() 공개 정적인 메소드

Divides a rectangle into two new rectangles.
Original declaration is : void NSDivideRect(NSRect inRect, NSRect *slice, NSRect *remainder, float amount, NSRectEdge edge)
public static NSDivideRect ( NSRect inRect, NSRect &slice, NSRect &remainder, CGFloat amount, NSRectEdge edge ) : void
inRect NSRect
slice NSRect
remainder NSRect
amount Monobjc.ApplicationServices.CGFloat
edge NSRectEdge
리턴 void

NSEqualRects() 공개 정적인 메소드

Returns a Boolean value that indicates whether the two rectangles are equal.
Original declaration is : BOOL NSEqualRects(NSRect aRect, NSRect bRect)
public static NSEqualRects ( NSRect aRect, NSRect bRect ) : bool
aRect NSRect
bRect NSRect
리턴 bool

NSHeight() 공개 정적인 메소드

Returns the height of a given rectangle.
Original declaration is : float NSHeight(NSRect aRect)
public static NSHeight ( NSRect aRect ) : float
aRect NSRect
리턴 float

NSInsetRect() 공개 정적인 메소드

Insets a rectangle by a specified amount.
Original declaration is : NSRect NSInsetRect(NSRect aRect, float dX, float dY)
public static NSInsetRect ( NSRect aRect, float dX, float dY ) : NSRect
aRect NSRect
dX float
dY float
리턴 NSRect

NSIntegralRect() 공개 정적인 메소드

Adjusts the sides of a rectangle to integer values.
Original declaration is : NSRect NSIntegralRect(NSRect aRect)
public static NSIntegralRect ( NSRect aRect ) : NSRect
aRect NSRect
리턴 NSRect

NSIntersectionRect() 공개 정적인 메소드

Calculates the intersection of two rectangles.
Original declaration is : NSRect NSIntersectionRect(NSRect aRect, NSRect bRect)
public static NSIntersectionRect ( NSRect aRect, NSRect bRect ) : NSRect
aRect NSRect
bRect NSRect
리턴 NSRect

NSIntersectsRect() 공개 정적인 메소드

Returns a Boolean value that indicates whether two rectangles intersect.
Original declaration is : BOOL NSIntersectsRect(NSRect aRect, NSRect bRect)
public static NSIntersectsRect ( NSRect aRect, NSRect bRect ) : bool
aRect NSRect
bRect NSRect
리턴 bool

NSIsEmptyRect() 공개 정적인 메소드

Returns a Boolean value that indicates whether a given rectangle is empty.
Original declaration is : BOOL NSIsEmptyRect(NSRect aRect)
public static NSIsEmptyRect ( NSRect aRect ) : bool
aRect NSRect
리턴 bool

NSMakeRect() 공개 정적인 메소드

Creates a new NSRect from the specified values.
Original declaration is : NSRect NSMakeRect(float x, float y, float w, float h)
public static NSMakeRect ( float x, float y, float w, float h ) : NSRect
x float
y float
w float
h float
리턴 NSRect

NSMaxX() 공개 정적인 메소드

Returns the largest x coordinate of a given rectangle.
Original declaration is : float NSMaxX(NSRect aRect)
public static NSMaxX ( NSRect aRect ) : CGFloat
aRect NSRect
리턴 Monobjc.ApplicationServices.CGFloat

NSMaxY() 공개 정적인 메소드

Returns the largest y coordinate of a given rectangle.
Original declaration is : float NSMaxY(NSRect aRect)
public static NSMaxY ( NSRect aRect ) : CGFloat
aRect NSRect
리턴 Monobjc.ApplicationServices.CGFloat

NSMidX() 공개 정적인 메소드

Returns the x coordinate of a given rectangle�s midpoint.
Original declaration is : float NSMidX(NSRect aRect)
public static NSMidX ( NSRect aRect ) : CGFloat
aRect NSRect
리턴 Monobjc.ApplicationServices.CGFloat

NSMidY() 공개 정적인 메소드

Returns the y coordinate of a given rectangle�s midpoint.
Original declaration is : float NSMidY(NSRect aRect)
public static NSMidY ( NSRect aRect ) : CGFloat
aRect NSRect
리턴 Monobjc.ApplicationServices.CGFloat

NSMinX() 공개 정적인 메소드

Returns the smallest x coordinate of a given rectangle.
Original declaration is : float NSMinX(NSRect aRect)
public static NSMinX ( NSRect aRect ) : CGFloat
aRect NSRect
리턴 Monobjc.ApplicationServices.CGFloat

NSMinY() 공개 정적인 메소드

Returns the smallest y coordinate of a given rectangle.
Original declaration is : float NSMinY(NSRect aRect)
public static NSMinY ( NSRect aRect ) : CGFloat
aRect NSRect
리턴 Monobjc.ApplicationServices.CGFloat

NSMouseInRect() 공개 정적인 메소드

Returns a Boolean value that indicates whether the point is in the specified rectangle.
Original declaration is : BOOL NSMouseInRect(NSPoint aPoint, NSRect aRect, BOOL isFlipped)
public static NSMouseInRect ( NSPoint aPoint, NSRect aRect, bool isFlipped ) : bool
aPoint NSPoint
aRect NSRect
isFlipped bool
리턴 bool

NSOffsetRect() 공개 정적인 메소드

Offsets the rectangle by the specified amount.
Original declaration is : NSRect NSOffsetRect(NSRect aRect, float dX, float dY)
public static NSOffsetRect ( NSRect aRect, CGFloat dX, CGFloat dY ) : NSRect
aRect NSRect
dX Monobjc.ApplicationServices.CGFloat
dY Monobjc.ApplicationServices.CGFloat
리턴 NSRect

NSPointInRect() 공개 정적인 메소드

Returns a Boolean value that indicates whether a given point is in a given rectangle.
Original declaration is : BOOL NSPointInRect(NSPoint aPoint, NSRect aRect)
public static NSPointInRect ( NSPoint aPoint, NSRect aRect ) : bool
aPoint NSPoint
aRect NSRect
리턴 bool

NSUnionRect() 공개 정적인 메소드

Calculates the union of two rectangles.
Original declaration is : NSRect NSUnionRect(NSRect aRect, NSRect bRect)
public static NSUnionRect ( NSRect aRect, NSRect bRect ) : NSRect
aRect NSRect
bRect NSRect
리턴 NSRect

NSWidth() 공개 정적인 메소드

Returns the width of the specified rectangle.
Original declaration is : float NSWidth(NSRect aRect)
public static NSWidth ( NSRect aRect ) : float
aRect NSRect
리턴 float

OffsetRect() 공개 메소드

Creates a rectangle that offsets this rectangle by the specified amount.
public OffsetRect ( CGFloat dX, CGFloat dY ) : NSRect
dX Monobjc.ApplicationServices.CGFloat
dY Monobjc.ApplicationServices.CGFloat
리턴 NSRect

PointInRect() 공개 메소드

Returns a Boolean value that indicates whether a given point is in a specified rectangle.
public PointInRect ( NSPoint aPoint ) : bool
aPoint NSPoint
리턴 bool

UnionRect() 공개 메소드

Creates a rectangle as the union of this rectangle and the specified rectangle.
public UnionRect ( NSRect aRect ) : NSRect
aRect NSRect
리턴 NSRect

프로퍼티 상세

NSZeroRect 공개적으로 정적으로 프로퍼티

A NSRect with its origin and size set to zero.
public static NSRect,Monobjc.Foundation NSZeroRect
리턴 NSRect