Lines Matching refs:event
20 * @brief Declares the UI input event capabilities provided by ArkUI on the native side.
28 * @brief Provides ArkUI event definitions on the native side.
45 * @brief Defines the UI input event.
52 * @brief Enumerates the UI input event types.
64 * @brief Defines the action code of the input event.
80 * @brief Defines the tool type of the touch event.
105 * @brief Defines the source type of the touch event.
124 /** Both the node and its child node respond to the hit test of a touch event, but its sibling node is blocked from
129 /** The node responds to the hit test of a touch event, but its child node and sibling node are blocked from the hit
134 /** Both the node and its child node respond to the hit test of a touch event, and its sibling node is also
139 /** The node does not respond to the hit test of a touch event, but its child node and sibling node are considered
198 * @brief Obtains the type of this UI input event.
200 * @param event Indicates the pointer to the current UI input event.
201 * @return Returns the type of the current UI input event; returns <b>0</b> if any parameter error occurs.
204 int32_t OH_ArkUI_UIInputEvent_GetType(const ArkUI_UIInputEvent* event);
207 * @brief Obtains the action type of this UI input event.
209 * @param event Indicates the pointer to the current UI input event.
210 * @return Returns the action type of the current UI input event; returns <b>0</b> if any parameter error occurs.
213 int32_t OH_ArkUI_UIInputEvent_GetAction(const ArkUI_UIInputEvent* event);
216 * @brief Obtains the source type of this UI input event.
218 * @param event Indicates the pointer to the current UI input event.
219 * @return Returns the source type of the current UI input event.
222 int32_t OH_ArkUI_UIInputEvent_GetSourceType(const ArkUI_UIInputEvent* event);
225 * @brief Obtains the tool type of this UI input event.
227 * @param event Indicates the pointer to the current UI input event.
228 * @return Returns the tool type of the current UI input event.
231 int32_t OH_ArkUI_UIInputEvent_GetToolType(const ArkUI_UIInputEvent* event);
234 * @brief Obtains the time when this UI input event occurs.
236 * @param event Indicates the pointer to the current UI input event.
237 * @return Returns the time when the UI input event occurs; returns <b>0</b> if any parameter error occurs.
240 int64_t OH_ArkUI_UIInputEvent_GetEventTime(const ArkUI_UIInputEvent* event);
243 * @brief Obtains the number of touch points from a directional input event (such as a touch event, mouse event,
244 * or axis event).
246 * @param event Indicates the pointer to the current UI input event.
247 * @return Returns the number of touch points for the directional input event.
250 uint32_t OH_ArkUI_PointerEvent_GetPointerCount(const ArkUI_UIInputEvent* event);
253 * @brief Obtains the ID of a touch point from a directional input event (such as a touch event, mouse event,
254 * or axis event).
256 * @param event Indicates the pointer to the current UI input event.
261 int32_t OH_ArkUI_PointerEvent_GetPointerId(const ArkUI_UIInputEvent* event, uint32_t pointerIndex);
265 * input event (such as a touch event, mouse event, or axis event).
267 * @param event Indicates the pointer to the directional input event.
272 float OH_ArkUI_PointerEvent_GetX(const ArkUI_UIInputEvent* event);
276 * from a directional input event (such as a touch event, mouse event, or axis event).
278 * @param event Indicates the pointer to the current UI input event.
284 float OH_ArkUI_PointerEvent_GetXByIndex(const ArkUI_UIInputEvent* event, uint32_t pointerIndex);
288 * input event (such as a touch event, mouse event, or axis event).
290 * @param event Indicates the pointer to the UI input event.
295 float OH_ArkUI_PointerEvent_GetY(const ArkUI_UIInputEvent* event);
299 * from a directional input event (such as a touch event, mouse event, or axis event).
301 * @param event Indicates the pointer to the current UI input event.
307 float OH_ArkUI_PointerEvent_GetYByIndex(const ArkUI_UIInputEvent* event, uint32_t pointerIndex);
311 * directional input event (such as a touch event, mouse event, or axis event).
313 * @param event Indicates the pointer to the UI input event.
318 float OH_ArkUI_PointerEvent_GetWindowX(const ArkUI_UIInputEvent* event);
322 * application window from a directional input event (such as a touch event, mouse event, or axis event).
324 * @param event Indicates the pointer to the current UI input event.
330 float OH_ArkUI_PointerEvent_GetWindowXByIndex(const ArkUI_UIInputEvent* event, uint32_t pointerIndex);
334 * directional input event (such as a touch event, mouse event, or axis event).
336 * @param event Indicates the pointer to the UI input event.
341 float OH_ArkUI_PointerEvent_GetWindowY(const ArkUI_UIInputEvent* event);
345 * application window from a directional input event (such as a touch event, mouse event, or axis event).
347 * @param event Indicates the pointer to the current UI input event.
353 float OH_ArkUI_PointerEvent_GetWindowYByIndex(const ArkUI_UIInputEvent* event, uint32_t pointerIndex);
357 * event (such as a touch event, mouse event, or axis event).
359 * @param event Indicates the pointer to the UI input event.
364 float OH_ArkUI_PointerEvent_GetDisplayX(const ArkUI_UIInputEvent* event);
368 * from a directional input event (such as a touch event, mouse event, or axis event).
370 * @param event Indicates the pointer to the current UI input event.
376 float OH_ArkUI_PointerEvent_GetDisplayXByIndex(const ArkUI_UIInputEvent* event, uint32_t pointerIndex);
380 * event (such as a touch event, mouse event, or axis event).
382 * @param event Indicates the pointer to the UI input event.
387 float OH_ArkUI_PointerEvent_GetDisplayY(const ArkUI_UIInputEvent* event);
391 * from a directional input event (such as a touch event, mouse event, or axis event).
393 * @param event Indicates the pointer to the current UI input event.
399 float OH_ArkUI_PointerEvent_GetDisplayYByIndex(const ArkUI_UIInputEvent* event, uint32_t pointerIndex);
402 * @brief Obtains the pressure applied to the touchscreen from a directional input event (for example, a touch event).
404 * @param event Indicates the pointer to the current UI input event.
409 float OH_ArkUI_PointerEvent_GetPressure(const ArkUI_UIInputEvent* event, uint32_t pointerIndex);
412 * @brief Obtains the angle relative to the YZ plane from a directional input event (for example, a touch event).
415 * @param event Indicates the pointer to the current UI input event.
420 float OH_ArkUI_PointerEvent_GetTiltX(const ArkUI_UIInputEvent* event, uint32_t pointerIndex);
423 * @brief Obtains the angle relative to the XZ plane from a directional input event (for example, a touch event).
426 * @param event Indicates the pointer to the current UI input event.
431 float OH_ArkUI_PointerEvent_GetTiltY(const ArkUI_UIInputEvent* event, uint32_t pointerIndex);
434 * @brief Obtains the width of the touch area from a directional input event (for example, a touch event).
436 * @param event Indicates the pointer to the current UI input event.
441 float OH_ArkUI_PointerEvent_GetTouchAreaWidth(const ArkUI_UIInputEvent* event, uint32_t pointerIndex);
444 * @brief Obtains the height of the touch area from a directional input event (for example, a touch event).
446 * @param event Indicates the pointer to the current UI input event.
451 float OH_ArkUI_PointerEvent_GetTouchAreaHeight(const ArkUI_UIInputEvent* event, uint32_t pointerIndex);
454 * @brief Obtains the number of historical events from a directional input event (such as a touch event, mouse event,
455 * or axis event).
457 * @param event Indicates the pointer to the current UI input event.
461 uint32_t OH_ArkUI_PointerEvent_GetHistorySize(const ArkUI_UIInputEvent* event);
464 * @brief Obtains the occurrence time of a historical event from a directional input event (such as a touch event,
465 * mouse event, or axis event).
467 * @param event Indicates the pointer to the current UI input event.
468 * @param historyIndex Indicates the index of the target historical event.
469 * @return Returns the time when the UI input event occurs; returns <b>0</b> if any parameter error occurs.
472 int64_t OH_ArkUI_PointerEvent_GetHistoryEventTime(const ArkUI_UIInputEvent* event, uint32_t historyIndex);
475 * @brief Obtains the number of touch points in a specific historical event from a directional input event (such as
476 * a touch event, mouse event, or axis event).
478 * @param event Indicates the pointer to the current UI input event.
479 * @param historyIndex Indicates the index of the target historical event.
480 * @return Returns the number of touch points in the specified historical event
483 uint32_t OH_ArkUI_PointerEvent_GetHistoryPointerCount(const ArkUI_UIInputEvent* event, uint32_t historyIndex);
486 * @brief Obtains the ID of a touch point in a specific historical event from a directional input event (such as
487 * a touch event, mouse event, or axis event).
489 * @param event Indicates the pointer to the current UI input event.
491 * @param historyIndex Indicates the index of the target historical event.
492 * @return Returns the ID of the corresponding touch point in the specified historical event.
496 const ArkUI_UIInputEvent* event, uint32_t pointerIndex, uint32_t historyIndex);
499 * @brief Obtains the X coordinate of a specific touch point in a historical event relative to the upper left corner
500 * of the current component from a directional input event (such as a touch event, mouse event, or axis event).
502 * @param event Indicates the pointer to the current UI input event.
504 * @param historyIndex Indicates the index of the target historical event.
509 float OH_ArkUI_PointerEvent_GetHistoryX(const ArkUI_UIInputEvent* event, uint32_t pointerIndex, uint32_t historyIndex);
512 * @brief Obtains the Y coordinate of a specific touch point in a historical event relative to the upper left corner
513 * of the current component from a directional input event (such as a touch event, mouse event, or axis event).
515 * @param event Indicates the pointer to the current UI input event.
517 * @param historyIndex Indicates the index of the target historical event.
522 float OH_ArkUI_PointerEvent_GetHistoryY(const ArkUI_UIInputEvent* event, uint32_t pointerIndex, uint32_t historyIndex);
525 * @brief Obtains the X coordinate of a specific touch point in a historical event relative to the upper left corner
526 * of the current application window from a directional input event (such as a touch event, mouse event, or axis event).
528 * @param event Indicates the pointer to the current UI input event.
530 * @param historyIndex Indicates the index of the target historical event.
536 const ArkUI_UIInputEvent* event, uint32_t pointerIndex, uint32_t historyIndex);
539 * @brief Obtains the Y coordinate of a specific touch point in a historical event relative to the upper left corner
540 * of the current application window from a directional input event (such as a touch event, mouse event, or axis event).
542 * @param event Indicates the pointer to the current UI input event.
544 * @param historyIndex Indicates the index of the target historical event.
550 const ArkUI_UIInputEvent* event, uint32_t pointerIndex, uint32_t historyIndex);
553 * @brief Obtains the X coordinate of a specific touch point in a historical event relative to the upper left corner
554 * of the current screen from a directional input event (such as a touch event, mouse event, or axis event).
556 * @param event Indicates the pointer to the current UI input event.
558 * @param historyIndex Indicates the index of the target historical event.
564 const ArkUI_UIInputEvent* event, uint32_t pointerIndex, uint32_t historyIndex);
567 * @brief Obtains the Y coordinate of a specific touch point in a historical event relative to the upper left corner
568 * of the current screen from a directional input event (such as a touch event, mouse event, or axis event).
570 * @param event Indicates the pointer to the current UI input event.
572 * @param historyIndex Indicates the index of the target historical event.
578 const ArkUI_UIInputEvent* event, uint32_t pointerIndex, uint32_t historyIndex);
581 * @brief Obtains the pressure applied to the touchscreen in a specific historical event from a directional input event
582 * (for example, a touch event)..
584 * @param event Indicates the pointer to the current UI input event.
586 * @param historyIndex Indicates the index of the target historical event.
591 const ArkUI_UIInputEvent* event, uint32_t pointerIndex, uint32_t historyIndex);
594 * @brief Obtains the angle relative to the YZ plane in a specific historical event from a directional input event
595 * (for example, a touch event). The value range is [-90, 90]. A positive value indicates a rightward tilt.
597 * @param event Indicates the pointer to the current UI input event.
599 * @param historyIndex Indicates the index of the target historical event.
604 const ArkUI_UIInputEvent* event, uint32_t pointerIndex, uint32_t historyIndex);
607 * @brief Obtains the angle relative to the XZ plane in a specific historical event from a directional input event
608 * (for example, a touch event). The value range is [-90, 90]. A positive value indicates a downward tilt.
610 * @param event Indicates the pointer to the current UI input event.
612 * @param historyIndex Indicates the index of the target historical event.
617 const ArkUI_UIInputEvent* event, uint32_t pointerIndex, uint32_t historyIndex);
620 * @brief Obtains the width of the touch area in a specific historical event from a directional input event
621 * (for example, a touch event).
623 * @param event Indicates the pointer to the current UI input event.
625 * @param historyIndex Indicates the index of the target historical event.
630 const ArkUI_UIInputEvent* event, uint32_t pointerIndex, uint32_t historyIndex);
633 * @brief Obtains the height of the touch area in a specific historical event from a directional input event
634 * (for example, a touch event).
636 * @param event Indicates the pointer to the current UI input event.
638 * @param historyIndex Indicates the index of the target historical event.
643 const ArkUI_UIInputEvent* event, uint32_t pointerIndex, uint32_t historyIndex);
646 * @brief Obtains the value of the vertical scroll axis for this axis event.
648 * @param event Indicates the pointer to the UI input event.
649 * @return Returns the value of the vertical scroll axis of the current axis event;
653 double OH_ArkUI_AxisEvent_GetVerticalAxisValue(const ArkUI_UIInputEvent* event);
656 * @brief Obtains the value of the horizontal scroll axis for this axis event.
658 * @param event Indicates the pointer to the UI input event.
659 * @return Returns the value of the horizontal scroll axis of the current axis event;
663 double OH_ArkUI_AxisEvent_GetHorizontalAxisValue(const ArkUI_UIInputEvent* event);
666 * @brief Obtains the scale value of the pinch axis for this axis event.
668 * @param event Indicates the pointer to the UI input event.
669 * @return Returns the scale value of the pinch axis of the current axis event;
673 double OH_ArkUI_AxisEvent_GetPinchAxisScaleValue(const ArkUI_UIInputEvent* event);
678 * @param event Indicates the pointer to the current UI input event.
683 int32_t OH_ArkUI_PointerEvent_SetInterceptHitTestMode(const ArkUI_UIInputEvent* event, HitTestMode mode);
688 * @param event 表示指向当前UI输入事件的指针。
692 int32_t OH_ArkUI_MouseEvent_GetMouseButton(const ArkUI_UIInputEvent* event);
697 * @param event 表示指向当前UI输入事件的指针。
701 int32_t OH_ArkUI_MouseEvent_GetMouseAction(const ArkUI_UIInputEvent* event);
704 * @brief Sets whether to prevent event bubbling.
706 * @param event Indicates the pointer to the current UI input event.
707 * @param stopPropagation Indicates whether the event is prevented from bubbling.
710 * The possible cause of the failure is that the event parameter is abnormal, such as a null pointer.
713 int32_t OH_ArkUI_PointerEvent_SetStopPropagation(const ArkUI_UIInputEvent* event, bool stopPropagation);