Pepper_31_C_interfaces
Classes | Macros | Typedefs | Enumerations | Functions
ppb_input_event.h File Reference
#include "ppapi/c/pp_bool.h"
#include "ppapi/c/pp_instance.h"
#include "ppapi/c/pp_macros.h"
#include "ppapi/c/pp_point.h"
#include "ppapi/c/pp_resource.h"
#include "ppapi/c/pp_stdint.h"
#include "ppapi/c/pp_time.h"
#include "ppapi/c/pp_touch_point.h"
#include "ppapi/c/pp_var.h"
Include dependency graph for ppb_input_event.h:

Go to the source code of this file.

Classes

struct  PPB_InputEvent_1_0
 
struct  PPB_MouseInputEvent_1_1
 
struct  PPB_MouseInputEvent_1_0
 
struct  PPB_WheelInputEvent_1_0
 
struct  PPB_KeyboardInputEvent_1_0
 
struct  PPB_TouchInputEvent_1_0
 
struct  PPB_IMEInputEvent_1_0
 

Macros

#define PPB_INPUT_EVENT_INTERFACE_1_0   "PPB_InputEvent;1.0"
 
#define PPB_INPUT_EVENT_INTERFACE   PPB_INPUT_EVENT_INTERFACE_1_0
 
#define PPB_MOUSE_INPUT_EVENT_INTERFACE_1_0   "PPB_MouseInputEvent;1.0"
 
#define PPB_MOUSE_INPUT_EVENT_INTERFACE_1_1   "PPB_MouseInputEvent;1.1"
 
#define PPB_MOUSE_INPUT_EVENT_INTERFACE   PPB_MOUSE_INPUT_EVENT_INTERFACE_1_1
 
#define PPB_WHEEL_INPUT_EVENT_INTERFACE_1_0   "PPB_WheelInputEvent;1.0"
 
#define PPB_WHEEL_INPUT_EVENT_INTERFACE   PPB_WHEEL_INPUT_EVENT_INTERFACE_1_0
 
#define PPB_KEYBOARD_INPUT_EVENT_INTERFACE_1_0   "PPB_KeyboardInputEvent;1.0"
 
#define PPB_KEYBOARD_INPUT_EVENT_INTERFACE   PPB_KEYBOARD_INPUT_EVENT_INTERFACE_1_0
 
#define PPB_TOUCH_INPUT_EVENT_INTERFACE_1_0   "PPB_TouchInputEvent;1.0"
 
#define PPB_TOUCH_INPUT_EVENT_INTERFACE   PPB_TOUCH_INPUT_EVENT_INTERFACE_1_0
 
#define PPB_IME_INPUT_EVENT_INTERFACE_1_0   "PPB_IMEInputEvent;1.0"
 
#define PPB_IME_INPUT_EVENT_INTERFACE   PPB_IME_INPUT_EVENT_INTERFACE_1_0
 

Typedefs

typedef struct PPB_InputEvent_1_0 PPB_InputEvent
 
typedef struct
PPB_MouseInputEvent_1_1 
PPB_MouseInputEvent
 
typedef struct
PPB_WheelInputEvent_1_0 
PPB_WheelInputEvent
 
typedef struct
PPB_KeyboardInputEvent_1_0 
PPB_KeyboardInputEvent
 
typedef struct
PPB_TouchInputEvent_1_0 
PPB_TouchInputEvent
 
typedef struct
PPB_IMEInputEvent_1_0 
PPB_IMEInputEvent
 

Enumerations

enum  PP_InputEvent_Type {
  PP_INPUTEVENT_TYPE_UNDEFINED = -1, PP_INPUTEVENT_TYPE_MOUSEDOWN = 0, PP_INPUTEVENT_TYPE_MOUSEUP = 1, PP_INPUTEVENT_TYPE_MOUSEMOVE = 2,
  PP_INPUTEVENT_TYPE_MOUSEENTER = 3, PP_INPUTEVENT_TYPE_MOUSELEAVE = 4, PP_INPUTEVENT_TYPE_WHEEL = 5, PP_INPUTEVENT_TYPE_RAWKEYDOWN = 6,
  PP_INPUTEVENT_TYPE_KEYDOWN = 7, PP_INPUTEVENT_TYPE_KEYUP = 8, PP_INPUTEVENT_TYPE_CHAR = 9, PP_INPUTEVENT_TYPE_CONTEXTMENU = 10,
  PP_INPUTEVENT_TYPE_IME_COMPOSITION_START = 11, PP_INPUTEVENT_TYPE_IME_COMPOSITION_UPDATE = 12, PP_INPUTEVENT_TYPE_IME_COMPOSITION_END = 13, PP_INPUTEVENT_TYPE_IME_TEXT = 14,
  PP_INPUTEVENT_TYPE_TOUCHSTART = 15, PP_INPUTEVENT_TYPE_TOUCHMOVE = 16, PP_INPUTEVENT_TYPE_TOUCHEND = 17, PP_INPUTEVENT_TYPE_TOUCHCANCEL = 18
}
 
