1 #ifndef _WINDOWEVENTSYSTEM_H_
\r
2 #define _WINDOWEVENTSYSTEM_H_
\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
20 #define DEVICE_MOUSE 0
\r
22 // INTERNAL INCLUDES
\r
23 #include <dali/internal/window-system/windows/platform-implement-win.h>
\r
34 struct _Event_Mouse_Button
\r
36 WinWindowHandle window; /**< The main window where event happened */
\r
38 uint32_t timestamp; /**< Time when the event occurred */
\r
40 int32_t x; /**< x coordinate relative to window where event happened */
\r
41 int32_t y; /**< y coordinate relative to window where event happened */
\r
45 int32_t device; /**< 0 if normal mouse, 1+ for other mouse-devices (eg multi-touch - other fingers) */
\r
46 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
47 double pressure; /**< pressure - 1.0 == normal, > 1.0 == more, 0.0 == none */
\r
48 double angle; /**< angle relative to perpendicular (0.0 == perpendicular), in degrees */
\r
49 double x, y; /**< same as x, y, but with sub-pixel precision, if available */
\r
53 } root; /**< same as root.x, root.y, but with sub-pixel precision, if available */
\r
58 * @struct _Event_Mouse_Wheel
\r
59 * Contains information about an Windows mouse wheel event.
\r
61 struct _Event_Mouse_Wheel
\r
63 WinWindowHandle window; /**< The main window where event happened */
\r
64 WinWindowHandle root_window; /**< The root window where event happened */
\r
65 WinWindowHandle event_window; /**< The child window where event happened */
\r
67 uint32_t timestamp; /**< Time when the event occurred */
\r
68 uint32_t modifiers; /**< The combination of modifiers key (SHIFT,CTRL,ALT,..)*/
\r
70 int32_t direction; /**< Orientation of the wheel (horizontal/vertical) */
\r
71 int32_t z; /**< Value of the wheel event (+1/-1) */
\r
73 int32_t x; /**< x coordinate relative to window where event happened */
\r
74 int32_t y; /**< y coordinate relative to window where event happened */
\r
79 } root; /**< Coordinates relative to root window */
\r
82 typedef struct _Event_Mouse_Button Event_Mouse_Button;
\r
83 typedef struct _Event_Mouse_Wheel Event_Mouse_Wheel;
\r
85 struct TWinEventInfo
\r
87 TWinEventInfo( uint64_t hWnd, uint32_t uMsg, uint64_t wParam, uint64_t lParam)
\r
89 this->mWindow = (WinWindowHandle)hWnd;
\r
91 this->wParam = wParam;
\r
92 this->lParam = lParam;
\r
95 WinWindowHandle mWindow;
\r
101 } // namespace Adaptor
103 } // namespace internal
105 } // namespace Dali
\r