OH_ArkUI_AxisEvent_GetPinchAxisScaleValue

Function OH_ArkUI_AxisEvent_GetPinchAxisScaleValue 

Source
pub unsafe extern "C" fn OH_ArkUI_AxisEvent_GetPinchAxisScaleValue(
    event: *const ArkUI_UIInputEvent,
) -> f64
Available on crate feature api-12 only.
Expand description

This value is generated by a two-finger pinch gesture on a touchpad. The reported scale value is relative to the initial state

when the system first detects the pinch gesture, with an initial scale value of 1.0. During the pinch operation, the scale value decreases from 1.0 towards 0.0 when the user pinches inward and increases from 1.0 when the user spreads fingers outward.

§Arguments

  • event - Pointer to the current UI input event.

§Returns

  • Scale value of the pinch axis of the current axis event; 0.0 if any parameter error occurs.

Available since API-level: 12