Source code

Copy as Markdown

Other Tools

// GENERATED CODE
// Generated by the Java program at /build/annotationProcessors at compile time
// from annotations on Java methods. To update, change the annotations on the
// corresponding Javamethods and rerun the build. Manually updating this file
// will cause your build to fail.
#ifndef MotionEvent_h__
#define MotionEvent_h__
#include "mozilla/jni/Refs.h"
namespace mozilla {
namespace java {
namespace sdk {
class MotionEvent : public mozilla::jni::ObjectBase<MotionEvent>
{
public:
static constexpr char name[] =
"android/view/MotionEvent";
explicit MotionEvent(const Context& ctx) : ObjectBase<MotionEvent>(ctx) {}
static constexpr int32_t ACTION_BUTTON_PRESS = 11;
static constexpr int32_t ACTION_BUTTON_RELEASE = 12;
static constexpr int32_t ACTION_CANCEL = 3;
static constexpr int32_t ACTION_DOWN = 0;
static constexpr int32_t ACTION_HOVER_ENTER = 9;
static constexpr int32_t ACTION_HOVER_EXIT = 10;
static constexpr int32_t ACTION_HOVER_MOVE = 7;
static constexpr int32_t ACTION_MASK = 255;
static constexpr int32_t ACTION_MOVE = 2;
static constexpr int32_t ACTION_OUTSIDE = 4;
static constexpr int32_t ACTION_POINTER_1_DOWN = 5;
static constexpr int32_t ACTION_POINTER_1_UP = 6;
static constexpr int32_t ACTION_POINTER_2_DOWN = 261;
static constexpr int32_t ACTION_POINTER_2_UP = 262;
static constexpr int32_t ACTION_POINTER_3_DOWN = 517;
static constexpr int32_t ACTION_POINTER_3_UP = 518;
static constexpr int32_t ACTION_POINTER_DOWN = 5;
static constexpr int32_t ACTION_POINTER_ID_MASK = 65280;
static constexpr int32_t ACTION_POINTER_ID_SHIFT = 8;
static constexpr int32_t ACTION_POINTER_INDEX_MASK = 65280;
static constexpr int32_t ACTION_POINTER_INDEX_SHIFT = 8;
static constexpr int32_t ACTION_POINTER_UP = 6;
static constexpr int32_t ACTION_SCROLL = 8;
static constexpr int32_t ACTION_UP = 1;
static constexpr int32_t AXIS_BRAKE = 23;
static constexpr int32_t AXIS_DISTANCE = 24;
static constexpr int32_t AXIS_GAS = 22;
static constexpr int32_t AXIS_GENERIC_1 = 32;
static constexpr int32_t AXIS_GENERIC_10 = 41;
static constexpr int32_t AXIS_GENERIC_11 = 42;
static constexpr int32_t AXIS_GENERIC_12 = 43;
static constexpr int32_t AXIS_GENERIC_13 = 44;
static constexpr int32_t AXIS_GENERIC_14 = 45;
static constexpr int32_t AXIS_GENERIC_15 = 46;
static constexpr int32_t AXIS_GENERIC_16 = 47;
static constexpr int32_t AXIS_GENERIC_2 = 33;
static constexpr int32_t AXIS_GENERIC_3 = 34;
static constexpr int32_t AXIS_GENERIC_4 = 35;
static constexpr int32_t AXIS_GENERIC_5 = 36;
static constexpr int32_t AXIS_GENERIC_6 = 37;
static constexpr int32_t AXIS_GENERIC_7 = 38;
static constexpr int32_t AXIS_GENERIC_8 = 39;
static constexpr int32_t AXIS_GENERIC_9 = 40;
static constexpr int32_t AXIS_GESTURE_PINCH_SCALE_FACTOR = 52;
static constexpr int32_t AXIS_GESTURE_SCROLL_X_DISTANCE = 50;
static constexpr int32_t AXIS_GESTURE_SCROLL_Y_DISTANCE = 51;
static constexpr int32_t AXIS_GESTURE_X_OFFSET = 48;
static constexpr int32_t AXIS_GESTURE_Y_OFFSET = 49;
static constexpr int32_t AXIS_HAT_X = 15;
static constexpr int32_t AXIS_HAT_Y = 16;
static constexpr int32_t AXIS_HSCROLL = 10;
static constexpr int32_t AXIS_LTRIGGER = 17;
static constexpr int32_t AXIS_ORIENTATION = 8;
static constexpr int32_t AXIS_PRESSURE = 2;
static constexpr int32_t AXIS_RELATIVE_X = 27;
static constexpr int32_t AXIS_RELATIVE_Y = 28;
static constexpr int32_t AXIS_RTRIGGER = 18;
static constexpr int32_t AXIS_RUDDER = 20;
static constexpr int32_t AXIS_RX = 12;
static constexpr int32_t AXIS_RY = 13;
static constexpr int32_t AXIS_RZ = 14;
static constexpr int32_t AXIS_SCROLL = 26;
static constexpr int32_t AXIS_SIZE = 3;
static constexpr int32_t AXIS_THROTTLE = 19;
static constexpr int32_t AXIS_TILT = 25;
static constexpr int32_t AXIS_TOOL_MAJOR = 6;
static constexpr int32_t AXIS_TOOL_MINOR = 7;
static constexpr int32_t AXIS_TOUCH_MAJOR = 4;
static constexpr int32_t AXIS_TOUCH_MINOR = 5;
static constexpr int32_t AXIS_VSCROLL = 9;
static constexpr int32_t AXIS_WHEEL = 21;
static constexpr int32_t AXIS_X = 0;
static constexpr int32_t AXIS_Y = 1;
static constexpr int32_t AXIS_Z = 11;
static constexpr int32_t BUTTON_BACK = 8;
static constexpr int32_t BUTTON_FORWARD = 16;
static constexpr int32_t BUTTON_PRIMARY = 1;
static constexpr int32_t BUTTON_SECONDARY = 2;
static constexpr int32_t BUTTON_STYLUS_PRIMARY = 32;
static constexpr int32_t BUTTON_STYLUS_SECONDARY = 64;
static constexpr int32_t BUTTON_TERTIARY = 4;
static constexpr int32_t CLASSIFICATION_AMBIGUOUS_GESTURE = 1;
static constexpr int32_t CLASSIFICATION_DEEP_PRESS = 2;
static constexpr int32_t CLASSIFICATION_NONE = 0;
static constexpr int32_t CLASSIFICATION_PINCH = 5;
static constexpr int32_t CLASSIFICATION_TWO_FINGER_SWIPE = 3;
static constexpr int32_t CONTENTS_FILE_DESCRIPTOR = 1;
static constexpr int32_t EDGE_BOTTOM = 2;
static constexpr int32_t EDGE_LEFT = 4;
static constexpr int32_t EDGE_RIGHT = 8;
static constexpr int32_t EDGE_TOP = 1;
static constexpr int32_t FLAG_CANCELED = 32;
static constexpr int32_t FLAG_WINDOW_IS_OBSCURED = 1;
static constexpr int32_t FLAG_WINDOW_IS_PARTIALLY_OBSCURED = 2;
static constexpr int32_t INVALID_POINTER_ID = -1;
static constexpr int32_t PARCELABLE_WRITE_RETURN_VALUE = 1;
static constexpr int32_t TOOL_TYPE_ERASER = 4;
static constexpr int32_t TOOL_TYPE_FINGER = 1;
static constexpr int32_t TOOL_TYPE_MOUSE = 3;
static constexpr int32_t TOOL_TYPE_STYLUS = 2;
static constexpr int32_t TOOL_TYPE_UNKNOWN = 0;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
};
} /* sdk */
} /* java */
} /* mozilla */
#endif