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 PTPDFViewCtrl that the annotation selection is on.

    Declaration

    Objective-C

    @property (readwrite, nonatomic) PTPDFViewCtrl *_Nullable pdfViewCtrl;

    Swift

    weak var pdfViewCtrl: PTPDFViewCtrl? { get set }
  • The annotation that is selected.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable) PTAnnot *annot;

    Swift

    var annot: PTAnnot? { get set }
  • The drawing mode for the view. Used when editing line and arrow annotations.

    Declaration

    Objective-C

    @property (assign, readwrite, 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 (assign, readwrite, 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()
  • 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)