OH_ArkUI_RenderNodeUtils_GetVector2PropertyValue

Function OH_ArkUI_RenderNodeUtils_GetVector2PropertyValue 

Source
pub unsafe extern "C" fn OH_ArkUI_RenderNodeUtils_GetVector2PropertyValue(
    property: ArkUI_Vector2PropertyHandle,
    x: *mut f32,
    y: *mut f32,
) -> i32
Available on crate feature api-20 only.
Expand description

Get value of the vector2 property.

§Arguments

  • property - ArkUI_Vector2PropertyHandle The Vector2 property handle.

  • x - The pointer to receive x-coordinate value of the property.

  • y - The pointer to receive y-coordinate value of the property.

§Returns

  • Error code. [ARKUI_ERROR_CODE_NO_ERROR] Success. [ARKUI_ERROR_CODE_PARAM_INVALID] Function parameter exception. [ARKUI_ERROR_CODE_CAPI_INIT_ERROR] if CAPI init error.

Available since API-level: 20