Protocol

PKTool

An interface adopted by tools used by a canvas view.

Declaration

protocol PKTool

Overview

Tools associated with a PKCanvasView adopt the PKTool protocol. Tools are user-facing, and the selected tool determines how the canvas interprets incoming gestures.

Do not adopt this protocol in your own objects. Instead, create an appropriate tool object to obtain the tool behavior you want.

Relationships

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.

class PKLassoToolReference

A tool for selecting stroked lines in a canvas view.