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>
33 * An instance of this class should be used by the adaptor to send a wheel event to
37 struct DALI_CORE_API WheelEvent : public Event
42 * @brief Specifies the type of the wheel event.
46 MOUSE_WHEEL, ///< Mouse wheel event
47 CUSTOM_WHEEL ///< Custom wheel event
57 * @param[in] type The type of the wheel event
58 * @param[in] direction The direction of wheel rolling (0 = default vertical wheel, 1 = horizontal wheel)
59 * @param[in] modifiers modifier keys pressed during the event (such as shift, alt and control)
60 * @param[in] point The co-ordinates of the cursor relative to the top-left of the screen.
61 * @param[in] delta The offset of rolling (positive value means roll down, and negative value means roll up)
62 * @param[in] timeStamp The time the wheel is being rolled.
64 WheelEvent(Type type, int direction, unsigned int modifiers, Vector2 point, int delta, unsigned int timeStamp);
69 ~WheelEvent() override;
74 *@copydoc Dali::WheelEvent::GetType
79 *@copydoc Dali::WheelEvent::GetDrection
84 *@copydoc Dali::WheelEvent::GetModifiers
86 unsigned int modifiers;
89 *@copydoc Dali::WheelEvent::GetPoint
94 *@copydoc Dali::WheelEvent::GetDelta
99 *@copydoc Dali::WheelEvent::GetTime
101 unsigned int timeStamp;
104 } // namespace Integration
108 #endif // DALI_INTEGRATION_WHEEL_EVENT_H