Pepper_42_C++_interfaces
Public Member Functions | List of all members
pp::TouchInputEvent Class Reference

#include <input_event.h>

Inheritance diagram for pp::TouchInputEvent:
Inheritance graph
Collaboration diagram for pp::TouchInputEvent:
Collaboration graph

Public Member Functions

 TouchInputEvent ()
 Constructs an is_null() touch input event object. More...
 
 TouchInputEvent (const InputEvent &event)
 
 TouchInputEvent (const InstanceHandle &instance, PP_InputEvent_Type type, PP_TimeTicks time_stamp, uint32_t modifiers)
 
void AddTouchPoint (PP_TouchListType list, PP_TouchPoint point)
 Adds the touch-point to the specified TouchList. More...
 
uint32_t GetTouchCount (PP_TouchListType list) const
 
TouchPoint GetTouchByIndex (PP_TouchListType list, uint32_t index) const
 
TouchPoint GetTouchById (PP_TouchListType list, uint32_t id) const
 
- Public Member Functions inherited from pp::InputEvent
 InputEvent ()
 Default constructor that creates an is_null() InputEvent object. More...
 
 InputEvent (PP_Resource input_event_resource)
 
 ~InputEvent ()
 
PP_InputEvent_Type GetType () const
 
PP_TimeTicks GetTimeStamp () const
 
uint32_t GetModifiers () const
 
- Public Member Functions inherited from pp::Resource
 Resource ()
 The default constructor. More...
 
 Resource (const Resource &other)
 
virtual ~Resource ()
 Destructor. More...
 
Resourceoperator= (const Resource &other)
 
bool is_null () const
 
PP_Resource pp_resource () const
 
PP_Resource detach ()
 

Additional Inherited Members

- Protected Member Functions inherited from pp::Resource
 Resource (PP_Resource resource)
 
 Resource (PassRef, PP_Resource resource)
 
void PassRefFromConstructor (PP_Resource resource)
 
void Clear ()
 Sets this resource to null. This releases ownership of the resource. More...
 

Detailed Description

Definition at line 340 of file input_event.h.

Constructor & Destructor Documentation

pp::TouchInputEvent::TouchInputEvent ( )

Constructs an is_null() touch input event object.

pp::TouchInputEvent::TouchInputEvent ( const InputEvent event)
explicit

Constructs a touch input event object from the given generic input event. If the given event is itself is_null() or is not a touch input event, the touch object will be is_null().

pp::TouchInputEvent::TouchInputEvent ( const InstanceHandle instance,
PP_InputEvent_Type  type,
PP_TimeTicks  time_stamp,
uint32_t  modifiers 
)

Constructs a touch input even from the given parameters.

Parameters
[in]instanceThe instance for which this event occurred.
[in]typeA PP_InputEvent_Type identifying the type of input event.
[in]time_stampA PP_TimeTicks indicating the time when the event occurred.
[in]modifiersA bit field combination of the PP_InputEvent_Modifier flags.

Member Function Documentation

void pp::TouchInputEvent::AddTouchPoint ( PP_TouchListType  list,
PP_TouchPoint  point 
)

Adds the touch-point to the specified TouchList.

TouchPoint pp::TouchInputEvent::GetTouchById ( PP_TouchListType  list,
uint32_t  id 
) const
Returns
The TouchPoint in the given list with the given identifier, or an empty TouchPoint if the list does not contain a TouchPoint with that identifier.
TouchPoint pp::TouchInputEvent::GetTouchByIndex ( PP_TouchListType  list,
uint32_t  index 
) const
Returns
The TouchPoint at the given index of the given list, or an empty TouchPoint if the index is out of range.
uint32_t pp::TouchInputEvent::GetTouchCount ( PP_TouchListType  list) const
Returns
The number of TouchPoints in this TouchList.

The documentation for this class was generated from the following file: