pub unsafe extern "C" fn OH_Drawing_PathSetPath(
path: *mut OH_Drawing_Path,
other: *mut OH_Drawing_Path,
) -> DrawingResultAvailable on crate feature
api-20 only.Expand description
Sets OH_Drawing_Path object with the same content of another.
Required System Capabilities: SystemCapability.Graphic.Graphic2D.NativeDrawing
§Arguments
-
path- Indicates the pointer to an OH_Drawing_Path object. -
other- Indicates the pointer to an OH_Drawing_Path object to copy content from.
§Returns
- Returns the error code.
Returns [
OH_DRAWING_SUCCESS] if the operation is successful. Returns [OH_DRAWING_ERROR_INVALID_PARAMETER] if path or other is nullptr.
Available since API-level: 20
Version: 1.0