PTFreeHandCreate
@interface PTFreeHandCreate : PTCreateToolBase
Creates FreeHand (Ink) annotations.
-
Removes the most recently added stroke.
Declaration
Objective-C
- (void)undoStroke;Swift
func undoStroke() -
Restores a stroke removed with
undoStroke.Declaration
Objective-C
- (void)redoStroke;Swift
func redoStroke() -
Declaration
Objective-C
- (BOOL)canUndoStroke;Swift
func canUndoStroke() -> BoolReturn Value
Returns
YESif there are strikes than can be removed viaundoStroke. -
Declaration
Objective-C
- (BOOL)canRedoStroke;Swift
func canRedoStroke() -> BoolReturn Value
Returns
YESif there are strikes than can be restoried viaredoStroke. -
Adds the freehand annotation to the document. Used when
multistrokeModeis set toYES.Declaration
Objective-C
- (void)commitAnnotation;Swift
func commitAnnotation() -
Used to determine if there is a point at the specified location before the annotation has been added to the PDF
Declaration
Objective-C
- (BOOL)inkPointPresentAtScreenPoint:(CGPoint)screenPoint within:(CGFloat)threshold;Swift
func inkPointPresent(atScreenPoint screenPoint: CGPoint, within threshold: CGFloat) -> BoolParameters
screenPointThe point which is to be tested for, in screen coordinates.
thresholdThe tolerance of the test
Return Value
true if there is a point within the specified threshold; false otherwise.
-
Set to
YESif the annotation should include multiple strokes. CallcommitAnnotationpush the annotation back into the PDF.Declaration
Objective-C
@property (nonatomic) BOOL multistrokeMode;Swift
var multistrokeMode: Bool { get set } -
Set to
YESif the annotation was started by drawing with a stylus.Declaration
Objective-C
@property (nonatomic) BOOL pencilMode;Swift
var pencilMode: Bool { get set } -
Whether this tool requires an editing interface (toolbar) to operate.
The default value of this property is
NO.Declaration
Objective-C
@property (nonatomic) BOOL requiresEditSupport;Swift
var requiresEditSupport: Bool { get set } -
An object that conforms to the PTFreeHandCreateDelegate protocol.
Declaration
Objective-C
@property (nonatomic, weak, nullable) id<PTFreeHandCreateDelegate> delegate;Swift
weak var delegate: (any PTFreeHandCreateDelegate)? { get set }
PTFreeHandCreate Class Reference