kanzi::KzuInputTouchPoint Struct Reference

The structure describes the attributes for a touch point or mouse hit. More...

#include <kanzi/core.ui/input/input_manipulator.hpp>

Public Member Functions

 KzuInputTouchPoint ()
 Constructor. More...
 

Public Attributes

unsigned int id
 Touch identifier. More...
 
KzuInputTouchPointState state
 Touch state. More...
 
float x
 Touch x coordinate. More...
 
float y
 Touch y coordinate. More...
 
NodeWeakPtr objectNode
 Hit test object node. More...
 
KzcRay ray
 Hit test ray in 3D space. More...
 
float distance
 Hit test distance. More...
 

Detailed Description

The structure describes the attributes for a touch point or mouse hit.

The description includes the information about the identifier, state, coordinates, ray, and distance. Ray and distance fields are only applicable for 3D spaces.

See also
InputManipulator

Constructor & Destructor Documentation

kanzi::KzuInputTouchPoint::KzuInputTouchPoint ( )
inlineexplicit

Constructor.

Member Data Documentation

unsigned int kanzi::KzuInputTouchPoint::id

Touch identifier.

KzuInputTouchPointState kanzi::KzuInputTouchPoint::state

Touch state.

float kanzi::KzuInputTouchPoint::x

Touch x coordinate.

float kanzi::KzuInputTouchPoint::y

Touch y coordinate.

NodeWeakPtr kanzi::KzuInputTouchPoint::objectNode

Hit test object node.

KzcRay kanzi::KzuInputTouchPoint::ray

Hit test ray in 3D space.

float kanzi::KzuInputTouchPoint::distance

Hit test distance.

This is the distance between the camera and the bounding box of the hit test node.


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