1 #ifndef _WINDOWEVENTSYSTEM_H_
\r
2 #define _WINDOWEVENTSYSTEM_H_
\r
5 * Copyright (c) 2021 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
20 #define DEVICE_MOUSE 0
\r
22 // INTERNAL INCLUDES
\r
23 #include <dali/internal/window-system/windows/platform-implement-win.h>
\r
31 struct _Event_Mouse_Button
\r
33 WinWindowHandle window; /**< The main window where event happened */
\r
35 uint32_t timestamp; /**< Time when the event occurred */
\r
37 int32_t x; /**< x coordinate relative to window where event happened */
\r
38 int32_t y; /**< y coordinate relative to window where event happened */
\r
42 int32_t device; /**< 0 if normal mouse, 1+ for other mouse-devices (eg multi-touch - other fingers) */
\r
43 double radius, radius_x, radius_y; /**< radius of press point - radius_x and y if its an ellipse (radius is the average of the 2) */
\r
44 double pressure; /**< pressure - 1.0 == normal, > 1.0 == more, 0.0 == none */
\r
45 double angle; /**< angle relative to perpendicular (0.0 == perpendicular), in degrees */
\r
46 double x, y; /**< same as x, y, but with sub-pixel precision, if available */
\r
50 } root; /**< same as root.x, root.y, but with sub-pixel precision, if available */
\r
55 * @struct _Event_Mouse_Wheel
\r
56 * Contains information about an Windows mouse wheel event.
\r
58 struct _Event_Mouse_Wheel
\r
60 WinWindowHandle window; /**< The main window where event happened */
\r
61 WinWindowHandle root_window; /**< The root window where event happened */
\r
62 WinWindowHandle event_window; /**< The child window where event happened */
\r
64 uint32_t timestamp; /**< Time when the event occurred */
\r
65 uint32_t modifiers; /**< The combination of modifiers key (SHIFT,CTRL,ALT,..)*/
\r
67 int32_t direction; /**< Orientation of the wheel (horizontal/vertical) */
\r
68 int32_t z; /**< Value of the wheel event (+1/-1) */
\r
70 int32_t x; /**< x coordinate relative to window where event happened */
\r
71 int32_t y; /**< y coordinate relative to window where event happened */
\r
76 } root; /**< Coordinates relative to root window */
\r
79 typedef struct _Event_Mouse_Button Event_Mouse_Button;
\r
80 typedef struct _Event_Mouse_Wheel Event_Mouse_Wheel;
\r
82 struct TWinEventInfo
\r
84 TWinEventInfo(uint64_t hWnd, uint32_t uMsg, uint64_t wParam, uint64_t lParam)
\r
86 this->mWindow = (WinWindowHandle)hWnd;
\r
88 this->wParam = wParam;
\r
89 this->lParam = lParam;
\r
92 WinWindowHandle mWindow;
\r
98 } // namespace Adaptor
\r
100 } // namespace Internal
\r
102 } // namespace Dali
\r