enum  PP_InputEvent_Modifier {
  PP_INPUTEVENT_MODIFIER_SHIFTKEY = 1 << 0, PP_INPUTEVENT_MODIFIER_CONTROLKEY = 1 << 1, PP_INPUTEVENT_MODIFIER_ALTKEY = 1 << 2, PP_INPUTEVENT_MODIFIER_METAKEY = 1 << 3,
  PP_INPUTEVENT_MODIFIER_ISKEYPAD = 1 << 4, PP_INPUTEVENT_MODIFIER_ISAUTOREPEAT = 1 << 5, PP_INPUTEVENT_MODIFIER_LEFTBUTTONDOWN = 1 << 6, PP_INPUTEVENT_MODIFIER_MIDDLEBUTTONDOWN = 1 << 7,
  PP_INPUTEVENT_MODIFIER_RIGHTBUTTONDOWN = 1 << 8, PP_INPUTEVENT_MODIFIER_CAPSLOCKKEY = 1 << 9, PP_INPUTEVENT_MODIFIER_NUMLOCKKEY = 1 << 10, PP_INPUTEVENT_MODIFIER_ISLEFT = 1 << 11,
  PP_INPUTEVENT_MODIFIER_ISRIGHT = 1 << 12
}
 
enum  PP_InputEvent_MouseButton { PP_INPUTEVENT_MOUSEBUTTON_NONE = -1, PP_INPUTEVENT_MOUSEBUTTON_LEFT = 0, PP_INPUTEVENT_MOUSEBUTTON_MIDDLE = 1, PP_INPUTEVENT_MOUSEBUTTON_RIGHT = 2 }
 
enum  PP_InputEvent_Class {
  PP_INPUTEVENT_CLASS_MOUSE = 1 << 0, PP_INPUTEVENT_CLASS_KEYBOARD = 1 << 1, PP_INPUTEVENT_CLASS_WHEEL = 1 << 2, PP_INPUTEVENT_CLASS_TOUCH = 1 << 3,
  PP_INPUTEVENT_CLASS_IME = 1 << 4
}
 
enum  PP_TouchListType { PP_TOUCHLIST_TYPE_TOUCHES = 0, PP_TOUCHLIST_TYPE_CHANGEDTOUCHES = 1, PP_TOUCHLIST_TYPE_TARGETTOUCHES = 2 }
 

Functions

 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_InputEvent_Type, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_InputEvent_Modifier, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_InputEvent_MouseButton, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_InputEvent_Class, 4)
 
 PP_COMPILE_ASSERT_SIZE_IN_BYTES (PP_TouchListType, 4)
 

Detailed Description

This file defines the Input Event interfaces.

Definition in file ppb_input_event.h.

Macro Definition Documentation

#define PPB_IME_INPUT_EVENT_INTERFACE   PPB_IME_INPUT_EVENT_INTERFACE_1_0

Definition at line 39 of file ppb_input_event.h.

#define PPB_IME_INPUT_EVENT_INTERFACE_1_0   "PPB_IMEInputEvent;1.0"

Definition at line 38 of file ppb_input_event.h.

#define PPB_INPUT_EVENT_INTERFACE   PPB_INPUT_EVENT_INTERFACE_1_0

Definition at line 22 of file ppb_input_event.h.

#define PPB_INPUT_EVENT_INTERFACE_1_0   "PPB_InputEvent;1.0"

Definition at line 21 of file ppb_input_event.h.

#define PPB_KEYBOARD_INPUT_EVENT_INTERFACE   PPB_KEYBOARD_INPUT_EVENT_INTERFACE_1_0

Definition at line 32 of file ppb_input_event.h.

#define PPB_KEYBOARD_INPUT_EVENT_INTERFACE_1_0   "PPB_KeyboardInputEvent;1.0"

Definition at line 31 of file ppb_input_event.h.

#define PPB_MOUSE_INPUT_EVENT_INTERFACE   PPB_MOUSE_INPUT_EVENT_INTERFACE_1_1

Definition at line 26 of file ppb_input_event.h.

#define PPB_MOUSE_INPUT_EVENT_INTERFACE_1_0   "PPB_MouseInputEvent;1.0"

Definition at line 24 of file ppb_input_event.h.

#define PPB_MOUSE_INPUT_EVENT_INTERFACE_1_1   "PPB_MouseInputEvent;1.1"

Definition at line 25 of file ppb_input_event.h.

#define PPB_TOUCH_INPUT_EVENT_INTERFACE   PPB_TOUCH_INPUT_EVENT_INTERFACE_1_0

Definition at line 36 of file ppb_input_event.h.

#define PPB_TOUCH_INPUT_EVENT_INTERFACE_1_0   "PPB_TouchInputEvent;1.0"

Definition at line 35 of file ppb_input_event.h.

#define PPB_WHEEL_INPUT_EVENT_INTERFACE   PPB_WHEEL_INPUT_EVENT_INTERFACE_1_0

Definition at line 29 of file ppb_input_event.h.

#define PPB_WHEEL_INPUT_EVENT_INTERFACE_1_0   "PPB_WheelInputEvent;1.0"

Definition at line 28 of file ppb_input_event.h.