Instance Method
reflowKeepActiveContentCentered(callback:origCenter:newCenter:) reflowKeepActiveContentCenteredWithCallback:origCenter:newCenter: reflowKeepActiveContentCenteredWithCallback_origCenter_newCenter_
Applies changes to the state of the edit view in changeBlock. Allow to customize the what position prior to the change change and after will be synced. e.g. when centering on the selection
Declaration
func reflowKeepActiveContentCentered(callback changeBlock: (Any) -> Void, origCenter origCenterBlock: ((GSLayer) -> NSPoint)?, newCenter newCenterBlock: ((GSLayer) -> NSPoint)? = nil)Declaration
- (void) reflowKeepActiveContentCenteredWithCallback:(void (^)(id self)) changeBlock origCenter:(NSPoint (^)(GSLayer *oldActiveLayer)) origCenterBlock newCenter:(NSPoint (^)(GSLayer *newActiveLayer)) newCenterBlock;Declaration
reflowKeepActiveContentCenteredWithCallback_origCenter_newCenter_(self: object, changeBlock, oldActiveLayer: GSLayer, origCenterBlock, newActiveLayer: GSLayer, newCenterBlock)