{
}
-Dali::KeyEvent KeyEvent::Convert( const Dali::Integration::KeyEvent& event )
-{
- Dali::KeyEvent keyEvent(event.keyName, event.keyString, event.keyCode, event.keyModifier, event.time, static_cast<Dali::KeyEvent::State>(event.state));
- GetImplementation( &keyEvent )->SetLogicalKey( event.logicalKey );
- GetImplementation( &keyEvent )->SetCompose( event.compose );
- GetImplementation( &keyEvent )->SetDeviceName( event.deviceName );
- GetImplementation( &keyEvent )->SetDeviceClass( event.deviceClass );
- GetImplementation( &keyEvent )->SetDeviceSubclass( event.deviceSubclass );
-
- return keyEvent;
-}
-
} // namespace Integration
} // namespace Dali
*/
virtual ~KeyEvent();
- /**
- * @brief Creates a Dali::KeyEvent from a Integration::KeyEvent
- *
- * @param[in] event Integration::KeyEvent to convert from
- * @return The Dali::KeyEvent
- */
- static Dali::KeyEvent Convert( const Dali::Integration::KeyEvent& event );
-
// Data
/**
return handle;
}
-Dali::TouchEvent NewTouchEvent( uint32_t timeStamp, const Dali::Integration::Point& point )
-{
- Internal::TouchEventPtr touchEventImpl( new Internal::TouchEvent( timeStamp ) );
- touchEventImpl->AddPoint( point );
- Dali::TouchEvent handle( touchEventImpl.Get() );
- return handle;
-}
-
} // namespace Integration
} // namespace Dali
#include <dali/public-api/common/dali-common.h>
#include <dali/public-api/events/touch-event.h>
#include <dali/public-api/events/touch-point.h>
-#include <dali/integration-api/events/point.h>
namespace Dali
{
*/
DALI_CORE_API Dali::TouchEvent NewTouchEvent(uint32_t timestamp, const TouchPoint& point);
-/**
- * Create a new touch data handle from timestamp and point.
- *
- * @param[in] timestamp The timestamp of the touch event.
- * @param[in] point The point on screen where the touch occurred.
- * @return A new touch data handle.
- */
-DALI_CORE_API Dali::TouchEvent NewTouchEvent( uint32_t timeStamp, const Dali::Integration::Point& point );
-
} // namespace Integration
} // namespace Dali