Pepper_47_C_interfaces
Public Attributes | List of all members
PPB_TouchInputEvent_1_0 Struct Reference

#include <ppb_input_event.h>

Collaboration diagram for PPB_TouchInputEvent_1_0:
Collaboration graph

Public Attributes

PP_Resource(* Create )(PP_Instance instance, PP_InputEvent_Type type, PP_TimeTicks time_stamp, uint32_t modifiers)
 
void(* AddTouchPoint )(PP_Resource touch_event, PP_TouchListType list, const struct PP_TouchPoint *point)
 
PP_Bool(* IsTouchInputEvent )(PP_Resource resource)
 
uint32_t(* GetTouchCount )(PP_Resource resource, PP_TouchListType list)
 
struct PP_TouchPoint(* GetTouchByIndex )(PP_Resource resource, PP_TouchListType list, uint32_t index)
 
struct PP_TouchPoint(* GetTouchById )(PP_Resource resource, PP_TouchListType list, uint32_t touch_id)
 

Detailed Description

The PPB_TouchInputEvent interface contains pointers to several functions related to touch events.

Definition at line 827 of file ppb_input_event.h.

Member Data Documentation

void(* PPB_TouchInputEvent_1_0::AddTouchPoint)(PP_Resource touch_event, PP_TouchListType list, const struct PP_TouchPoint *point)

Adds a touch point to the touch event in the specified touch-list.

Parameters
[in]touch_eventA PP_Resource corresponding to a touch event.
[in]listThe list to add the touch point to.
[in]pointThe point to add to the list.

Definition at line 864 of file ppb_input_event.h.

PP_Resource(* PPB_TouchInputEvent_1_0::Create)(PP_Instance instance, PP_InputEvent_Type type, PP_TimeTicks time_stamp, uint32_t modifiers)

Creates a touch input event with the given parameters. Normally you will get a touch event passed through the HandleInputEvent and will not need to create them, but some applications may want to create their own for internal use. The type must be one of the touch event types. This newly created touch input event does not have any touch point in any of the touch-point lists. AddTouchPoint should be called to add the touch-points.

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.
Returns
A PP_Resource containing the new touch input event.

Definition at line 850 of file ppb_input_event.h.

struct PP_TouchPoint(* PPB_TouchInputEvent_1_0::GetTouchById)(PP_Resource resource, PP_TouchListType list, uint32_t touch_id)

Returns the touch-point with the specified touch-id in the specified list.

Parameters
[in]resourceA PP_Resource corresponding to a touch event.
[in]listThe list.
[in]touch_idThe id of the touch-point.
Returns
A PP_TouchPoint representing the touch-point.

Definition at line 914 of file ppb_input_event.h.

struct PP_TouchPoint(* PPB_TouchInputEvent_1_0::GetTouchByIndex)(PP_Resource resource, PP_TouchListType list, uint32_t index)

Returns the touch-point at the specified index from the specified list.

Parameters
[in]resourceA PP_Resource corresponding to a touch event.
[in]listThe list.
[in]indexThe index.
Returns
A PP_TouchPoint representing the touch-point.

Definition at line 899 of file ppb_input_event.h.

uint32_t(* PPB_TouchInputEvent_1_0::GetTouchCount)(PP_Resource resource, PP_TouchListType list)

Returns the number of touch-points in the specified list.

Parameters
[in]resourceA PP_Resource corresponding to a touch event.
[in]listThe list.
Returns
The number of touch-points in the specified list.

Definition at line 886 of file ppb_input_event.h.

PP_Bool(* PPB_TouchInputEvent_1_0::IsTouchInputEvent)(PP_Resource resource)

IsTouchInputEvent() determines if a resource is a touch event.

Parameters
[in]resourceA PP_Resource corresponding to an event.
Returns
PP_TRUE if the given resource is a valid touch input event, otherwise PP_FALSE.

Definition at line 875 of file ppb_input_event.h.


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