Class

PKLassoToolReference

A tool for selecting stroked lines in a canvas view.

Declaration

class PKLassoToolReference : __PKTool

Overview

A PKLassoToolReference object supports the selection of content on a PKCanvasView. When this tool is active, the canvas uses incoming touch events to determine what content to add to the selection.

Create a lasso tool programmatically or display a PKToolPicker object and let the user pick it. Assign the resulting object to the tool property of your PKCanvasView object. The canvas uses any subsequent touch sequences to select content on the canvas.

Topics

Creating a Lasso Tool

init()

Creates a lasso tool object for selecting content on a canvas view.

Relationships

Conforms To

See Also

Tools

class PKToolPicker

An object that displays a selection of drawing tools and colors from which to select in the current window.

struct PKInkingTool

An object that defines the drawing characteristics (width, color, pen style) to use when drawing lines on a canvas view.

class PKInkingToolReference

An object that defines the drawing characteristics (width, color, pen style) to use when drawing lines on a canvas view.

struct PKEraserTool

A tool for erasing previously drawn content in a canvas view.

class PKEraserToolReference

A tool for erasing previously drawn content in a canvas view.

struct PKLassoTool

A tool for selecting stroked lines in a canvas view.

protocol PKTool

An interface adopted by tools used by a canvas view.