/foundation/multimodalinput/input/service/monitor/src/ |
H A D | gesture_monitor_handler.cpp | 33 bool GestureMonitorHandler::CheckMonitorValid(TouchGestureType type, int32_t fingers) in CheckMonitorValid() argument 36 if (fingers == ALL_FINGER_COUNT) { in CheckMonitorValid() 40 (THREE_FINGER_COUNT <= fingers && fingers <= MAX_FINGERS_COUNT)) { in CheckMonitorValid() 43 (FOUR_FINGER_COUNT <= fingers && fingers <= MAX_FINGERS_COUNT)) { in CheckMonitorValid() 48 return CheckMonitorValid(type, fingers); in CheckMonitorValid() 105 void GestureMonitorHandler::AddGestureMonitor(TouchGestureType type, int32_t fingers) in AddGestureMonitor() argument 110 fingers_ = fingers; in AddGestureMonitor() 114 touchGestureInfo_.insert({type, { fingers }}); in AddGestureMonitor() 120 RemoveGestureMonitor(TouchGestureType type, int32_t fingers) RemoveGestureMonitor() argument [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/ |
H A D | cj_gesture_ffi.h | 33 CJ_EXPORT void FfiOHOSAceFrameworkTapGestureCreate(int32_t count, int32_t fingers); 34 CJ_EXPORT void FfiOHOSAceFrameworkLongPressGestureCreate(int32_t fingers, bool repeat, int32_t duration); 35 CJ_EXPORT void FfiOHOSAceFrameworkPinchGestureCreate(int32_t fingers, double distance); 36 CJ_EXPORT void FfiOHOSAceFrameworkSwipeGestureCreate(int32_t fingers, uint32_t direction, double speed); 37 CJ_EXPORT void FfiOHOSAceFrameworkRotationGestureCreate(int32_t fingers, double angle); 38 CJ_EXPORT void FfiOHOSAceFrameworkPanGestureCreate(int32_t fingers, uint32_t direction, double distance); 42 CJ_EXPORT int64_t FfiOHOSAceFrameworkPanGestureOptionsCtor(int32_t fingers, uint32_t direction, double distance); 43 CJ_EXPORT void FfiOHOSAceFrameworkPanGestureOptionsSetFingers(int64_t selfID, int32_t fingers);
|
H A D | cj_gesture_ffi.cpp | 223 void FfiOHOSAceFrameworkTapGestureCreate(int32_t count, int32_t fingers) in FfiOHOSAceFrameworkTapGestureCreate() argument 229 int32_t fingersNum = Utils::CheckRange(DEFAULT_TAP_FINGER, MAX_TAP_FINGER, DEFAULT_TAP_FINGER, fingers); in FfiOHOSAceFrameworkTapGestureCreate() 236 void FfiOHOSAceFrameworkLongPressGestureCreate(int32_t fingers, bool repeat, int32_t duration) in FfiOHOSAceFrameworkLongPressGestureCreate() argument 242 Utils::CheckRange(DEFAULT_LONG_PRESS_FINGER, MAX_LONG_PRESS_FINGER, DEFAULT_LONG_PRESS_FINGER, fingers); in FfiOHOSAceFrameworkLongPressGestureCreate() 250 void FfiOHOSAceFrameworkPinchGestureCreate(int32_t fingers, double distance) in FfiOHOSAceFrameworkPinchGestureCreate() argument 256 Utils::CheckRange(DEFAULT_PINCH_FINGER, MAX_PINCH_FINGER, DEFAULT_PINCH_FINGER, fingers); in FfiOHOSAceFrameworkPinchGestureCreate() 264 void FfiOHOSAceFrameworkSwipeGestureCreate(int32_t fingers, uint32_t direction, double speed) in FfiOHOSAceFrameworkSwipeGestureCreate() argument 273 Utils::CheckRange(DEFAULT_SLIDE_FINGER, MAX_SLIDE_FINGER, DEFAULT_SLIDE_FINGER, fingers); in FfiOHOSAceFrameworkSwipeGestureCreate() 281 void FfiOHOSAceFrameworkRotationGestureCreate(int32_t fingers, double angle) in FfiOHOSAceFrameworkRotationGestureCreate() argument 287 Utils::CheckRange(DEFAULT_ROTATION_FINGER, MAX_ROTATION_FINGER, DEFAULT_ROTATION_FINGER, fingers); in FfiOHOSAceFrameworkRotationGestureCreate() 295 FfiOHOSAceFrameworkPanGestureCreate(int32_t fingers, uint32_t direction, double distance) FfiOHOSAceFrameworkPanGestureCreate() argument 339 FfiOHOSAceFrameworkPanGestureOptionsCtor(int32_t fingers, uint32_t direction, double distance) FfiOHOSAceFrameworkPanGestureOptionsCtor() argument 354 FfiOHOSAceFrameworkPanGestureOptionsSetFingers(int64_t selfID, int32_t fingers) FfiOHOSAceFrameworkPanGestureOptionsSetFingers() argument [all...] |
/foundation/multimodalinput/input/frameworks/proxy/event_handler/src/ |
H A D | input_monitor_manager.cpp | 36 std::shared_ptr<IInputEventConsumer> consumer, TouchGestureType type, int32_t fingers) in AddGestureMonitor() 40 consumer, HANDLE_EVENT_TYPE_TOUCH_GESTURE, type, fingers); in AddGestureMonitor() 73 bool InputMonitorManager::CheckMonitorValid(TouchGestureType type, int32_t fingers) in CheckMonitorValid() argument 76 if (fingers == ALL_FINGER_COUNT) { in CheckMonitorValid() 80 (THREE_FINGER_COUNT <= fingers && fingers <= MAX_FINGERS_COUNT)) { in CheckMonitorValid() 83 (FOUR_FINGER_COUNT <= fingers && fingers <= MAX_FINGERS_COUNT)) { in CheckMonitorValid() 88 return CheckMonitorValid(type, fingers); in CheckMonitorValid() 35 AddGestureMonitor( std::shared_ptr<IInputEventConsumer> consumer, TouchGestureType type, int32_t fingers) AddGestureMonitor() argument
|
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/cppview/ |
H A D | gesture.cpp | 152 void TapGesture::Create(int32_t count, int32_t fingers) in Create() argument 158 fingersNum = fingers <= DEFAULT_TAP_FINGER ? DEFAULT_TAP_FINGER : fingers; in Create() 165 void LongPressGesture::Create(int32_t fingers, bool repeat, int32_t duration) in Create() argument 170 fingersNum = fingers <= DEFAULT_LONG_PRESS_FINGER ? DEFAULT_LONG_PRESS_FINGER : fingers; in Create() 178 void PinchGesture::Create(int32_t fingers, double distance) in Create() argument 183 fingersNum = fingers <= DEFAULT_PINCH_FINGER ? DEFAULT_PINCH_FINGER : fingers; in Create() 191 void SwipeGesture::Create(int32_t fingers, cons argument 204 Create(int32_t fingers, double angle) Create() argument 224 Create(int32_t fingers, const PanDirection& panDirection, double distance) Create() argument 244 NativePanGestureOption(int32_t fingers, const PanDirection& panDirection, double distance) NativePanGestureOption() argument 278 SetFingers(int32_t fingers) SetFingers() argument [all...] |
H A D | gesture.h | 45 static void Create(int32_t count, int32_t fingers); 50 static void Create(int32_t fingers, bool repeat, int32_t duration); 55 static void Create(int32_t fingers, double distance); 60 static void Create(int32_t fingers, const SwipeDirection& swipeDirection, double speed); 65 static void Create(int32_t fingers, double angle); 76 NativePanGestureOption(int32_t fingers, const PanDirection& panDirection, double distance); 80 void SetFingers(int32_t fingers); 98 static void Create(int32_t fingers, const PanDirection& panDirection, double distance);
|
/foundation/multimodalinput/input/frameworks/napi/input_monitor/include/ |
H A D | js_input_monitor_manager.h | 39 std::vector<Rect> hotRectArea, int32_t rectTotal, napi_value callback, const int32_t fingers = 0); 40 void AddMonitor(napi_env jsEnv, const std::string &typeName, napi_value callback, const int32_t fingers = 0); 41 void RemoveMonitor(napi_env jsEnv, const std::string &typeName, napi_value callback, const int32_t fingers = 0); 42 void RemoveMonitor(napi_env jsEnv, const std::string &typeName, const int32_t fingers = 0); 44 void OnPointerEventByMonitorId(int32_t id, int32_t fingers, std::shared_ptr<PointerEvent> pointEvent); 46 void OnKeyEventByMonitorId(int32_t id, int32_t fingers, std::shared_ptr<KeyEvent> keyEvent); 48 const std::shared_ptr<JsInputMonitor> GetMonitor(int32_t id, int32_t fingers); 49 std::string GetMonitorTypeName(int32_t id, int32_t fingers); 61 napi_env jsEnv, const std::string &typeName, napi_value callback, const int32_t fingers); 63 napi_env jsEnv, const std::string &typeName, const int32_t fingers); [all...] |
/foundation/multimodalinput/input/frameworks/napi/input_monitor/src/ |
H A D | js_input_monitor_manager.cpp | 40 std::vector<Rect> hotRectArea, int32_t rectTotal, napi_value callback, const int32_t fingers) in AddMonitor() 51 rectTotal, callback, nextId_++, fingers); in AddMonitor() 62 napi_value callback, const int32_t fingers) in AddMonitor() 72 auto monitor = std::make_shared<JsInputMonitor>(jsEnv, typeName, callback, nextId_++, fingers); in AddMonitor() 83 const int32_t fingers) in RemoveMonitor() 94 if (IsFindJsInputMonitor(*it, jsEnv, typeName, callback, fingers)) { in RemoveMonitor() 108 void JsInputMonitorManager::RemoveMonitor(napi_env jsEnv, const std::string &typeName, const int32_t fingers) in RemoveMonitor() argument 119 if (IsFindJsInputMonitor(*it, jsEnv, typeName, fingers)) { in RemoveMonitor() 162 void JsInputMonitorManager::OnPointerEventByMonitorId(int32_t id, int32_t fingers, in OnPointerEventByMonitorId() argument 168 if ((item != nullptr) && (item->GetId() == id && item->GetFingers() == fingers)) { in OnPointerEventByMonitorId() 39 AddMonitor(napi_env jsEnv, const std::string &typeName, std::vector<Rect> hotRectArea, int32_t rectTotal, napi_value callback, const int32_t fingers) AddMonitor() argument 61 AddMonitor(napi_env jsEnv, const std::string &typeName, napi_value callback, const int32_t fingers) AddMonitor() argument 82 RemoveMonitor(napi_env jsEnv, const std::string &typeName, napi_value callback, const int32_t fingers) RemoveMonitor() argument 175 OnKeyEventByMonitorId(int32_t id, int32_t fingers, std::shared_ptr<KeyEvent> keyEvent) OnKeyEventByMonitorId() argument 188 GetMonitor(int32_t id, int32_t fingers) GetMonitor() argument 201 GetMonitorTypeName(int32_t id, int32_t fingers) GetMonitorTypeName() argument 370 IsFindJsInputMonitor(const std::shared_ptr<JsInputMonitor> monitor, napi_env jsEnv, const std::string &typeName, napi_value callback, const int32_t fingers) IsFindJsInputMonitor() argument 381 IsFindJsInputMonitor(const std::shared_ptr<JsInputMonitor> monitor, napi_env jsEnv, const std::string &typeName, const int32_t fingers) IsFindJsInputMonitor() argument [all...] |
H A D | js_input_monitor_module.cpp | 144 int32_t fingers = 0; in AddMonitor() local 145 CHKRP(napi_get_value_int32(env, argv[1], &fingers), GET_VALUE_INT32); in AddMonitor() 146 if (fingers < 0) { in AddMonitor() 147 THROWERR_CUSTOM(env, COMMON_PARAMETER_ERROR, "fingers is invalid"); in AddMonitor() 160 JS_INPUT_MONITOR_MGR.AddMonitor(env, typeName, argv[TWO_PARAMETERS], fingers); in AddMonitor() 258 int32_t fingers = 0; in RemoveMonitor() local 259 CHKRP(napi_get_value_int32(env, argv[1], &fingers), GET_VALUE_INT32); in RemoveMonitor() 260 if (fingers < 0) { in RemoveMonitor() 261 MMI_HILOGE("Invalid fingers"); in RemoveMonitor() 262 THROWERR_CUSTOM(env, COMMON_PARAMETER_ERROR, "fingers i in RemoveMonitor() [all...] |
/foundation/multimodalinput/input/service/monitor/include/ |
H A D | gesture_monitor_handler.h | 33 static bool CheckMonitorValid(TouchGestureType type, int32_t fingers);
37 void AddGestureMonitor(TouchGestureType type, int32_t fingers);
38 bool RemoveGestureMonitor(TouchGestureType type, int32_t fingers);
|
/foundation/arkui/ace_engine/interfaces/native/node/ |
H A D | gesture_impl.cpp | 385 ArkUI_GestureRecognizer* CreateTapGesture(int32_t count, int32_t fingers) in CreateTapGesture() argument 388 fingers = std::clamp(fingers, DEFAULT_TAP_FINGERS, MAX_TAP_FINGERS); in CreateTapGesture() 391 count, fingers, ndkGesture); in CreateTapGesture() 396 ArkUI_GestureRecognizer* CreateTapGestureWithDistanceThreshold(int32_t count, int32_t fingers, double distanceThreshold) in CreateTapGestureWithDistanceThreshold() argument 399 fingers = std::clamp(fingers, DEFAULT_TAP_FINGERS, MAX_TAP_FINGERS); in CreateTapGestureWithDistanceThreshold() 402 createTapGestureWithDistanceThreshold(count, fingers, distanceThreshold, ndkGesture); in CreateTapGestureWithDistanceThreshold() 407 ArkUI_GestureRecognizer* CreateLongPressGesture(int32_t fingers, bool repeatResult, int32_t duration) in CreateLongPressGesture() argument 411 OHOS::Ace::NodeModel::GetFullImpl()->getNodeModifiers()->getGestureModifier()->createLongPressGesture(fingers, in CreateLongPressGesture() 417 CreatePinchGesture(int32_t fingers, double distance) CreatePinchGesture() argument 432 CreateRotationGesture(int32_t fingers, double angle) CreateRotationGesture() argument 442 CreateSwipeGesture(int32_t fingers, ArkUI_GestureDirectionMask directions, double speed) CreateSwipeGesture() argument 459 int32_t fingers = DEFAULT_PAN_FINGERS; CreatePanGesture() local [all...] |
H A D | gesture_impl.h | 26 ArkUI_GestureRecognizer* CreateTapGesture(int32_t count, int32_t fingers); 29 int32_t count, int32_t fingers, double distanceThreshold); 31 ArkUI_GestureRecognizer* CreateLongPressGesture(int32_t fingers, bool repeatResult, int32_t duration);
|
/foundation/arkui/ace_engine/frameworks/core/gestures/ |
H A D | slide_gesture.h | 30 SwipeGesture(int32_t fingers, const SwipeDirection& direction, double speed) in SwipeGesture() argument 32 fingers_ = fingers; in SwipeGesture()
|
H A D | pinch_gesture.h | 34 PinchGesture(int32_t fingers, double distance) : Gesture(fingers), distance_(distance) {} in PinchGesture() argument
|
H A D | rotation_gesture.h | 35 RotationGesture(int32_t fingers, double angle) : Gesture(fingers), angle_(angle) {} in RotationGesture() argument
|
H A D | pan_recognizer.h | 33 const WeakPtr<PipelineBase>& context, int32_t fingers, const PanDirection& direction, double distance) in PanRecognizer() 36 fingers_ = fingers; in PanRecognizer() 69 PanFingersFuncType changeFingers = [weak = AceType::WeakClaim(this)](int32_t fingers) { in PanRecognizer() 74 panRecognizer->ChangeFingers(fingers); in PanRecognizer() 134 void ChangeFingers(int32_t fingers); 32 PanRecognizer( const WeakPtr<PipelineBase>& context, int32_t fingers, const PanDirection& direction, double distance) PanRecognizer() argument
|
H A D | slide_recognizer.h | 33 const WeakPtr<PipelineBase>& context, int32_t fingers, const SwipeDirection& direction, double speed) in SlideRecognizer() 36 fingers_ = fingers; in SlideRecognizer() 65 void ChangeFingers(int32_t fingers); 32 SlideRecognizer( const WeakPtr<PipelineBase>& context, int32_t fingers, const SwipeDirection& direction, double speed) SlideRecognizer() argument
|
H A D | tap_gesture.h | 35 TapGesture(int32_t count, int32_t fingers, double distanceThreshold = std::numeric_limits<double>::infinity()) in TapGesture() argument 36 : Gesture(fingers), count_(count), distanceThreshold_(distanceThreshold) {} in TapGesture()
|
H A D | pan_gesture.h | 34 PanGesture(int32_t fingers, const PanDirection& direction, double distance) in PanGesture() argument 36 fingers_ = fingers; in PanGesture()
|
H A D | long_press_gesture.h | 35 int32_t fingers, bool repeat, int32_t duration, bool isForDrag = false, bool isDisableMouseLeft = false) in LongPressGesture() 36 : Gesture(fingers), repeat_(repeat), duration_(duration), isForDrag_(isForDrag), in LongPressGesture() 34 LongPressGesture( int32_t fingers, bool repeat, int32_t duration, bool isForDrag = false, bool isDisableMouseLeft = false) LongPressGesture() argument
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_gesture.cpp | 234 constexpr char GESTURE_FINGERS[] = "fingers"; 285 JSRef<JSVal> fingers = obj->GetProperty(GESTURE_FINGERS); in Create() local 292 if (fingers->IsNumber()) { in Create() 293 int32_t fingersNumber = fingers->ToNumber<int32_t>(); in Create() 313 JSRef<JSVal> fingers = obj->GetProperty(GESTURE_FINGERS); in Create() local 317 if (fingers->IsNumber()) { in Create() 318 int32_t fingersNumber = fingers->ToNumber<int32_t>(); in Create() 352 JSRef<JSVal> fingers = obj->GetProperty(GESTURE_FINGERS); in Create() local 356 if (fingers->IsNumber()) { in Create() 357 int32_t fingersNumber = fingers in Create() 389 JSRef<JSVal> fingers = obj->GetProperty(GESTURE_FINGERS); Create() local 418 JSRef<JSVal> fingers = obj->GetProperty(GESTURE_FINGERS); Create() local 441 JSRef<JSVal> fingers = obj->GetProperty(GESTURE_FINGERS); Create() local 599 auto fingers = args[0]->ToNumber<int32_t>(); SetFingers() local 629 JSRef<JSVal> fingers = obj->GetProperty(GESTURE_FINGERS); Constructor() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/gestures/ |
H A D | pinch_gesture.h | 34 PinchGesture(int32_t fingers, double distance) : Gesture(fingers), distance_(distance) in PinchGesture() argument
|
H A D | swipe_gesture.h | 30 SwipeGesture(int32_t fingers, const SwipeDirection& direction, double speed) in SwipeGesture() argument 32 fingers_ = fingers; in SwipeGesture()
|
H A D | long_press_gesture.h | 35 int32_t fingers, bool repeat, int32_t duration, bool isForDrag = false, bool isDisableMouseLeft = false) in LongPressGesture() 36 : Gesture(fingers), repeat_(repeat), duration_(duration), isForDrag_(isForDrag), in LongPressGesture() 34 LongPressGesture( int32_t fingers, bool repeat, int32_t duration, bool isForDrag = false, bool isDisableMouseLeft = false) LongPressGesture() argument
|
H A D | tap_gesture.h | 45 TapGesture(int32_t count, int32_t fingers, double distanceThreshold = std::numeric_limits<double>::infinity()) in TapGesture() argument 46 : Gesture(fingers), count_(count), distanceThreshold_(distanceThreshold) in TapGesture()
|