- touchEvent.multi.device = DEVICE_MOUSE;\r
-\r
- if( touchEvent.window == mWin32Window )\r
- {\r
- PointState::Type state( PointState::MOTION );\r
-\r
- Integration::Point point;\r
- point.SetDeviceId( touchEvent.multi.device );\r
- point.SetState( state );\r
- point.SetScreenPosition( Vector2( touchEvent.x, touchEvent.y + WindowsPlatformImplementation::GetEdgeHeight() ) );\r
- point.SetRadius( touchEvent.multi.radius, Vector2( touchEvent.multi.radius_x, touchEvent.multi.radius_y ) );\r
- point.SetPressure( touchEvent.multi.pressure );\r
- point.SetAngle( Degree( touchEvent.multi.angle ) );\r
-\r
- mTouchEventSignal.Emit( point, touchEvent.timestamp );\r
- }\r
-}\r
-\r
-void WindowBaseWin::OnMouseWheel( int type, TWinEventInfo *event )\r
-{\r
- Event_Mouse_Wheel mouseWheelEvent = *((Event_Mouse_Wheel*)( event ));\r
-\r
- if( mouseWheelEvent.window == mWin32Window )\r
- {\r
- DALI_LOG_INFO( gWindowBaseLogFilter, Debug::General, "WindowBaseWin::OnMouseWheel: direction: %d, modifiers: %d, x: %d, y: %d, z: %d\n", mouseWheelEvent.direction, mouseWheelEvent.modifiers, mouseWheelEvent.x, mouseWheelEvent.y, mouseWheelEvent.z );\r
-\r
- WheelEvent wheelEvent( WheelEvent::MOUSE_WHEEL, mouseWheelEvent.direction, mouseWheelEvent.modifiers, Vector2( mouseWheelEvent.x, mouseWheelEvent.y ), mouseWheelEvent.z, mouseWheelEvent.timestamp );\r
-\r
- mWheelEventSignal.Emit( wheelEvent );\r
- }\r
-}\r
-\r
-void WindowBaseWin::OnKeyDown( int type, TWinEventInfo *event )\r
-{\r
- if( event->mWindow == mWin32Window )\r
- {\r
- DALI_LOG_INFO( gWindowBaseLogFilter, Debug::General, "WindowBaseWin::OnKeyDown\n" );\r
-\r
- int keyCode = event->wParam;\r
- std::string keyName( WindowsPlatformImplementation::GetKeyName( keyCode ) );\r
- std::string keyString;\r
- std::string emptyString;\r
-\r
- int modifier( 0 );\r
- unsigned long time( 0 );\r
-\r
- // Ensure key event string is not NULL as keys like SHIFT have a null string.\r
- keyString.push_back( event->wParam );\r
-\r
- Integration::KeyEvent keyEvent( keyName, emptyString, keyString, keyCode, modifier, time, Integration::KeyEvent::Down, emptyString, emptyString, DEFAULT_DEVICE_CLASS, DEFAULT_DEVICE_SUBCLASS );\r
-\r
- mKeyEventSignal.Emit( keyEvent );\r
- }\r
-}\r
-\r
-void WindowBaseWin::OnKeyUp( int type, TWinEventInfo *event )\r
-{\r
- if( event->mWindow == mWin32Window )\r
- {\r
- DALI_LOG_INFO( gWindowBaseLogFilter, Debug::General, "WindowBaseWin::OnKeyDown\n" );\r
-\r
- int keyCode = event->wParam;\r
- std::string keyName( WindowsPlatformImplementation::GetKeyName( keyCode ) );\r
- std::string keyString;\r
- std::string emptyString;\r
-\r
- int modifier( 0 );\r
- unsigned long time( 0 );\r
-\r
- // Ensure key event string is not NULL as keys like SHIFT have a null string.\r
- keyString.push_back( event->wParam );\r
-\r
- Integration::KeyEvent keyEvent( keyName, emptyString, keyString, keyCode, modifier, time, Integration::KeyEvent::Down, emptyString, emptyString, DEFAULT_DEVICE_CLASS, DEFAULT_DEVICE_SUBCLASS );\r
-\r
- mKeyEventSignal.Emit( keyEvent );\r
- }\r
-}\r
-\r
-Any WindowBaseWin::GetNativeWindow()\r
-{\r
- return mWin32Window;\r
-}\r
-\r
-int WindowBaseWin::GetNativeWindowId()\r
-{\r
- return mWin32Window;\r
-}\r
-\r
-EGLNativeWindowType WindowBaseWin::CreateEglWindow( int width, int height )\r
-{\r
- return reinterpret_cast< EGLNativeWindowType >( mWin32Window );\r
-}\r
-\r
-void WindowBaseWin::DestroyEglWindow()\r
-{\r
-}\r
-\r
-void WindowBaseWin::SetEglWindowRotation( int angle )\r
-{\r
-}\r
-\r
-void WindowBaseWin::SetEglWindowBufferTransform( int angle )\r
-{\r
-}\r
-\r
-void WindowBaseWin::SetEglWindowTransform( int angle )\r
-{\r
-}\r
-\r
-void WindowBaseWin::ResizeEglWindow( PositionSize positionSize )\r
-{\r
-}\r
-\r
-bool WindowBaseWin::IsEglWindowRotationSupported()\r
-{\r
- return false;\r
-}\r
-\r
-void WindowBaseWin::Move( PositionSize positionSize )\r
-{\r
-}\r
-\r
-void WindowBaseWin::Resize( PositionSize positionSize )\r
-{\r
-}\r
-\r
-void WindowBaseWin::MoveResize( PositionSize positionSize )\r
-{\r
-}\r
-\r
-void WindowBaseWin::SetClass( const std::string& name, const std::string& className )\r
-{\r
-}\r
-\r
-void WindowBaseWin::Raise()\r
-{\r
-}\r
-\r
-void WindowBaseWin::Lower()\r
-{\r
-}\r
-\r
-void WindowBaseWin::Activate()\r
-{\r
-}\r
-\r
-void WindowBaseWin::SetAvailableOrientations( const std::vector< Dali::Window::WindowOrientation >& orientations )\r
-{\r
-}\r
-\r
-void WindowBaseWin::SetPreferredOrientation( Dali::Window::WindowOrientation orientation )\r
-{\r
-}\r
-\r
-void WindowBaseWin::SetAcceptFocus( bool accept )\r
-{\r
-}\r
-\r
-void WindowBaseWin::Show()\r
-{\r
-}\r
-\r
-void WindowBaseWin::Hide()\r
-{\r
-}\r
-\r
-unsigned int WindowBaseWin::GetSupportedAuxiliaryHintCount() const\r
-{\r
- return 0;\r
-}\r
-\r
-std::string WindowBaseWin::GetSupportedAuxiliaryHint( unsigned int index ) const\r
-{\r
- return std::string();\r
-}\r
-\r
-unsigned int WindowBaseWin::AddAuxiliaryHint( const std::string& hint, const std::string& value )\r
-{\r
- return 0;\r
-}\r
-\r
-bool WindowBaseWin::RemoveAuxiliaryHint( unsigned int id )\r
-{\r
- return false;\r
-}\r
-\r
-bool WindowBaseWin::SetAuxiliaryHintValue( unsigned int id, const std::string& value )\r
-{\r
- return false;\r
-}\r
-\r
-std::string WindowBaseWin::GetAuxiliaryHintValue( unsigned int id ) const\r
-{\r
- return std::string();\r
-}\r
-\r
-unsigned int WindowBaseWin::GetAuxiliaryHintId( const std::string& hint ) const\r
-{\r
- return 0;\r
-}\r
-\r
-void WindowBaseWin::SetInputRegion( const Rect< int >& inputRegion )\r
-{\r
-}\r
-\r
-void WindowBaseWin::SetType( Dali::Window::Type type )\r
-{\r
-}\r
-\r
-bool WindowBaseWin::SetNotificationLevel( Dali::Window::NotificationLevel::Type level )\r
-{\r
- return false;\r
-}\r
-\r
-Dali::Window::NotificationLevel::Type WindowBaseWin::GetNotificationLevel() const\r
-{\r
- return Dali::Window::NotificationLevel::NONE;\r
-}\r
-\r
-void WindowBaseWin::SetOpaqueState( bool opaque )\r
-{\r
-}\r
-\r
-bool WindowBaseWin::SetScreenOffMode(Dali::Window::ScreenOffMode::Type screenOffMode)\r
-{\r
- return false;\r
-}\r
-\r
-Dali::Window::ScreenOffMode::Type WindowBaseWin::GetScreenOffMode() const\r
-{\r
- return Dali::Window::ScreenOffMode::TIMEOUT;\r
-}\r
-\r
-bool WindowBaseWin::SetBrightness( int brightness )\r
-{\r
- return false;\r
-}\r
-\r
-int WindowBaseWin::GetBrightness() const\r
-{\r
- return 0;\r
-}\r
-\r
-bool WindowBaseWin::GrabKey( Dali::KEY key, KeyGrab::KeyGrabMode grabMode )\r
-{\r
- return false;\r
-}\r
-\r
-bool WindowBaseWin::UngrabKey( Dali::KEY key )\r
-{\r
- return false;\r
-}\r
-\r
-bool WindowBaseWin::GrabKeyList( const Dali::Vector< Dali::KEY >& key, const Dali::Vector< KeyGrab::KeyGrabMode >& grabMode, Dali::Vector< bool >& result )\r
-{\r
- return false;\r
-}\r
-\r
-bool WindowBaseWin::UngrabKeyList( const Dali::Vector< Dali::KEY >& key, Dali::Vector< bool >& result )\r
-{\r
- return false;\r
-}\r
-\r
-void WindowBaseWin::GetDpi( unsigned int& dpiHorizontal, unsigned int& dpiVertical )\r
-{\r
- // calculate DPI\r
- float xres, yres;\r
-\r
- //// 1 inch = 25.4 millimeters\r
- WindowsPlatformImplementation::GetDPI( mWin32Window, xres, yres );\r
-\r
- xres *= 1.5f;\r
- yres *= 1.5f;\r
-\r
- dpiHorizontal = static_cast<int>( xres + 0.5f ); // rounding\r
- dpiVertical = static_cast<int>( yres + 0.5f );\r
-}\r
-\r
-int WindowBaseWin::GetScreenRotationAngle()\r
-{\r
- return 0;\r
-}\r
-\r
-void WindowBaseWin::SetWindowRotationAngle( int degree )\r
-{\r
-}\r
-\r
-int WindowBaseWin::GetWindowRotationAngle()\r
-{\r
-}\r
-\r
-void WindowBaseWin::WindowRotationCompleted( int degree, int width, int height )\r
-{\r
-}\r
-\r
-void WindowBaseWin::SetTransparency( bool transparent )\r
-{\r
-}\r
-\r
-int WindowBaseWin::GetOrientation() const\r
-{\r
-}\r
-\r
-unsigned int WindowBaseWin::GetSurfaceId( Any surface ) const\r
-{\r
- unsigned int surfaceId = 0;\r
-\r
- if ( surface.Empty() == false )\r
- {\r
- // check we have a valid type\r
- DALI_ASSERT_ALWAYS( (surface.GetType() == typeid ( WinWindowHandle ) )\r
- && "Surface type is invalid" );\r
-\r
- surfaceId = AnyCast< WinWindowHandle >( surface );\r
- }\r
- return surfaceId;\r
-}\r
-\r
-void WindowBaseWin::CreateWinWindow( PositionSize positionSize, bool isTransparent )\r
-{\r
+ touchEvent.multi.device = DEVICE_MOUSE;
+
+ if( touchEvent.window == mWin32Window )
+ {
+ PointState::Type state( PointState::MOTION );
+
+ Integration::Point point;
+ point.SetDeviceId( touchEvent.multi.device );
+ point.SetState( state );
+ point.SetScreenPosition( Vector2( touchEvent.x, touchEvent.y + WindowsPlatformImplementation::GetEdgeHeight() ) );
+ point.SetRadius( touchEvent.multi.radius, Vector2( touchEvent.multi.radius_x, touchEvent.multi.radius_y ) );
+ point.SetPressure( touchEvent.multi.pressure );
+ point.SetAngle( Degree( touchEvent.multi.angle ) );
+
+ mTouchEventSignal.Emit( point, touchEvent.timestamp );
+ }
+}
+
+void WindowBaseWin::OnMouseWheel( int type, TWinEventInfo *event )
+{
+ Event_Mouse_Wheel mouseWheelEvent = *((Event_Mouse_Wheel*)( event ));
+
+ if( mouseWheelEvent.window == mWin32Window )
+ {
+ DALI_LOG_INFO( gWindowBaseLogFilter, Debug::General, "WindowBaseWin::OnMouseWheel: direction: %d, modifiers: %d, x: %d, y: %d, z: %d\n", mouseWheelEvent.direction, mouseWheelEvent.modifiers, mouseWheelEvent.x, mouseWheelEvent.y, mouseWheelEvent.z );
+
+ WheelEvent wheelEvent( WheelEvent::MOUSE_WHEEL, mouseWheelEvent.direction, mouseWheelEvent.modifiers, Vector2( mouseWheelEvent.x, mouseWheelEvent.y ), mouseWheelEvent.z, mouseWheelEvent.timestamp );
+
+ mWheelEventSignal.Emit( wheelEvent );
+ }
+}
+
+void WindowBaseWin::OnKeyDown( int type, TWinEventInfo *event )
+{
+ if( event->mWindow == mWin32Window )
+ {
+ DALI_LOG_INFO( gWindowBaseLogFilter, Debug::General, "WindowBaseWin::OnKeyDown\n" );
+
+ int keyCode = event->wParam;
+ std::string keyName( WindowsPlatformImplementation::GetKeyName( keyCode ) );
+ std::string keyString;
+ std::string emptyString;
+
+ int modifier( 0 );
+ unsigned long time( 0 );
+
+ // Ensure key event string is not NULL as keys like SHIFT have a null string.
+ keyString.push_back( event->wParam );
+
+ Integration::KeyEvent keyEvent( keyName, emptyString, keyString, keyCode, modifier, time, Integration::KeyEvent::Down, emptyString, emptyString, DEFAULT_DEVICE_CLASS, DEFAULT_DEVICE_SUBCLASS );
+
+ mKeyEventSignal.Emit( keyEvent );
+ }
+}
+
+void WindowBaseWin::OnKeyUp( int type, TWinEventInfo *event )
+{
+ if( event->mWindow == mWin32Window )
+ {
+ DALI_LOG_INFO( gWindowBaseLogFilter, Debug::General, "WindowBaseWin::OnKeyDown\n" );
+
+ int keyCode = event->wParam;
+ std::string keyName( WindowsPlatformImplementation::GetKeyName( keyCode ) );
+ std::string keyString;
+ std::string emptyString;
+
+ int modifier( 0 );
+ unsigned long time( 0 );
+
+ // Ensure key event string is not NULL as keys like SHIFT have a null string.
+ keyString.push_back( event->wParam );
+
+ Integration::KeyEvent keyEvent( keyName, emptyString, keyString, keyCode, modifier, time, Integration::KeyEvent::Down, emptyString, emptyString, DEFAULT_DEVICE_CLASS, DEFAULT_DEVICE_SUBCLASS );
+
+ mKeyEventSignal.Emit( keyEvent );
+ }
+}
+
+Any WindowBaseWin::GetNativeWindow()
+{
+ return mWin32Window;
+}
+
+int WindowBaseWin::GetNativeWindowId()
+{
+ return mWin32Window;
+}
+
+EGLNativeWindowType WindowBaseWin::CreateEglWindow( int width, int height )
+{
+ return reinterpret_cast< EGLNativeWindowType >( mWin32Window );
+}
+
+void WindowBaseWin::DestroyEglWindow()
+{
+}
+
+void WindowBaseWin::SetEglWindowRotation( int angle )
+{
+}
+
+void WindowBaseWin::SetEglWindowBufferTransform( int angle )
+{
+}
+
+void WindowBaseWin::SetEglWindowTransform( int angle )
+{
+}
+
+void WindowBaseWin::ResizeEglWindow( PositionSize positionSize )
+{
+}
+
+bool WindowBaseWin::IsEglWindowRotationSupported()
+{
+ return false;
+}
+
+void WindowBaseWin::Move( PositionSize positionSize )
+{
+}
+
+void WindowBaseWin::Resize( PositionSize positionSize )
+{
+}
+
+void WindowBaseWin::MoveResize( PositionSize positionSize )
+{
+}
+
+void WindowBaseWin::SetClass( const std::string& name, const std::string& className )
+{
+}
+
+void WindowBaseWin::Raise()
+{
+}
+
+void WindowBaseWin::Lower()
+{
+}
+
+void WindowBaseWin::Activate()
+{
+}
+
+void WindowBaseWin::SetAvailableOrientations( const std::vector< Dali::Window::WindowOrientation >& orientations )
+{
+}
+
+void WindowBaseWin::SetPreferredOrientation( Dali::Window::WindowOrientation orientation )
+{
+}
+
+void WindowBaseWin::SetAcceptFocus( bool accept )
+{
+}
+
+void WindowBaseWin::Show()
+{
+}
+
+void WindowBaseWin::Hide()
+{
+}
+
+unsigned int WindowBaseWin::GetSupportedAuxiliaryHintCount() const
+{
+ return 0;
+}
+
+std::string WindowBaseWin::GetSupportedAuxiliaryHint( unsigned int index ) const
+{
+ return std::string();
+}
+
+unsigned int WindowBaseWin::AddAuxiliaryHint( const std::string& hint, const std::string& value )
+{
+ return 0;
+}
+
+bool WindowBaseWin::RemoveAuxiliaryHint( unsigned int id )
+{
+ return false;
+}
+
+bool WindowBaseWin::SetAuxiliaryHintValue( unsigned int id, const std::string& value )
+{
+ return false;
+}
+
+std::string WindowBaseWin::GetAuxiliaryHintValue( unsigned int id ) const
+{
+ return std::string();
+}
+
+unsigned int WindowBaseWin::GetAuxiliaryHintId( const std::string& hint ) const
+{
+ return 0;
+}
+
+void WindowBaseWin::SetInputRegion( const Rect< int >& inputRegion )
+{
+}
+
+void WindowBaseWin::SetType( Dali::Window::Type type )
+{
+}
+
+bool WindowBaseWin::SetNotificationLevel( Dali::Window::NotificationLevel::Type level )
+{
+ return false;
+}
+
+Dali::Window::NotificationLevel::Type WindowBaseWin::GetNotificationLevel() const
+{
+ return Dali::Window::NotificationLevel::NONE;
+}
+
+void WindowBaseWin::SetOpaqueState( bool opaque )
+{
+}
+
+bool WindowBaseWin::SetScreenOffMode(Dali::Window::ScreenOffMode::Type screenOffMode)
+{
+ return false;
+}
+
+Dali::Window::ScreenOffMode::Type WindowBaseWin::GetScreenOffMode() const
+{
+ return Dali::Window::ScreenOffMode::TIMEOUT;
+}
+
+bool WindowBaseWin::SetBrightness( int brightness )
+{
+ return false;
+}
+
+int WindowBaseWin::GetBrightness() const
+{
+ return 0;
+}
+
+bool WindowBaseWin::GrabKey( Dali::KEY key, KeyGrab::KeyGrabMode grabMode )
+{
+ return false;
+}
+
+bool WindowBaseWin::UngrabKey( Dali::KEY key )
+{
+ return false;
+}
+
+bool WindowBaseWin::GrabKeyList( const Dali::Vector< Dali::KEY >& key, const Dali::Vector< KeyGrab::KeyGrabMode >& grabMode, Dali::Vector< bool >& result )
+{
+ return false;
+}
+
+bool WindowBaseWin::UngrabKeyList( const Dali::Vector< Dali::KEY >& key, Dali::Vector< bool >& result )
+{
+ return false;
+}
+
+void WindowBaseWin::GetDpi( unsigned int& dpiHorizontal, unsigned int& dpiVertical )
+{
+ // calculate DPI
+ float xres, yres;
+
+ //// 1 inch = 25.4 millimeters
+ WindowsPlatformImplementation::GetDPI( mWin32Window, xres, yres );
+
+ xres *= 1.5f;
+ yres *= 1.5f;
+
+ dpiHorizontal = static_cast<int>( xres + 0.5f ); // rounding
+ dpiVertical = static_cast<int>( yres + 0.5f );
+}
+
+int WindowBaseWin::GetScreenRotationAngle()
+{
+ return 0;
+}
+
+void WindowBaseWin::SetWindowRotationAngle( int degree )
+{
+}
+
+void WindowBaseWin::WindowRotationCompleted( int degree, int width, int height )
+{
+}
+
+void WindowBaseWin::SetTransparency( bool transparent )
+{
+}
+
+unsigned int WindowBaseWin::GetSurfaceId( Any surface ) const
+{
+ unsigned int surfaceId = 0;
+
+ if ( surface.Empty() == false )
+ {
+ // check we have a valid type
+ DALI_ASSERT_ALWAYS( (surface.GetType() == typeid ( WinWindowHandle ) )
+ && "Surface type is invalid" );
+
+ surfaceId = AnyCast< WinWindowHandle >( surface );
+ }
+ return surfaceId;
+}
+
+void WindowBaseWin::CreateWinWindow( PositionSize positionSize, bool isTransparent )
+{