/*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2020 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
}
else
{
- // XLib should already be initialized so no point in calling XInitThreads
- mWin32Window = static_cast< WinWindowHandle >( surfaceId );
+ SetWinWindow( surfaceId );
}
mWindowImpl.SetListener( MakeCallback( this, &WindowBaseWin::EventEntry ) );
{
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 );
+ Integration::WheelEvent wheelEvent( Integration::WheelEvent::MOUSE_WHEEL, mouseWheelEvent.direction, mouseWheelEvent.modifiers, Vector2( mouseWheelEvent.x, mouseWheelEvent.y ), mouseWheelEvent.z, mouseWheelEvent.timestamp );
mWheelEventSignal.Emit( wheelEvent );
}
{
long hWnd = mWindowImpl.CreateHwnd( "Demo", "Demo", positionSize.x, positionSize.y, positionSize.width, positionSize.height, NULL );
- mWin32Window = (WinWindowHandle)hWnd;
+ mWin32Window = static_cast<WinWindowHandle>(hWnd);
+
DALI_ASSERT_ALWAYS( mWin32Window != 0 && "There is no Windows window" );
}
+void WindowBaseWin::SetWinWindow( unsigned int surfaceId )
+{
+ HWND hWnd = (HWND)surfaceId;
+
+ mWin32Window = static_cast<WinWindowHandle>(surfaceId);
+
+ mWindowImpl.SetHWND( reinterpret_cast<uint64_t>(hWnd));
+
+ mWindowImpl.SetWinProc();
+}
+
void WindowBaseWin::EventEntry( TWinEventInfo *event )
{
unsigned int uMsg = event->uMsg;
}
+int WindowBaseWin::CreateFrameRenderedSyncFence()
+{
+ return -1;
+}
+
+int WindowBaseWin::CreateFramePresentedSyncFence()
+{
+ return -1;
+}
+
} // namespace Adaptor
} // namespace Internal