Home
last modified time | relevance | path

Searched refs:gesture (Results 1 – 25 of 330) sorted by relevance

12345678910>>...14

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/gesture/
H A Dgesture_model_ng.cpp38 if (IsTapClick(gesture)) { in GetTapGestureEventFunc()
86 if (!gesture) { in Finish()
93 gestureEventHub->AddGesture(gesture); in Finish()
116 CHECK_NULL_VOID(gesture); in SetTag()
117 gesture->SetTag(tag); in SetTag()
125 CHECK_NULL_VOID(gesture); in SetAllowedTypes()
126 gesture->SetAllowedTypes(allowedTypes); in SetAllowedTypes()
134 gestureProcessor->PushGestureNG(gesture); in Create()
142 gestureProcessor->PushGestureNG(gesture); in Create()
205 CHECK_NULL_VOID(gesture); in SetOnGestureEvent()
[all …]
/ohos5.0/docs/en/application-dev/ui/
H A Darkts-gesture-events-combined-gestures.md13 - **gesture**: array of multiple gestures.
20 …ample, the combined gestures for continuous recognition are the long press gesture and pan gesture.
47 .gesture(
48 // Set the gesture mode to Sequence.
64 …// The pan gesture is triggered when the component is dragged after the long press gesture is reco…
98gesture and pan gesture. It is triggered only when the user performs a pan gesture within the pres…
123 .gesture(
145gesture and a double-tap gesture are combined for parallel recognition, when taps are performed i…
176 .gesture(
198gesture and a double-tap gesture are combined for exclusive recognition, when taps are performed …
[all …]
H A Darkts-gesture-events-binding.md4gesture events and design the logic for responding to these events. When a gesture is successfully…
7 ## gesture (Common Gesture Binding Method)
11 .gesture(gesture: GestureType, mask?: GestureMask)
14 **gesture** is a frequently used API for binding a gesture to a component.
27 // Use the gesture API to bind the tap gesture.
28 .gesture(
45 .priorityGesture(gesture: GestureType, mask?: GestureMask)
50 …eferentially recognizes the gesture specified by **gesture**, and the parent component preferentia…
66 .gesture(
92 …elGesture** API binds to a component the gesture that can be triggered together with the child com…
[all …]
H A Darkts-gesture-events-single-gesture.md18 …The following example binds a double-tap gesture (a tap gesture whose **count** value is **2**) to…
30 .gesture(
31 // Bind a tap gesture whose count value is 2.
84 .gesture(
154 .gesture(
155 // Bind a pan gesture to the component.
185 …ough the pan gesture. If you bind the pan gesture or [swipe gesture](#swipe-gesture) to a child of…
234 .gesture(
295 .gesture(
372 .gesture(
[all …]
H A Dndk-bind-gesture-events.md55 - Tap gesture
62 - Pan gesture
76 - Pinch gesture
83 - Rotation gesture
90 - Swipe gesture
177 // Add the long press gesture to the gesture group.
228 // Add the swipe press gesture to the gesture group.
315 // Add the long press gesture to the gesture group.
366 // Add the swipe press gesture to the gesture group.
452 // Add the pan press gesture to the gesture group.
[all …]
H A Darkts-gesture-events-multi-level-gesture.md58 }.gesture(TapGesture({count: 1}))
65 .gesture(
90 .gesture(TapGesture({count: 1}))
94 .gesture(TapGesture({count: 1}))
113 .gesture(TapGesture({count: 1}))
121 .gesture(TapGesture({count: 1}))
125 .gesture(TapGesture({count: 1}))
137 .gesture(TapGesture({count: 1}))
145 .gesture(TapGesture({count: 1}))
160 .gesture(TapGesture({count: 1}))
[all …]
H A Darkts-gesture-events-gesture-judge.md3gesture conflict issues. Typical use cases include nested scrolling and optimizing the interaction…
7 …re the gesture recognition threshold is met, the application can independently determine whether t…
9 **Figure 1** Flowchart of gesture triggering control
13 The following APIs are involved in gesture triggering control.
44 .gesture(GestureGroup(GestureMode.Parallel,
53 3. Set up gesture judgment for the **Stack** component.
102 .gesture(GestureGroup(GestureMode.Parallel,
129 …esponse control allows you to manage whether a gesture callback should be executed, even after the…
131 **Figure 3** Flowchart of gesture response control
140gesture configuration: This step is optional. A typical use case is to set the scroll gesture of a…
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/
H A Dgesture_model_impl.cpp54 CHECK_NULL_VOID(gesture); in Finish()
73 gestureProcessor->PushGesture(gesture); in Create()
81 gestureProcessor->PushGesture(gesture); in Create()
89 gestureProcessor->PushGesture(gesture); in Create()
97 gestureProcessor->PushGesture(gesture); in SetPanGestureOption()
105 gestureProcessor->PushGesture(gesture); in Create()
113 gestureProcessor->PushGesture(gesture); in Create()
121 gestureProcessor->PushGesture(gesture); in Create()
129 gestureProcessor->PushGesture(gesture); in Create()
144 CHECK_NULL_VOID(gesture); in SetOnGestureEvent()
[all …]
/ohos5.0/docs/en/application-dev/reference/apis-arkui/
H A D_ark_u_i___native_gesture_a_p_i__1.md6 Defines the gesture APIs.
50 Adds a gesture to a gesture group.
94 Creates a gesture group.
114 Creates a long press gesture.
136 Creates a pan gesture.
158 Creates a pinch gesture.
179 Creates a rotation gesture.
200 Creates a swipe gesture.
222 Creates a tap gesture.
291 Returns the gesture type.
[all …]
H A Dnative__gesture_8h.md26 …iveGestureAPI_1](_ark_u_i___native_gesture_a_p_i__1.md) | Defines a struct for the gesture APIs. |
33 …u_i___native_module.md#arkui_gestureeventactiontypemask) | Defines a set of gesture event types. |
34 …](_ark_u_i___native_module.md#arkui_gesturedirectionmask) | Defines a set of gesture directions. |
35 …_ark_u_i___native_module.md#arkui_gesturerecognizerhandle) | Defines the gesture recognizer handle…
60 …(const ArkUI_GestureInterruptInfo \*event) | Checks whether a gesture is a built-in gesture of the…
73 …tangle) (const ArkUI_GestureEvent \*event) | Obtains the angle information of the swipe gesture. |
75 …angle) (const ArkUI_GestureEvent \*event) | Obtains the angle information of a rotation gesture. |
76 …sture_getscale) (const ArkUI_GestureEvent \*event) | Obtains the scale ratio of a pinch gesture. |
88 …sture) (ArkUI_GestureRecognizer \*recognizer) | Obtains whether a gesture is a built-in gesture. |
91 …ognizervalid) (ArkUI_GestureRecognizer \*recognizer) | Obtains whether a gesture recognizer is val…
[all …]
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-uigestureevent.md17 Adds a gesture.
27 | mask | [GestureMask](./ts-gesture-settings.md#gesturemask) | No | Mask for gesture events.|
42 | mask | [GestureMask](./ts-gesture-settings.md#gesturemask) | No | Mask for gesture events.|
68 Defines the basic type of the gesture handler.
74 Sets the tag for the gesture handler.
122 Invoked when a tap gesture is recognized.
275 Invoked when a pan gesture is recognized.
297 Invoked during the movement of a pan gesture.
395 Invoked when a swipe gesture is recognized.
450 Invoked when a pinch gesture is recognized.
[all …]
H A Dts-basic-gestures-longpressgesture.md3 **LongPressGesture** is used to trigger a long press gesture, which requires one or more fingers wi…
16 If the minimum duration of the long press gesture is less than 500 ms, the long press gesture recei…
18 …the long press gesture is greater than or equal to 500 ms, the drag action receives a higher respo…
26 …ss gesture. The value ranges from 1 to 10.<br>Default value: **1**<br> **NOTE**<br>If a finger mov…
35 …on(event:(event: [GestureEvent](ts-gesture-settings.md#gestureevent)) =&gt; void) | Invoked when a…
43 …sup> | string | Tag for the long press gesture. It is used to distinguish the gesture during cu…
44 …</sup> | Array\<[SourceTool](ts-gesture-settings.md#sourcetool9)> | Allowed event input types for …
49 This example demonstrates the recognition of a long press gesture using **TapGesture**.
61 // Touch and hold the text with one finger to trigger the gesture event.
62 .gesture(
[all …]
H A Dts-basic-gestures-rotationgesture.md3 **RotationGesture** is used to trigger a rotation gesture, which requires two to five fingers with …
7 > This gesture is supported since API version 7. Updates will be marked with a superscript to indi…
20 …e minimum number can be pressed to trigger the gesture, only the first two fingers participate in
28 …rt(event:(event: [GestureEvent](ts-gesture-settings.md#gestureevent)) =&gt; void) | Triggered when…
29 …t: [GestureEvent](ts-gesture-settings.md#gestureevent)) =&gt; void) | Triggered when the user move…
30 …vent: [GestureEvent](ts-gesture-settings.md#gestureevent)) =&gt; void) | Triggered when the finger…
37 …</sup> | string | Tag for the rotation gesture. It is used to distinguish the gesture during cu…
38 …+</sup> | Array\<[SourceTool](ts-gesture-settings.md#sourcetool9)> | Allowed event input types for…
42 This example demonstrates the recognition of a two-finger rotation gesture using **RotationGesture*…
63 // The gesture event is triggered by rotating with two fingers.
[all …]
H A Dts-gesture-settings.md12 Use the following attributes to bind gesture recognition to a component. When a gesture is recogniz…
19gesture | gesture: [GestureType](#gesturetype),<br>mask?: [GestureMask](#gesturemask) | gesture: -…
20gesture: [GestureType](#gesturetype),<br>mask?: [GestureMask](#gesturemask) | gesture: -,<br>mask:…
21gesture: [GestureType](#gesturetype),<br>mask?: [GestureMask](#gesturemask) | gesture: -,<br>mask:…
30 …pGesture](ts-basic-gestures-tapgesture.md) | Tap gesture, which can be a single-tap or multi-tap g…
33 | [PinchGesture](ts-basic-gestures-pinchgesture.md) | Pinch gesture.|
50gesture objects of different **GestureType** instances through gesture events. Each gesture object…
60 Inherits from [BaseEvent](ts-gesture-customize-judge.md#baseevent).
129 .gesture(
140 …// When priorityGesture is set, the tap gesture on the Column component is prioritized over the ta…
[all …]
H A Dts-basic-gestures-tapgesture.md3 **TapGesture** is used to trigger a tap gesture with one, two, or more taps.
7 > This gesture is supported since API version 7. Updates will be marked with a superscript to indi…
22 …lue | [TapGestureParameters](#tapgestureparameters12) | No| Parameters related to the tap gesture.|
33gesture, recognition fails if the required number of fingers is not pressed within 300 ms after th…
34gesture. If the value is less than or equal to 0 or is not set, the default value is used.<br>Defa…
40 …(event: (event: [GestureEvent](ts-gesture-settings.md#gestureevent)) =&gt; void) | Callback invoke…
46 …p>11+</sup> | string | Tag for the tap gesture. It is used to distinguish the gesture during cu…
47 …>14+</sup> | Array\<[SourceTool](ts-gesture-settings.md#sourcetool9)> | Allowed event input types …
51 This example demonstrates the recognition of a double-tap gesture using **TapGesture**.
62 // The gesture event is triggered by double-tapping.
[all …]
H A Dts-basic-gestures-pinchgesture.md3 **PinchGesture** is used to trigger a pinch gesture, which requires two to five fingers with a mini…
7 > This gesture is supported since API version 7. Updates will be marked with a superscript to indi…
20 … number can be pressed to trigger the gesture, only the first fingers of the minimum number partic…
28 …tart(event:(event: [GestureEvent](ts-gesture-settings.md#gestureevent)) =&gt; void) | Triggered wh…
29 …t: [GestureEvent](ts-gesture-settings.md#gestureevent)) =&gt; void) | Triggered when the user move…
30 …event: [GestureEvent](ts-gesture-settings.md#gestureevent)) =&gt; void) | Triggered when the finge…
37 …11+</sup> | string | Tag for the pinch gesture. It is used to distinguish the gesture during cu…
38 …14+</sup> | Array\<[SourceTool](ts-gesture-settings.md#sourcetool9)> | Allowed event input types f…
42 This example demonstrates the recognition of a three-finger pinch gesture using **PinchGesture**.
66 // The gesture event is triggered by pinching three fingers together.
[all …]
H A Dts-basic-gestures-swipegesture.md3 **SwipeGesture** is used to implement a swipe gesture, which can be recognized when the swipe speed…
7 > This gesture is supported since API version 8. Updates will be marked with a superscript to indi…
20 | fingers | number | No| Minimum number of fingers to trigger a swipe gesture. The value ranges fro…
31 | Horizontal | Horizontal direction. The gesture event is triggered when the angle between the fing…
32 | Vertical | Vertical direction. The gesture event is triggered when the angle between the finger m…
40 …tion(event:(event: [GestureEvent](ts-gesture-settings.md#gestureevent)) =&gt; void) | Invoked when…
46 …11+</sup> | string | Tag for the swipe gesture. It is used to distinguish the gesture during cu…
47 …14+</sup> | Array\<[SourceTool](ts-gesture-settings.md#sourcetool9)> | Allowed event input types f…
51 This example demonstrates the recognition of a swipe gesture using **SwipeGesture**.
72 // The gesture event is triggered by swiping vertically with one finger.
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/cppview/
H A Dgesture.cpp61 if (!gesture) { in Finish()
107 if (!gesture) { in HandlerOnGestureEvent()
140 gesture->SetOnActionId(onActionFunc); in HandlerOnGestureEvent()
167 gestureComponent->PushGesture(gesture); in Create()
180 gestureComponent->PushGesture(gesture); in Create()
193 gestureComponent->PushGesture(gesture); in Create()
206 gestureComponent->PushGesture(gesture); in Create()
219 gestureComponent->PushGesture(gesture); in Create()
226 gestureComponent->PushGesture(gesture); in Create()
239 gestureComponent->PushGesture(gesture); in Create()
[all …]
/ohos5.0/docs/zh-cn/application-dev/ui/
H A Darkts-gesture-events-multi-level-gesture.md59 }.gesture(TapGesture({count: 1}))
66 .gesture(
91 .gesture(TapGesture({count: 1}))
95 .gesture(TapGesture({count: 1}))
114 .gesture(TapGesture({count: 1}))
122 .gesture(TapGesture({count: 1}))
126 .gesture(TapGesture({count: 1}))
138 .gesture(TapGesture({count: 1}))
146 .gesture(TapGesture({count: 1}))
161 .gesture(TapGesture({count: 1}))
[all …]
H A Darkts-gesture-events-binding.md7 ## gesture(常规手势绑定方法)
11 .gesture(gesture: GestureType, mask?: GestureMask)
14 gesture为通用的一种手势绑定方法,可以将手势绑定到对应的组件上。
16 例如,可以将点击手势TapGesture通过gesture手势将方法绑定到Text组件上。
27 // 采用gesture手势绑定方法绑定TapGesture
28 .gesture(
45 .priorityGesture(gesture: GestureType, mask?: GestureMask)
50 在默认情况下,当父组件和子组件使用gesture绑定同类型的手势时,子组件优先识别通过gesture绑定的手势。当父组件使用priorityGesture绑定与子组件同类型的手势时,父组件优先识别通…
66 .gesture(
89 .parallelGesture(gesture: GestureType, mask?: GestureMask)
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/gestures/
H A Dgesture_processor.h54 void PushGesture(const RefPtr<Gesture>& gesture) in PushGesture() argument
56 gestureStack_.push(gesture); in PushGesture()
65 auto gesture = gestureStack_.top(); in PopGesture() local
70 gestureGroup->AddGesture(gesture); in PopGesture()
93 auto gesture = gestureStack_.top(); in FinishGesture() local
96 return gesture; in FinishGesture()
101 gestureStackNG_.push(gesture); in PushGestureNG()
110 auto gesture = gestureStackNG_.top(); in PopGestureNG() local
115 gestureGroup->AddGesture(gesture); in PopGestureNG()
133 auto gesture = gestureStackNG_.top(); in FinishGestureNG() local
[all …]
/ohos5.0/foundation/multimodalinput/input/service/touch_event_normalize/src/
H A Dgesture_transform_processor.cpp34 CHKPV(gesture); in OnEventTouchPadPinchBegin()
36 double scale = libinput_event_gesture_get_scale(gesture); in OnEventTouchPadPinchBegin()
67 CHKPV(gesture); in OnEventTouchPadPinchUpdate()
69 double scale = libinput_event_gesture_get_scale(gesture); in OnEventTouchPadPinchUpdate()
92 CHKPV(gesture); in OnEventTouchPadPinchEnd()
94 double scale = libinput_event_gesture_get_scale(gesture); in OnEventTouchPadPinchEnd()
118 auto gesture = libinput_event_get_gesture_event(event); in OnEvent() local
119 CHKPP(gesture); in OnEvent()
128 OnEventTouchPadPinchBegin(gesture); in OnEvent()
133 OnEventTouchPadPinchUpdate(gesture); in OnEvent()
[all …]
/ohos5.0/docs/en/application-dev/reference/apis-accessibility-kit/
H A Djs-apis-application-accessibilityExtensionAbility.md143 Enumerates gesture types.
149 | left | string | Left gesture. |
151 | leftThenUp | string | Left-then-up gesture.|
153 | right | string | Right gesture. |
155 | rightThenUp | string | Right-then-up gesture.|
157 | up | string | Up gesture. |
158 | upThenLeft | string | Up-then-left gesture.|
159 | upThenRight | string | Up-then-right gesture.|
160 | upThenDown | string | Up-then-down gesture.|
161 | down | string | Down gesture. |
[all …]
/ohos5.0/foundation/arkui/ace_engine/interfaces/native/node/
H A Dgesture_impl.cpp388 void* gesture; member
402 ndkGesture->gesture = gesture; in CreatePanGesture()
413 ndkGesture->gesture = gesture; in CreateTapGesture()
424 ndkGesture->gesture = gesture; in CreateTapGestureWithDistanceThreshold()
431 auto* gesture = in CreateLongPressGesture() local
434 ndkGesture->gesture = gesture; in CreateLongPressGesture()
449 ndkGesture->gesture = gesture; in CreatePinchGesture()
459 ndkGesture->gesture = gesture; in CreateRotationGesture()
474 ndkGesture->gesture = gesture; in CreateSwipeGesture()
535 group->gesture, child->gesture); in AddChildGesture()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_gesture_ffi.cpp120 if (!gesture) { in HandlerOnGestureEvent()
140 gesture->SetOnActionId(onActionFunc); in HandlerOnGestureEvent()
209 if (!gesture) { in FfiOHOSAceFrameworkGestureFinish()
217 gestureEventHub->AddGesture(gesture); in FfiOHOSAceFrameworkGestureFinish()
238 gestureProcessor->PushGestureNG(gesture); in FfiOHOSAceFrameworkTapGestureCreate()
252 gestureProcessor->PushGestureNG(gesture); in FfiOHOSAceFrameworkLongPressGestureCreate()
266 gestureProcessor->PushGestureNG(gesture); in FfiOHOSAceFrameworkPinchGestureCreate()
283 gestureProcessor->PushGestureNG(gesture); in FfiOHOSAceFrameworkSwipeGestureCreate()
297 gestureProcessor->PushGestureNG(gesture); in FfiOHOSAceFrameworkRotationGestureCreate()
314 gestureProcessor->PushGestureNG(gesture); in FfiOHOSAceFrameworkPanGestureCreate()
[all …]

12345678910>>...14