void WindowBaseWin::OnWindowDamaged( int type, TWinEventInfo *event )
{
- Event_Mouse_Button* windowDamagedEvent( (Event_Mouse_Button*)event );\r
-\r
- if( windowDamagedEvent->window == mWin32Window )\r
- {\r
- DamageArea area;\r
- area.x = 0;\r
- area.y = 0;\r
- WindowSystem::GetScreenSize( area.width, area.height );\r
-\r
- mWindowDamagedSignal.Emit( area );\r
- }\r
+ Event_Mouse_Button* windowDamagedEvent( (Event_Mouse_Button*)event );
+
+ if( windowDamagedEvent->window == mWin32Window )
+ {
+ DamageArea area;
+ area.x = 0;
+ area.y = 0;
+ WindowSystem::GetScreenSize( area.width, area.height );
+
+ mWindowDamagedSignal.Emit( area );
+ }
}
void WindowBaseWin::OnMouseButtonDown( int type, TWinEventInfo *event )
{
Event_Mouse_Button touchEvent = *((Event_Mouse_Button*)event);
touchEvent.timestamp = GetTickCount();
- touchEvent.x = LOWORD( event->lParam );\r
- touchEvent.y = HIWORD( event->lParam );\r
+ touchEvent.x = LOWORD( event->lParam );
+ touchEvent.y = HIWORD( event->lParam );
touchEvent.multi.device = DEVICE_MOUSE;
if( touchEvent.window == mWin32Window )
{
Event_Mouse_Button touchEvent = *( (Event_Mouse_Button*)event );
touchEvent.timestamp = GetTickCount();
- touchEvent.x = LOWORD( event->lParam );\r
- touchEvent.y = HIWORD( event->lParam );\r
+ touchEvent.x = LOWORD( event->lParam );
+ touchEvent.y = HIWORD( event->lParam );
touchEvent.multi.device = DEVICE_MOUSE;
if( touchEvent.window == mWin32Window )
{
Event_Mouse_Button touchEvent = *((Event_Mouse_Button*)event);
touchEvent.timestamp = GetTickCount();
- touchEvent.x = LOWORD( event->lParam );\r
- touchEvent.y = HIWORD( event->lParam );\r
+ touchEvent.x = LOWORD( event->lParam );
+ touchEvent.y = HIWORD( event->lParam );
touchEvent.multi.device = DEVICE_MOUSE;
if( touchEvent.window == mWin32Window )
{
}
+int WindowBaseWin::GetWindowRotationAngle()
+{
+}
+
void WindowBaseWin::WindowRotationCompleted( int degree, int width, int height )
{
}
{
}
+int WindowBaseWin::GetOrientation() const
+{
+}
+
unsigned int WindowBaseWin::GetSurfaceId( Any surface ) const
{
unsigned int surfaceId = 0;
void WindowBaseWin::CreateWinWindow( PositionSize positionSize, bool isTransparent )
{
- long hWnd = WindowsPlatformImplementation::CreateHwnd( "Demo", "Demo", positionSize.x, positionSize.y, positionSize.width, positionSize.height, NULL );\r
-\r
- WindowsPlatformImplementation::ShowWindow( hWnd );\r
-\r
- mWin32Window = (WinWindowHandle)hWnd;\r
+ long hWnd = WindowsPlatformImplementation::CreateHwnd( "Demo", "Demo", positionSize.x, positionSize.y, positionSize.width, positionSize.height, NULL );
+
+ WindowsPlatformImplementation::ShowWindow( hWnd );
+
+ mWin32Window = (WinWindowHandle)hWnd;
DALI_ASSERT_ALWAYS( mWin32Window != 0 && "There is no Windows window" );
}
{
unsigned int uMsg = event->uMsg;
- switch( uMsg )\r
- {\r
- case WM_SETFOCUS:\r
- {\r
- OnFocusIn( uMsg, event );\r
- break;\r
- }\r
-\r
- case WM_KILLFOCUS:\r
- {\r
- OnFocusOut( uMsg, event );\r
- break;\r
- }\r
-\r
- case WM_PAINT:\r
- {\r
- OnWindowDamaged( uMsg, event );\r
- break;\r
- }\r
-\r
- case WM_LBUTTONDOWN:\r
- {\r
- OnMouseButtonDown( uMsg, event );\r
- break;\r
- }\r
-\r
- case WM_LBUTTONUP:\r
- {\r
- OnMouseButtonUp( uMsg, event );\r
- break;\r
- }\r
-\r
- case WM_MOUSEMOVE:\r
- {\r
- OnMouseButtonMove( uMsg, event );\r
- break;\r
- }\r
-\r
- case WM_MOUSEWHEEL:\r
- {\r
- OnMouseWheel( uMsg, event );\r
- break;\r
- }\r
-\r
- case WM_KEYDOWN:\r
- {\r
- OnKeyDown( uMsg, event );\r
- break;\r
- }\r
-\r
- case WM_KEYUP:\r
- {\r
- OnKeyUp( uMsg, event );\r
- break;\r
- }\r
-\r
+ switch( uMsg )
+ {
+ case WM_SETFOCUS:
+ {
+ OnFocusIn( uMsg, event );
+ break;
+ }
+
+ case WM_KILLFOCUS:
+ {
+ OnFocusOut( uMsg, event );
+ break;
+ }
+
+ case WM_PAINT:
+ {
+ OnWindowDamaged( uMsg, event );
+ break;
+ }
+
+ case WM_LBUTTONDOWN:
+ {
+ OnMouseButtonDown( uMsg, event );
+ break;
+ }
+
+ case WM_LBUTTONUP:
+ {
+ OnMouseButtonUp( uMsg, event );
+ break;
+ }
+
+ case WM_MOUSEMOVE:
+ {
+ OnMouseButtonMove( uMsg, event );
+ break;
+ }
+
+ case WM_MOUSEWHEEL:
+ {
+ OnMouseWheel( uMsg, event );
+ break;
+ }
+
+ case WM_KEYDOWN:
+ {
+ OnKeyDown( uMsg, event );
+ break;
+ }
+
+ case WM_KEYUP:
+ {
+ OnKeyUp( uMsg, event );
+ break;
+ }
+
default:
- break;\r
+ break;
}
}
+void WindowBaseWin::SetParent( Any parent )
+{
+
+}
+
+bool WindowBaseWin::IsMatchedWindow( Any window )
+{
+ return false;
+}
+
} // namespace Adaptor
} // namespace Internal