DrawKit
Vector and illustration framework for Mac OS X
Protected Attributes | List of all members
DKCropTool Class Reference

Implements a very simple type of crop tool. More...

Inheritance diagram for DKCropTool:
Inheritance graph
[legend]

Protected Attributes

NSPoint mAnchor
 
NSRect mZoomRect
 

Additional Inherited Members

- Instance Methods inherited from DKDrawingTool
(void) - drawRect:inView:
 
(void) - flagsChanged:inLayer:
 
(BOOL- isSelectionTool
 Return whether the tool is some sort of object selection tool. More...
 
(BOOL- isValidTargetLayer:
 
(NSString *) - keyboardEquivalent
 
(NSUInteger- keyboardModifierFlags
 
(void) - mouseMoved:inView:
 
(NSData *) - persistentData
 
(NSString *) - registeredName
 Return the registry name for this tool. More...
 
(void) - set
 Sets the tool as the current tool for the key view in the main window, if possible. More...
 
(void) - setCursorForPoint:targetObject:inLayer:event:
 
(void) - setKeyboardEquivalent:modifierFlags:
 
(void) - shouldLoadPersistentData:
 
(void) - toolControllerDidSetTool:
 Called when this tool is set by a tool controller. More...
 
(void) - toolControllerDidUnsetTool:
 Called when this tool is unset by a tool controller. More...
 
(void) - toolControllerWillUnsetTool:
 Called when this tool is about to be unset by a tool controller. More...
 
- Instance Methods inherited from NSObject
(NSString *) - address
 
(DKStyleRegistry *) - applicationWillReturnStyleRegistry
 
(BOOL- canBeUsedWithSelectionTool
 
(id- categoryManager:shouldReplaceObject:withObject:
 
(Class- classForCoder
 
(NSColor *) - colorValue
 
(NSColor *) - colourValue
 
(id- copy
 
(void) - dealloc
 
(id- deepCopy
 
(NSDictionary *) - dimensionValuesForArrowStroke:
 
(CGFloat- drawing:convertDistanceToExternalCoordinates:
 
(NSPoint) - drawing:convertLocationToExternalCoordinates:
 
(void) - drawing:didDrawRect:inView:
 
(void) - drawing:willDrawRect:inView:
 
(NSString *) - drawing:willReturnAbbreviationForUnit:
 
(NSString *) - drawing:willReturnFormattedCoordinateForDistance:
 
(CGFloat- drawingWillReturnUnitToPointsConversonFactor:
 
(void) - finalize
 
(NSString *) - hexString
 
(void) - hotspot:didEndTrackingWithEvent:inView:
 
(void) - hotspot:isTrackingWithEvent:inView:
 
(void) - hotspot:willBeginTrackingWithEvent:inView:
 
(NSData *) - imageData
 
(NSImage *) - imageResourceNamed:
 
(id- init
 
(id- initWithExpression:
 
(id- instantiateObjectWithShortName:parameters:
 
(BOOL- isLiteralValue
 
(void) - layoutManager:willPlaceGlyphAtIndex:atLocation:pathAngle:yOffset:
 
(void) - menuItem:wasAddedForObject:inCategory:
 
(BOOL- moveObjectTo:position:slope:userInfo:
 
(id- mutableCopy
 
(void) - oneShotComplete
 
(void) - oneShotHasReached:
 
(void) - oneShotWillBegin
 
(void) - path:elementIndex:type:points:subPathIndex:subPathClosed:contextInfo:
 
(id- placeLinkFromPoint:toPoint:onPath:linkNumber:userInfo:
 
(id- placeObjectAtPoint:onPath:position:slope:userInfo:
 
(NSPoint) - point
 
(NSPoint) - pointForTextLayout
 
(DKStyle *) - registry:shouldReplaceStyle:withStyle:
 
(NSBezierPath *) - renderer:willRenderPath:
 
(void) - routeFinder:progressHasReached:
 
(void) - setValue:forNumericParameter:
 
(NSString *) - stringValue
 
(CGFloat- taperFactorAtDistance:onPath:ofLength:
 
(void) - toolDidPerformUndoableAction:
 
(void) - toolWillPerformUndoableAction:
 
(NSURL *) - url
 
- Instance Methods inherited from <NSObject>
(NSString *) - description
 
(NSUInteger- hash
 
(BOOL- isEqual:
 
- Instance Methods inherited from <NSKeyValueBindingCreation>
(void) - bind:toObject:withKeyPath:options:
 
(NSArray *) - exposedBindings
 
(NSDictionary *) - infoForBinding:
 
(NSArray *) - optionDescriptionsForBinding:
 
(void) - unbind:
 
(Class- valueClassForBinding:
 
- Instance Methods inherited from <DKDrawingTool>
(NSString *) - actionName
 
(NSCursor *) - cursor
 
(NSInteger- mouseDownAtPoint:targetObject:layer:event:delegate:
 
(void) - mouseDraggedToPoint:partCode:layer:event:delegate:
 
(BOOL- mouseUpAtPoint:partCode:layer:event:delegate:
 
- Class Methods inherited from DKDrawingTool
(DKDrawingTool *) + drawingToolWithKeyboardEquivalent:
 Retrieve a tool from the registry matching the key equivalent indicated by the key event passed. More...
 
(DKDrawingTool *) + drawingToolWithName:
 Retrieve a tool from the registry with the given name. More...
 
(id+ firstResponderAbleToSetTool
 
(void) + loadDefaults
 Load tool defaults from the user defaults. More...
 
(void) + registerDrawingTool:withName:
 Register a tool in th eregistry with the given name. More...
 
(void) + registerStandardTools
 Set a "standard" set of tools in the registry. More...
 
(void) + saveDefaults
 Save tool defaults to the user defaults. More...
 
(NSDictionary *) + sharedToolRegistry
 Return the shared instance of the tool registry. More...
 
(NSArray *) + toolNames
 Return a list of registered tools' names, sorted alphabetically. More...
 
(BOOL+ toolPerformsUndoableAction
 Does the tool ever implement undoable actions? More...
 
- Class Methods inherited from NSObject
(id+ alloc
 
(Class+ class
 
(void) + initialize
 
(void) + load
 
(id+ new
 
- Class Methods inherited from <NSKeyValueBindingCreation>
(void) + exposeBinding:
 

Detailed Description

Implements a very simple type of crop tool.

Author
Contributions from the community; see CONTRIBUTORS.md
Date
2005-2015

Implements a very simple type of crop tool. You drag out a rect, and on mouse up the objects are cropped to that rect. A more sophisticated tool might be preferred - this is to test the crop function.

Member Data Documentation

- (NSPoint) mAnchor
protected
- (NSRect) mZoomRect
protected