Pepper_37_C++_interfaces
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
samsung
gesture_input_event_samsung.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2015 Samsung Electronics, Visual Display Division.
3
* All Rights Reserved.
4
*
5
* @author Pawel Panek <p.panek@samsung.com>
6
*
7
* Use of this source code is governed by a BSD-style license that can be
8
* found in the Chromium-LICENSE file.
9
*/
10
11
#ifndef PPAPI_CPP_SAMSUNG_GESTURE_INPUT_EVENT_SAMSUNG_H_
12
#define PPAPI_CPP_SAMSUNG_GESTURE_INPUT_EVENT_SAMSUNG_H_
13
14
#include "ppapi/c/samsung/ppb_gesture_input_event_samsung.h"
15
#include "ppapi/cpp/input_event.h"
16
17
/// @file
18
/// This file defines the API used to handle gesture input events.
19
20
namespace
pp {
21
22
class
GestureInputEventSamsung
:
public
InputEvent
{
23
public
:
24
/// Constructs an is_null() gesture input event object.
25
GestureInputEventSamsung
();
26
27
/// This constructor constructs a gesture input event object from the
28
/// provided generic input event. If the given event is itself
29
/// is_null() or is not a gesture input event, the gesture object will be
30
/// is_null().
31
///
32
/// @param[in] event A generic input event.
33
explicit
GestureInputEventSamsung
(
const
InputEvent
& event);
34
35
/// Constructs a gesture input even from the given parameters.
36
///
37
/// @param[in] instance The instance for which this event occured.
38
///
39
/// @param[in] type type A <code>PP_InputEvent_Type</code> identifying the type of
40
/// input event.
41
///
42
/// @param[in] time_stamp A <code>PP_TimeTicks</code> indicating the time
43
/// when the event occured.
44
///
45
/// @param[in] modifiers A bit field combination of the
46
/// <code>PP_InputEvent_Modifier</code> flags.
47
///
48
/// @param[in] gesture_type A <code>PP_Hand_Gesture_Type</code> identifying gesture.
49
GestureInputEventSamsung
(
const
InstanceHandle
& instance,
50
PP_InputEvent_Type type,
51
PP_TimeTicks time_stamp,
52
uint32_t modifiers,
53
PP_Gesture_Type gesture_type);
54
55
/// GetGestureType() returns the type of generated gesture event.
56
///
57
/// @return The gesture type associated with event. This
58
/// value will be <code>PP_GESTURETYPE_INVALID</code>
59
/// for all non-gesture events.
60
PP_Gesture_Type
GetGestureType
()
const
;
61
};
62
63
}
// namespace pp
64
65
#endif // PPAPI_CPP_SAMSUNG_GESTURE_INPUT_EVENT_SAMSUNG_H_
pp::GestureInputEventSamsung::GetGestureType
PP_Gesture_Type GetGestureType() const
pp::GestureInputEventSamsung
Definition:
gesture_input_event_samsung.h:22
pp::GestureInputEventSamsung::GestureInputEventSamsung
GestureInputEventSamsung()
Constructs an is_null() gesture input event object.
pp::InputEvent
Definition:
input_event.h:46
pp::InstanceHandle
Definition:
instance_handle.h:44
Generated on Wed May 4 2016 11:29:46 for Pepper_37_C++_interfaces by
1.8.6