pub unsafe extern "C" fn OH_ArkUI_RenderNodeUtils_SetDrawRegion(
node: ArkUI_RenderNodeHandle,
x: f32,
y: f32,
w: f32,
h: f32,
) -> i32Available on crate feature
api-20 only.Expand description
Set the draw region for a RenderNode.
§Arguments
-
node- Handle to the target render node. -
x- X-coordinate of the bounds’s top-left corner (in pixels). -
y- Y-coordinate of the bounds’s top-left corner (in pixels). -
w- Width of the bounds (in pixels). -
h- Height of the bounds (in pixels).
§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