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: (any 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 annotation that is selected.

    Declaration

    Objective-C

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

    Swift

    var annot: PTAnnot? { get }
  • The page number of the selected annotation.

    Declaration

    Objective-C

    @property (nonatomic, readonly) int pageNumber;

    Swift

    var pageNumber: Int32 { get }
  • Sets the selected annotation and page number.

    Declaration

    Objective-C

    - (void)setAnnotation:(nullable PTAnnot *)annotation pageNumber:(int)pageNumber;

    Swift

    func setAnnotation(_ annotation: PTAnnot?, pageNumber: Int32)

    Parameters

    annotation

    The selected annotation, or nil if there is no selection.

    pageNumber

    The PDF page number of the annotation, or 0 if there is no selection.

  • 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 scaling applies to the contents of the live appearance view.

    The default value of this property is 1.0.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat appearanceScale;

    Swift

    var appearanceScale: CGFloat { get set }
  • 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;