DrawingToolForShapeWithThreePoints
open class DrawingToolForShapeWithThreePoints : DrawingTool
Base class for tools (angle)
-
Declaration
Swift
public typealias ShapeType = Shape & ShapeWithThreePoints
-
Declaration
Swift
open var name: String { get }
-
Declaration
Swift
public var shapeInProgress: ShapeType?
-
Declaration
Swift
public var isProgressive: Bool { get }
-
Declaration
Swift
public init()
-
Override this method to return a shape ready to be drawn to the screen.
Declaration
Swift
open func makeShape() -> ShapeType
-
Declaration
Swift
public func handleTap(context: ToolOperationContext, point: CGPoint)
-
Declaration
Swift
public func handleDragStart(context: ToolOperationContext, point: CGPoint)
-
Declaration
Swift
public func handleDragContinue(context: ToolOperationContext, point: CGPoint, velocity: CGPoint)
-
Declaration
Swift
public func handleDragEnd(context: ToolOperationContext, point: CGPoint)
-
Declaration
Swift
public func handleDragCancel(context: ToolOperationContext, point: CGPoint)
-
Declaration
Swift
public func renderShapeInProgress(transientContext: CGContext)
-
Declaration
Swift
public func apply(context: ToolOperationContext, userSettings: UserSettings)