Declaration

func zoom(to target: NSRect, centering isCenteringRect: Bool, inSafeArea: Bool)

Declaration

- (void) zoomViewToRect:(NSRect) target centering:(BOOL) isCenteringRect inSafeArea:(BOOL) inSafeArea;

Declaration

zoomViewToRect_centering_inSafeArea_(target: NSRect, isCenteringRect: bool, inSafeArea: bool)

Parameters

target

The target rect in view points.

isCenteringRect

If YES, the target rect will be centered in the view. Otherwise, no scrolling is performed.

inSafeArea

If YES, the target rect will be zoomed to fit the safe area of the view (the view bounds excluding the the Info box views).