PTBorderStyle
@interface PTBorderStyle : NSObject
BorderStyle structure specifies the characteristics of the annotation’s border. The border is specified as a rounded rectangle.
-
Creates a new border style with given parameters.
Note
If the corner radii are 0, the border has square (not rounded) corners; if the border width is 0, no border is drawn.
Declaration
Objective-C
- (instancetype)initWithS:(PTBdStyle)s b_width:(double)b_width b_hr:(double)b_hr b_vr:(double)b_vr;Swift
init!(s: PTBdStyle, b_width: Double, b_hr: Double, b_vr: Double)Parameters
sThe border style.
b_widthThe border width expressed in the default user space.
b_hrThe horizontal corner radius expressed in the default user space.
b_vrThe vertical corner radius expressed in the default user space.
-
Declaration
Objective-C
- (double)GetHR;Swift
func getHR() -> DoubleReturn Value
horizontal corner radius.
-
Sets horizontal corner radius.
Declaration
Objective-C
- (void)SetHR:(double)horizontal_radius;Swift
func setHR(_ horizontal_radius: Double)Parameters
horizontal_radiusA number representing the value of the horizontal radius to set the annotation to.
-
Declaration
Objective-C
- (double)GetVR;Swift
func getVR() -> DoubleReturn Value
vertical corner radius.
-
Sets vertical corner radius.
Declaration
Objective-C
- (void)SetVR:(double)vertical_radius;Swift
func setVR(_ vertical_radius: Double)Parameters
vertical_radiusA number representing the value of the vertical radius to set the annotation to.
-
Declaration
Objective-C
- (double)GetWidth;Swift
func getWidth() -> DoubleReturn Value
the border width.
-
Sets the border width
Declaration
Objective-C
- (void)SetWidth:(double)width;Swift
func setWidth(_ width: Double)Parameters
widthA number representing the width value to set the annotation to.
-
See
BorderStyle()Declaration
Objective-C
- (NSMutableArray *)GetDash;Swift
func getDash() -> NSMutableArray!Return Value
the border dash pattern.
-
Sets the border dash pattern.
See
BorderStyle()Declaration
Objective-C
- (void)SetDash:(NSMutableArray *)dash;Swift
func setDash(_ dash: NSMutableArray!)
PTBorderStyle Class Reference