PTResizeWidgetView

@interface PTResizeWidgetView : UIView

The view for the small resize handles that appear for annotation resizing with a PTSelectionRectContainerView.

  • This widget’s location.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) PTResizeHandleLocation location;

    Swift

    var location: PTResizeHandleLocation { get set }
  • The size of a resize widget.

    Declaration

    Objective-C

    @property (readonly, nonatomic, class) int length;

    Swift

    class var length: Int32 { get }
  • Returns a new instance of a PTResizeWidgetView.

    Declaration

    Objective-C

    - (nonnull instancetype)initAtPoint:(CGPoint)point
                           WithLocation:(PTResizeHandleLocation)loc;

    Swift

    init(at point: CGPoint, with loc: PTResizeHandleLocation)

    Parameters

    point

    The resize handle’s position in its superview.

    loc

    The location of the resize handle.