X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fwindow-system%2Fwindows%2Fplatform-implement-win.h;h=51e40f8c7f249a52e181b5111e7f1a72fb026f72;hb=819c4738b2f54c49e0299f7ff04d9b46e817aa78;hp=383d9a2ceb1623c01333336de73808d1a2a46eef;hpb=9fb0d5311ad49748b5c0cbab43c7e9fb6d98f44f;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/internal/window-system/windows/platform-implement-win.h b/dali/internal/window-system/windows/platform-implement-win.h index 383d9a2..51e40f8 100755 --- a/dali/internal/window-system/windows/platform-implement-win.h +++ b/dali/internal/window-system/windows/platform-implement-win.h @@ -1,104 +1,98 @@ #ifndef PLATFORM_IMPLEMENT_WIN_INCLUDE #define PLATFORM_IMPLEMENT_WIN_INCLUDE -/* -* Copyright (c) 2018 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. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -* +/* +* Copyright (c) 2018 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. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +* */ // EXTERNAL_HEADERS #include #include -typedef bool Eina_Bool; +typedef uint64_t WinWindowHandle; +typedef uint64_t WinPixmap; -typedef unsigned int winWindow; -typedef unsigned int Win_Window_Handle; -typedef unsigned int WinPixmap; +namespace Dali +{ -namespace Dali -{ - -namespace Internal -{ - -namespace Adaptor -{ +namespace Internal +{ -namespace WindowsPlatformImplement +namespace Adaptor { -void RunLoop(); +namespace WindowsPlatformImplementation +{ -void SetParent(long child, long parent); +void RunLoop(); int GetEdgeHeight(); -long CreateHwnd( +int GetColorDepth(); + +uint64_t CreateHwnd( _In_opt_ const char *lpClassName, _In_opt_ const char *lpWindowName, _In_ int X, _In_ int Y, _In_ int nWidth, _In_ int nHeight, - _In_opt_ long parent); - -typedef void (*winEventCallback)(long hWnd, unsigned int uMsg, long wParam, long lParam); - -void RemoveListener(int msgType); + _In_opt_ uint64_t parent); -void AddListener( winEventCallback callback ); -void AddListener( int msgType, Dali::CallbackBase *callback ); +void SetListener( CallbackBase *callback ); bool PostWinMessage( - _In_ unsigned int Msg, - _In_ long wParam, - _In_ long lParam, - _In_ long hWnd = 0); + _In_ uint32_t Msg, + _In_ uint32_t wParam, + _In_ uint64_t lParam, + _In_ uint64_t hWnd); -void ShowWindow(long hWnd); -void HideWindow(long hWnd); +bool PostWinThreadMessage( + _In_ uint32_t Msg, + _In_ uint32_t wParam, + _In_ uint64_t lParam, + _In_ uint64_t threadID = -1 ); -long CreateWinSemaphore(_In_ long lInitialCount, _In_ long lMaximumCount); +void ShowWindow( uint64_t hWnd ); +void HideWindow( uint64_t hWnd ); -unsigned long WaitForSingleObject(_In_ long hHandle, _In_ unsigned long dwMilliseconds); - -bool ReleaseSemaphore(_In_ long hSemaphore, _In_ long lReleaseCount, _Out_opt_ long *lpPreviousCount); - -typedef void(*timerCallback)(void *data); +using timerCallback = bool(*)(void *data); int SetTimer(int interval, timerCallback callback, void *data); void KillTimer(int id); -void GetDPI( float &xDpi, float &yDpi ); +void GetDPI( uint64_t hWnd, float &xDpi, float &yDpi ); + +int GetOrientation() const; const char* GetKeyName( int keyCode ); -long GetCurrentThreadId(); +uint64_t GetCurrentThreadId(); void GetNanoseconds( uint64_t& timeInNanoseconds ); unsigned int GetCurrentMilliSeconds( void ); -} // namespace WindowsPlatformImplement - -} // namespace Adaptor - -} // namespace internal - -} // namespace Dali - +} // namespace WindowsPlatformImplement + +} // namespace Adaptor + +} // namespace internal + +} // namespace Dali + #endif // WIN32_WINDOWS_SYSTEM_INCLUDE