PTSelectionRectView
@interface PTSelectionRectView : UIView
For use when editing line and arrow annotations, where the selection rectangle is not shown when the annotation is not being moved, and has a different appearance than other annotation types.
-
The delegate of the selection view.
Declaration
Objective-C
@property (nonatomic, weak, nullable) id<PTSelectionRectViewDelegate> delegate;
Swift
weak var delegate: PTSelectionRectViewDelegate? { get set }
-
The PTPDFViewCtrl that the annotation selection is on.
Declaration
Objective-C
@property (nonatomic, weak, nullable) PTPDFViewCtrl *pdfViewCtrl;
Swift
weak var pdfViewCtrl: PTPDFViewCtrl? { get set }
-
The drawing mode for the view. Used when editing line and arrow annotations.
Declaration
Objective-C
@property (nonatomic) PTSelectionRectViewDrawingMode drawingMode;
Swift
var drawingMode: PTSelectionRectViewDrawingMode { get set }
-
The adjustment to the view’s frame when editing line and arrow annotations.
Declaration
Objective-C
@property (nonatomic) CGFloat rectOffset;
Swift
var rectOffset: CGFloat { get set }
-
Refreshes the live representation of the annotation’s appearance.
Declaration
Objective-C
- (void)refreshLiveAppearance;
Swift
func refreshLiveAppearance()
-
Removes the live representation of the annotation’s appearance.
Declaration
Objective-C
- (void)removeLiveAppearance;
Swift
func removeLiveAppearance()
-
The view currently displaying the annotation’s live representation.
Declaration
Objective-C
@property (nonatomic, strong, readonly, nullable) UIView *liveAppearanceView;
Swift
var liveAppearanceView: UIView? { get }
-
Returns a new instance of a PTSelectionRectView.
Declaration
Objective-C
- (nonnull instancetype)initWithFrame:(CGRect)frame forAnnot:(nullable PTAnnot *)annot withAnnotEditTool:(nonnull PTAnnotEditTool *)tool withPDFViewCtrl:(nonnull PTPDFViewCtrl *)pdfViewCtrl;
Swift
init(frame: CGRect, for annot: PTAnnot?, with tool: PTAnnotEditTool, with pdfViewCtrl: PTPDFViewCtrl)
-
Undocumented
Declaration
Objective-C
-(instancetype)initWithCoder:(NSCoder *)aDecoder NS_UNAVAILABLE;
-
Undocumented
Declaration
Objective-C
-(instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE;
-
Undocumented
Declaration
Objective-C
-(instancetype)init NS_UNAVAILABLE;