1 #ifndef __DALI_INTEGRATION_MULTI_POINT_EVENT_H__
2 #define __DALI_INTEGRATION_MULTI_POINT_EVENT_H__
5 * Copyright (c) 2014 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.
22 #include <dali/public-api/common/vector-wrapper.h>
23 #include <dali/integration-api/events/event.h>
24 #include <dali/public-api/events/touch-point.h>
26 namespace Dali DALI_IMPORT_API
33 * An instance of this structure should be used by the adaptor to send a multi-point event to Dali core.
35 * This class can contain one or multiple touch points. It also contains the time at which the
38 struct MultiPointEvent : public Event
40 // Construction & Destruction
46 virtual ~MultiPointEvent();
52 MultiPointEvent(Type eventType);
56 * @param[in] time The time the event occurred.
58 MultiPointEvent(Type eventType, unsigned long time);
64 * @copydoc Dali::MultiPointEvent::points
66 std::vector<TouchPoint> points;
69 * @copydoc Dali::MultiPointEvent::time
73 // Convenience Methods
76 * Adds a point to the MultiPointEvent.
77 * @param[in] point The point to add.
79 void AddPoint(const TouchPoint& point);
82 * @copydoc Dali::MultiPointEvent::GetPoint()
84 TouchPoint& GetPoint(unsigned int point);
87 * @copydoc Dali::MultiPointEvent::GetPoint()
89 const TouchPoint& GetPoint(unsigned int point) const;
92 * @copydoc Dali::MultiPointEvent::GetPointCount() const
94 unsigned int GetPointCount() const;
97 } // namespace Integration
101 #endif // __DALI_INTEGRATION_MULTI_POINT_EVENT_H__