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 (nonatomic) PTResizeHandleLocation location;
  • The size of a resize widget.

    Declaration

    Objective-C

    @property (class, nonatomic, readonly) int length;
  • Returns a new instance of a PTResizeWidgetView.

    Declaration

    Objective-C

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

    Parameters

    point

    The resize handle’s position in its superview.

    loc

    The location of the resize handle.

  • The color of the border around the view.

    The border color can be reset to its default value by assigning a value of nil to this property.

    Note

    The default border color is UIColor.whiteColor.

    Declaration

    Objective-C

    @property (nonatomic, strong, null_resettable) UIColor *borderColor;
  • The width of the border around the view.

    The border can be hidden by setting the width to a value of 0.0.

    Note

    The default value of this property is 1.0.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat borderWidth;