Conforms to NSObject
Declared in GWGeometryView.h

Overview

The GWGeometryViewDelegate protocol defines the methods you can implement to be notified of the activity of a GWGeometryView object. These methods allow to monitor events such as configuration, recognition or a change in the Undo Redo stack.

All of the methods in this protocol are optional.

Instance Methods

geometryView:didFailConfigurationWithError:

Tells the delegate that the Geometry Widget has failed its configuration.

- (void)geometryView:(GWGeometryView *)geometryView didFailConfigurationWithError:(NSError *)error

Parameters

geometryView

The geometry view that has failed its configuration.

error

An NSError object that encapsulates information why configuration failed.

Declared In

GWGeometryView.h

geometryView:didPenDownWithCaptureInfo:

Tells the delegate that geometry user has started touching the screen.

- (void)geometryView:(GWGeometryView *)geometryView didPenDownWithCaptureInfo:(GWCaptureInfo *)captureInfo

Parameters

geometryView

The geometry view receiving touches.

captureInfo

Coordinates and other information about touch sample.

Declared In

GWGeometryView.h

geometryView:didPenMoveWithCaptureInfo:

Tells the delegate that geometry user continue to touch the screen.

- (void)geometryView:(GWGeometryView *)geometryView didPenMoveWithCaptureInfo:(GWCaptureInfo *)captureInfo

Parameters

geometryView

The geometry view receiving touches.

captureInfo

Coordinates and other information about touch sample.

Declared In

GWGeometryView.h

geometryView:didPenUpWithCaptureInfo:

Tells the delegate that geometry user has ending touching the screen.

- (void)geometryView:(GWGeometryView *)geometryView didPenUpWithCaptureInfo:(GWCaptureInfo *)captureInfo

Parameters

geometryView

The geometry view receiving touches.

captureInfo

Coordinates and other information about touch sample.

Declared In

GWGeometryView.h

geometryViewDidBeginConfiguration:

Tells the delegate that the Geometry Widget has started its configuration.

- (void)geometryViewDidBeginConfiguration:(GWGeometryView *)geometryView

Parameters

geometryView

The geometry view that has started its configuration.

Declared In

GWGeometryView.h

geometryViewDidBeginEditingAngleValue:existingValue:position:uniqueId:

Tells the delegate the user starts editing angle value constraint.

- (void)geometryViewDidBeginEditingAngleValue:(GWGeometryView *)geometryView existingValue:(float)value position:(CGPoint)position uniqueId:(int64_t)uniqueId

Parameters

geometryView

The geometry view that has received angle value edition.

value

Current value for the item

position

Current position for the edited item

uniqueId

Unique Id of the item

Declared In

GWGeometryView.h

geometryViewDidBeginEditingLabel:existingLabel:position:uniqueId:

Tells the delegate the user starts editing label (dot primitive).

- (void)geometryViewDidBeginEditingLabel:(GWGeometryView *)geometryView existingLabel:(NSString *)label position:(CGPoint)position uniqueId:(int64_t)uniqueId

Parameters

geometryView

The geometry view that has received dot primitive edition.

label

Current label for the item

position

Current position for the edited item

uniqueId

Unique Id of the item

Declared In

GWGeometryView.h

geometryViewDidBeginEditingLengthValue:existingValue:position:uniqueId:

Tells the delegate the user starts editing length value constraint.

- (void)geometryViewDidBeginEditingLengthValue:(GWGeometryView *)geometryView existingValue:(float)value position:(CGPoint)position uniqueId:(int64_t)uniqueId

Parameters

geometryView

The geometry view that has received length value edition.

value

Current value for the item

position

Current position for the edited item

uniqueId

Unique Id of the item

Declared In

GWGeometryView.h

geometryViewDidBeginRecognition:

Tells the delegate that the Geometry Widget has begun a recognition session.

- (void)geometryViewDidBeginRecognition:(GWGeometryView *)geometryView

Parameters

geometryView

The geometry view that has begun a recognition process.

Discussion

A recognition session starts when the user starts writing on the screen. The session can also start after an undo or redo or a after any context restoration such as screen rotation.

Declared In

GWGeometryView.h

geometryViewDidChangeUndoRedoState:

Tells the delegate that the Geometry Widget Undo/Redo stack has changed.

- (void)geometryViewDidChangeUndoRedoState:(GWGeometryView *)geometryView

Parameters

geometryView

The geometry view whose Undo/Redo stack has changed.

Declared In

GWGeometryView.h

geometryViewDidEndConfiguration:

Tells the delegate that the Geometry Widget has end its configuration with success.

- (void)geometryViewDidEndConfiguration:(GWGeometryView *)geometryView

Parameters

geometryView

The geometry view that has ended its configuration.

Declared In

GWGeometryView.h

geometryViewDidEndRecognition:

Tells the delegate that the Geometry Widget has ended a recognition process.

- (void)geometryViewDidEndRecognition:(GWGeometryView *)geometryView

Parameters

geometryView

The geometry view that has ended a recognition process.

Declared In

GWGeometryView.h

geometryViewDidPenAbort:

Tells the delegate that the user has aborted touching the screen.

- (void)geometryViewDidPenAbort:(GWGeometryView *)geometryView

Parameters

geometryView

The geometry view that has stopped receiving touches.

Declared In

GWGeometryView.h