[M67 Dev][API] Switch ewk_export.h with tizen.h
[platform/framework/web/chromium-efl.git] / tizen_src / ewk / efl_integration / public / ewk_touch.h
1 // Copyright 2012 Samsung Electronics. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef ewk_touch_h
6 #define ewk_touch_h
7
8 #include <Evas.h>
9
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13
14 /// Represents types of touch event.
15 typedef enum {
16     EWK_TOUCH_START,
17     EWK_TOUCH_MOVE,
18     EWK_TOUCH_END,
19     EWK_TOUCH_CANCEL
20 } Ewk_Touch_Event_Type;
21
22 /// Creates a type name for Ewk_Touch_Point.
23 typedef struct _Ewk_Touch_Point Ewk_Touch_Point;
24
25 /// Represents a touch point.
26 struct _Ewk_Touch_Point {
27     int id; /**< identifier of the touch event */
28     int x; /**< the horizontal position of the touch event */
29     int y; /**< the vertical position of the touch event */
30     Evas_Touch_Point_State state; /**< state of the touch event */
31 };
32
33 #ifdef __cplusplus
34 }
35 #endif
36
37 #endif // ewk_touch_h