Instance Method
zoom(to:padding:) zoomToRect:padding: zoomToRect_padding_
Zooms to fit the given rect and scrolls it into the center of the frame.
Declaration
func zoom(
to rect: NSRect,
padding withPadding: Bool
)Declaration
- (void) zoomToRect:(NSRect) rect
padding:(BOOL) withPadding;Declaration
zoomToRect_padding_(
rect: NSRect,
withPadding: bool
)Parameters
rectThe target rect in view coordinates.
withPaddingWhether to surround the rect with the standard padding.