Dali 3D User Interface Engine
multi-point-event-integ.h
Go to the documentation of this file.
1 #ifndef __DALI_INTEGRATION_MULTI_POINT_EVENT_H__
2 #define __DALI_INTEGRATION_MULTI_POINT_EVENT_H__
3 
4 /*
5  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
6  *
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
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
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.
18  *
19  */
20 
21 // INTERNAL INCLUDES
25 
26 namespace Dali DALI_IMPORT_API
27 {
28 
29 namespace Integration
30 {
31 
38 struct MultiPointEvent : public Event
39 {
40  // Construction & Destruction
41 
42 public:
46  virtual ~MultiPointEvent();
47 
48 protected:
52  MultiPointEvent(Type eventType);
53 
58  MultiPointEvent(Type eventType, unsigned long time);
59 
60 public:
61  // Data
62 
66  std::vector<TouchPoint> points;
67 
71  unsigned long time;
72 
73  // Convenience Methods
74 
79  void AddPoint(const TouchPoint& point);
80 
84  TouchPoint& GetPoint(unsigned int point);
85 
89  const TouchPoint& GetPoint(unsigned int point) const;
90 
94  unsigned int GetPointCount() const;
95 };
96 
97 } // namespace Integration
98 
99 } // namespace Dali
100 
101 #endif // __DALI_INTEGRATION_MULTI_POINT_EVENT_H__
Dali Docs Home
Read more about Dali