1 #ifndef DALI_INTEGRATION_WHEEL_EVENT_H
2 #define DALI_INTEGRATION_WHEEL_EVENT_H
5 * Copyright (c) 2020 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
25 #include <dali/integration-api/events/event.h>
26 #include <dali/public-api/math/vector2.h>
35 * An instance of this class should be used by the adaptor to send a wheel event to
39 struct DALI_CORE_API WheelEvent : public Event
44 * @brief Specifies the type of the wheel event.
48 MOUSE_WHEEL, ///< Mouse wheel event
49 CUSTOM_WHEEL ///< Custom wheel event
59 * @param[in] type The type of the wheel event
60 * @param[in] direction The direction of wheel rolling (0 = default vertical wheel, 1 = horizontal wheel)
61 * @param[in] modifiers modifier keys pressed during the event (such as shift, alt and control)
62 * @param[in] point The co-ordinates of the cursor relative to the top-left of the screen.
63 * @param[in] delta The offset of rolling (positive value means roll down, and negative value means roll up)
64 * @param[in] timeStamp The time the wheel is being rolled.
66 WheelEvent( Type type, int direction, unsigned int modifiers, Vector2 point, int delta, unsigned int timeStamp );
71 virtual ~WheelEvent();
76 *@copydoc Dali::WheelEvent::GetType
81 *@copydoc Dali::WheelEvent::GetDrection
86 *@copydoc Dali::WheelEvent::GetModifiers
88 unsigned int modifiers;
91 *@copydoc Dali::WheelEvent::GetPoint
96 *@copydoc Dali::WheelEvent::GetDelta
101 *@copydoc Dali::WheelEvent::GetTime
103 unsigned int timeStamp;
107 } // namespace Integration
111 #endif // DALI_INTEGRATION_WHEEL_EVENT_H