1 #ifndef PLATFORM_IMPLEMENT_WIN_INCLUDE
\r
2 #define PLATFORM_IMPLEMENT_WIN_INCLUDE
\r
5 * Copyright (c) 2018 Samsung Electronics Co., Ltd.
\r
7 * Licensed under the Apache License, Version 2.0 (the "License");
\r
8 * you may not use this file except in compliance with the License.
\r
9 * You may obtain a copy of the License at
\r
11 * http://www.apache.org/licenses/LICENSE-2.0
\r
13 * Unless required by applicable law or agreed to in writing, software
\r
14 * distributed under the License is distributed on an "AS IS" BASIS,
\r
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
16 * See the License for the specific language governing permissions and
\r
17 * limitations under the License.
\r
23 #include <dali/public-api/signals/callback.h>
\r
25 typedef uintptr_t WinWindowHandle;
\r
26 typedef uint64_t WinPixmap;
\r
37 namespace WindowsPlatformImplementation
\r
40 bool PostWinThreadMessage(
\r
42 _In_ uint64_t wParam,
\r
43 _In_ uint64_t lParam,
\r
44 _In_ uint64_t threadID = -1 );
\r
46 using timerCallback = bool(*)(void *data);
\r
48 intptr_t SetTimer(int interval, timerCallback callback, void *data);
\r
50 void KillTimer(intptr_t id);
\r
52 const char* GetKeyName( int keyCode );
\r
54 uint64_t GetCurrentThreadId();
\r
56 void GetNanoseconds( uint64_t& timeInNanoseconds );
\r
58 unsigned int GetCurrentMilliSeconds( void );
\r
65 virtual ~WindowImpl();
\r
67 static void ProcWinMessage( uint64_t hWnd, uint32_t uMsg, uint64_t wParam, uint64_t lParam );
\r
69 void GetDPI( float &xDpi, float &yDpi );
\r
71 int GetColorDepth();
\r
73 uint64_t CreateHwnd(
\r
74 _In_opt_ const char *lpClassName,
\r
75 _In_opt_ const char *lpWindowName,
\r
80 _In_opt_ uint64_t parent );
\r
82 void SetListener( CallbackBase *callback );
\r
84 bool PostWinMessage(
\r
86 _In_ uint64_t wParam,
\r
87 _In_ uint64_t lParam );
\r
89 int32_t GetEdgeWidth();
\r
91 int32_t GetEdgeHeight();
\r
93 void SetHWND(uint64_t inHWnd);
\r
100 unsigned long windowStyle;
\r
106 CallbackBase *listener;
\r
109 } // namespace WindowsPlatformImplement
\r
111 } // namespace Adaptor
\r
113 } // namespace internal
\r
115 } // namespace Dali
\r
117 #endif // WIN32_WINDOWS_SYSTEM_INCLUDE
\r