PenShape
public class PenShape : Shape, ShapeWithStrokeState, ShapeSelectable
-
Declaration
Swift
public static let type: String
-
Declaration
Swift
public var id: String
-
Declaration
Swift
public var isFinished: Bool
-
Declaration
Swift
public var start: CGPoint
-
Declaration
Swift
public var strokeColor: UIColor
-
Declaration
Swift
public var strokeWidth: CGFloat
-
Declaration
Swift
public var segments: [PenLineSegment]
-
Declaration
Swift
public var isEraser: Bool
-
Declaration
Swift
public var transform: ShapeTransform
-
Declaration
Swift
public var boundingRect: CGRect { get }
-
Declaration
Swift
public init()
-
Declaration
Swift
public required init(from decoder: Decoder) throws
-
Declaration
Swift
public func encode(to encoder: Encoder) throws
-
Declaration
Swift
public func add(segment: PenLineSegment)
-
Declaration
Swift
public func render(in context: CGContext)
-
Declaration
Swift
public func renderLatestSegment(in context: CGContext)