PTToolOptionsDelegate
@protocol PTToolOptionsDelegate <NSObject>
The PTToolOptionsDelegate protocol allows the adopting class to provide annotation options
information to a tool.
-
Used by a tool to check whether the specified annotation type can be created.
Declaration
Objective-C
- (BOOL)tool:(nonnull PTTool *)tool canCreateExtendedAnnotType:(PTExtendedAnnotType)annotType;Swift
func tool(_ tool: PTTool, canCreateExtendedAnnotType annotType: PTExtendedAnnotType) -> BoolParameters
toolthe tool that sent the message
annotTypethe annotation type to be created
Return Value
YESif the annotation type can be created,NOotherwise -
Used by a tool to check whether the specified annotation can be edited.
Declaration
Parameters
toolthe tool that sent the message
annotationthe annotation to be edited
Return Value
YESif the annotation can be edited,NOotherwise -
Used by a tool to check whether the specified annotation type can be edited.
Declaration
Objective-C
- (BOOL)tool:(nonnull PTTool *)tool canEditExtendedAnnotType:(PTExtendedAnnotType)annotType;Swift
func tool(_ tool: PTTool, canEdit annotType: PTExtendedAnnotType) -> BoolParameters
toolthe tool that sent the message
annotTypethe annotation type to be edited
Return Value
YESif the annotation type can be edited,NOotherwise
-
Used by a tool to check whether the specified annotation allows editing.
Declaration
Parameters
toolthe tool that sent the message.
annotthe annotation to be edited
Return Value
YESif the annotation allows editing,NOotherwise
-
Used to check if auto resizing free text is enabled.
Declaration
Objective-C
- (BOOL)autoResizeFreeText;Swift
func autoResizeFreeText() -> Bool -
Used to set if auto resizing free text is enabled.
Declaration
Objective-C
- (void)setAutoResizeFreeText:(BOOL)enabled;Swift
func setAutoResizeFreeText(_ enabled: Bool) -
Used to check if snapping to document geometry is enabled.
Declaration
Objective-C
- (BOOL)snapToDocumentGeometry;Swift
func snapToDocumentGeometry() -> Bool -
Used to set if snapping to document geometry is enabled.
Declaration
Objective-C
- (void)setSnapToDocumentGeometry:(BOOL)enabled;Swift
func setSnapToDocumentGeometry(_ enabled: Bool)
PTToolOptionsDelegate Protocol Reference