Instance Method
zoom(to:centering:inSafeArea:) zoomViewToRect:centering:inSafeArea: zoomViewToRect_centering_inSafeArea_
Zooms the view to fit the given target rect, optionally centering it.
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
targetThe target rect in view points.
isCenteringRectIf
YES, the target rect will be centered in the view. Otherwise, no scrolling is performed.inSafeAreaIf
YES, the target rect will be zoomed to fit the safe area of the view (the view bounds excluding the the Info box views).