kanzi::KzuInputManager Struct Reference

Input manager. More...

#include <kanzi/core.ui/input/kzu_input_manager.h>

Public Types

typedef vector< KzuInputTouchPointTouchPointVector
 Container for touch points. More...
 
typedef TouchPointVector::const_iterator TouchPointVectorConstIterator
 
typedef TouchPointVector::iterator TouchPointVectorIterator
 

Public Member Functions

 KzuInputManager (const struct KzcMemoryManager *memoryManager)
 Create an input manager. More...
 
virtual ~KzuInputManager ()
 
void processEvents (const KzsEventQueue *queue, KzuMessageDispatcher *messageDispatcher, Node2D *layer)
 
kzsError processInputEvent (const struct KzsEvent *inputEvent, struct KzuMessageDispatcher *messageDispatcher, Node2D *layer)
 Process a low level input event. More...
 
void captureTouch (Node *objectNode)
 Captures raw touch events to specified object node. More...
 
NodegetTouchCaptureObject () const
 Returns the raw touch event capturer node. More...
 
kzsError removeManipulator (InputManipulator *inputManipulator)
 Remove input manipulator dependencies from input manager. More...
 
NodeSharedPtr setFocus (NodeSharedPtr newFocusNode)
 Attempts to set focus to an object. More...
 
void notifyNodeDetached (const Node &node)
 
NodeSharedPtr getFocus () const
 Gets currently focused node. More...
 
kzsError notifyManipulatorStateChange (InputManipulator *inputManipulator)
 Notification of manipulator state change. More...
 

Public Attributes

kzBool isInEventHandling
 Is the input manager in event handling currently. More...
 
struct KzcDynamicArrayattachedManipulators
 Attached input manipulators. More...
 
NodetouchCapture
 Touch capture object. More...
 
NodeWeakPtr focus
 Focus object. More...
 
TouchPointVector m_touchPoints
 All active touch points. More...
 

Detailed Description

Input manager.

Member Typedef Documentation

Container for touch points.

typedef TouchPointVector::const_iterator kanzi::KzuInputManager::TouchPointVectorConstIterator
typedef TouchPointVector::iterator kanzi::KzuInputManager::TouchPointVectorIterator

Constructor & Destructor Documentation

kanzi::KzuInputManager::KzuInputManager ( const struct KzcMemoryManager memoryManager)
explicit

Create an input manager.

virtual kanzi::KzuInputManager::~KzuInputManager ( )
virtual

Member Function Documentation

void kanzi::KzuInputManager::processEvents ( const KzsEventQueue *  queue,
KzuMessageDispatcher messageDispatcher,
Node2D layer 
)
kzsError kanzi::KzuInputManager::processInputEvent ( const struct KzsEvent *  inputEvent,
struct KzuMessageDispatcher messageDispatcher,
Node2D layer 
)

Process a low level input event.

void kanzi::KzuInputManager::captureTouch ( Node objectNode)

Captures raw touch events to specified object node.

Pass KZ_NULL to release capture. Raw touch capture has no effect on manipulators.

Node* kanzi::KzuInputManager::getTouchCaptureObject ( ) const

Returns the raw touch event capturer node.

Returns KZ_NULL if no capturer has been set.

kzsError kanzi::KzuInputManager::removeManipulator ( InputManipulator inputManipulator)

Remove input manipulator dependencies from input manager.

NodeSharedPtr kanzi::KzuInputManager::setFocus ( NodeSharedPtr  newFocusNode)

Attempts to set focus to an object.

void kanzi::KzuInputManager::notifyNodeDetached ( const Node node)
NodeSharedPtr kanzi::KzuInputManager::getFocus ( ) const

Gets currently focused node.

kzsError kanzi::KzuInputManager::notifyManipulatorStateChange ( InputManipulator inputManipulator)

Notification of manipulator state change.

Member Data Documentation

kzBool kanzi::KzuInputManager::isInEventHandling

Is the input manager in event handling currently.

struct KzcDynamicArray* kanzi::KzuInputManager::attachedManipulators

Attached input manipulators.

<KzuInputManipulator>.

Node* kanzi::KzuInputManager::touchCapture

Touch capture object.

NodeWeakPtr kanzi::KzuInputManager::focus

Focus object.

TouchPointVector kanzi::KzuInputManager::m_touchPoints

All active touch points.


The documentation for this struct was generated from the following file: