Pepper_37_C_interfaces
ppb_gesture_input_event_samsung.h
Go to the documentation of this file.
1 /* Copyright (c) 2015 Samsung Electronics. All rights reserved.
2  */
3 
4 /* From samsung/ppb_gesture_input_event_samsung.idl,
5  * modified Thu Mar 5 09:49:54 2015.
6  */
7 
8 #ifndef PPAPI_C_SAMSUNG_PPB_GESTURE_INPUT_EVENT_SAMSUNG_H_
9 #define PPAPI_C_SAMSUNG_PPB_GESTURE_INPUT_EVENT_SAMSUNG_H_
10 
11 #include "ppapi/c/pp_bool.h"
12 #include "ppapi/c/pp_instance.h"
13 #include "ppapi/c/pp_macros.h"
14 #include "ppapi/c/pp_resource.h"
15 #include "ppapi/c/pp_stdint.h"
16 #include "ppapi/c/pp_time.h"
17 #include "ppapi/c/ppb_input_event.h"
18 
19 #define PPB_GESTUREINPUTEVENT_SAMSUNG_INTERFACE_0_1 \
20  "PPB_GestureInputEvent_Samsung;0.1"
21 #define PPB_GESTUREINPUTEVENT_SAMSUNG_INTERFACE \
22  PPB_GESTUREINPUTEVENT_SAMSUNG_INTERFACE_0_1
23 
24 /**
25  * @file
26  * This file defines the <code>PPB_GestureInputEvent_Samsung</code> interface.
27  */
28 
29 
30 /**
31  * @addtogroup Enums
32  * @{
33  */
34 /**
35  * Hand gesture types.
36  */
37 typedef enum {
61 /**
62  * @}
63  */
64 
65 /**
66  * @addtogroup Interfaces
67  * @{
68  */
69 /**
70  * The <code>PPB_GestureInputEvent_Samsung</code> interface allows handling
71  gesture events.
72  */
74  /**
75  * Creates a hand gesture input event. Normally
76  * you will get a hand gesture event passed through the
77  * <code>HandleInputEvent</code> and will not need to create them, but some
78  * applications may want to create their own for internal use. The type must
79  * be one of the gesture event types.
80  *
81  * @param[in] instance The instance for which this event occurred.
82  *
83  * @param[in] type A <code>PP_InputEvent_Type</code> identifying the type of
84  * input event.
85  *
86  * @param[in] time_stamp A <code>PP_TimeTicks</code> indicating the time
87  * when the event occurred.
88  *
89  * @param[in] modifiers A bit field combination of the
90  * <code>PP_InputEvent_Modifier</code> flags.
91  *
92  * @param[in] gesture_type A <code>PP_Hand_Gesture_Type</code> identifying
93  gesture.
94  *
95  * @return A <code>PP_Resource</code> corresponding to a hand gesture
96  * input event if successful, 0 if failed.
97  */
99  PP_InputEvent_Type type,
100  PP_TimeTicks time_stamp,
101  uint32_t modifiers,
102  PP_Gesture_Type gesture_type);
103  /**
104  * Determines if the given resource is a gesture event.
105  *
106  * @param[in] resource A <code>PP_Resource</code> containing a resource.
107  *
108  * @return A <code>PP_Bool</code> containing <code>PP_TRUE</code> if the given
109  * resource is a gesture event, otherwise <code>PP_FALSE</code>.
110  */
112  /**
113  * GetGestureType() returns the type of generated gesture event.
114  *
115  * @param[in] gesture_event A <code>PP_Resource</code> corresponding to a
116  * gesture event.
117  *
118  * @return The gesture type associated with event. This
119  * value will be <code>PP_GESTURETYPE_INVALID</code>
120  * for all non-gesture events.
121  */
123 };
124 
126 /**
127  * @}
128  */
129 
130 #endif /* PPAPI_C_SAMSUNG_PPB_GESTURE_INPUT_EVENT_SAMSUNG_H_ */
131 
int32_t PP_Resource
Definition: pp_resource.h:40
PP_Bool(* IsGestureInputEvent)(PP_Resource resource)
double PP_TimeTicks
Definition: pp_time.h:42
int32_t PP_Instance
Definition: pp_instance.h:34
PP_Gesture_Type(* GetGestureType)(PP_Resource gesture_event)
PP_Bool
Definition: pp_bool.h:30
PP_InputEvent_Type
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_Gesture_Type, 4)
PP_Resource(* Create)(PP_Instance instance, PP_InputEvent_Type type, PP_TimeTicks time_stamp, uint32_t modifiers, PP_Gesture_Type gesture_type)