Kanzi Graphics Engine
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
kzu_pinch_manipulator.h File Reference

Pinch manipulator. More...

Functions

kzsError kzuPinchManipulatorCreate (const struct KzcMemoryManager *memoryManager, struct KzuPropertyManager *propertyManager, struct KzuInputManipulator **out_inputManipulator)
 Create pinch gesture manipulator. More...
 
kzsError kzuPinchManipulatorSetScaleRecognitionThreshold (struct KzuInputManipulator *inputManipulator, kzFloat threshold)
 Set the threshold the fingers have to move away from each other before scale is recognized. More...
 
kzsError kzuPinchManipulatorSetRotationRecognitionThreshold (struct KzuInputManipulator *inputManipulator, kzFloat threshold)
 Set the threshold the fingers have to rotate around the midpoint before rotation is recognized. More...
 

Detailed Description

Pinch manipulator.

Copyright 2008-2019 by Rightware. All rights reserved.

Function Documentation

kzsError kzuPinchManipulatorCreate ( const struct KzcMemoryManager memoryManager,
struct KzuPropertyManager *  propertyManager,
struct KzuInputManipulator **  out_inputManipulator 
)

Create pinch gesture manipulator.

kzsError kzuPinchManipulatorSetScaleRecognitionThreshold ( struct KzuInputManipulator inputManipulator,
kzFloat  threshold 
)

Set the threshold the fingers have to move away from each other before scale is recognized.

Default is 5 screen units.

kzsError kzuPinchManipulatorSetRotationRecognitionThreshold ( struct KzuInputManipulator inputManipulator,
kzFloat  threshold 
)

Set the threshold the fingers have to rotate around the midpoint before rotation is recognized.

Default is 5 screen units along the circle.