DrawingToolForShapeWithTwoPoints
open class DrawingToolForShapeWithTwoPoints : DrawingTool
Base class for tools (rect, line, ellipse) that are drawn by dragging from one point to another
-
Declaration
Swift
public typealias ShapeType = Shape & ShapeWithTwoPoints -
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)
View on GitHub
DrawingToolForShapeWithTwoPoints Class Reference